joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491074
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4911c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [esi + 0x38], 0
je 0x4911a3
cmp byte [esi + 0x95], 0
jne 0x4911a3
cmp dword [esi + 0x8f], 0xffffffff
je 0x4910bd
mov bl, 1
jmp 0x4911a3
lea eax, [ebp - 4]
mov ecx, dword [esi + 0x6b]
mov edx, 0x4911d4
call fcn.00405324
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0xc
call fcn.004032a8
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x14
call fcn.004032a8
lea ebx, [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov edx, 0x4911f0
call fcn.00404a20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 1
mov eax, dword [ebp - 0xc]
call fcn.00404e38
push eax
call fcn.004804b0
test eax, eax
je 0x49113b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
push ebx
push 0x4e20
push 0x1000
push 0x1000
push 0xa
push 6
push 0x40000003
mov eax, dword [ebp - 4]
call fcn.004052a8
push eax
call sub.kernel32.dll_CreateNamedPipeW
mov dword [esi + 0x8f], eax
cmp dword [ebp - 8], 0
je 0x491177
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [esi + 0x8f], 0xffffffff
jne 0x491190
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, esi
call fcn.00491024
jmp 0x491199
xor edx, edx
mov eax, esi
call fcn.00491024
cmp dword [esi + 0x8f], 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4911c8
lea eax, [ebp - 0xc]
call fcn.00404988
lea eax, [ebp - 4]
call fcn.00405080
ret
Function at 0x49793c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x497b7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0xc]
call fcn.00404988
lea eax, [ebp - 0x10]
call fcn.00404988
lea eax, [ebp - 0x14]
call fcn.00404988
mov dword [ebp - 0x18], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 0
xor ebx, ebx
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x21], 0
call fcn.00466fe0
test eax, eax
jne 0x497b5b
mov eax, esi
mov edx, 0x497b98
call fcn.00404d84
jne 0x4979c0
mov bl, 1
mov eax, esi
mov edx, 0x497ba4
call fcn.00404d84
jne 0x4979d2
mov byte [ebp - 0x20], 1
mov eax, esi
mov edx, 0x497bb0
call fcn.00404d84
jne 0x4979e4
mov byte [ebp - 0x21], 1
test bl, bl
jne 0x4979f8
cmp byte [ebp - 0x20], 0
jne 0x4979f8
cmp byte [ebp - 0x21], 0
je 0x497b5b
xor edx, edx
push ebp
push 0x497b54
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
call fcn.00404988
cmp byte [ebp - 0x20], 0
jne 0x497a1a
cmp byte [ebp - 0x21], 0
je 0x497a22
lea eax, [ebp - 8]
call fcn.00465e54
test bl, bl
je 0x497a2e
lea eax, [ebp - 8]
call fcn.00466d2c
mov eax, dword [ebp - 8]
call fcn.00404c40
test eax, eax
jne 0x497a4e
mov eax, 2
call fcn.004670cc
call fcn.004043f0
jmp 0x497b5b
lea eax, [ebp - 8]
mov edx, 0x497bbc
call fcn.00404c48
mov eax, dword [ebp - 8]
call fcn.0040990c
test al, al
jne 0x497a7b
mov eax, 2
call fcn.004670cc
call fcn.004043f0
jmp 0x497b5b
mov eax, dword [0x49fff0]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x497bbc
pop eax
pop edx
call fcn.00404c8c
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404e38
push eax
mov eax, dword [ebp - 8]
call fcn.00404e38
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x497ac4
mov eax, 2
call fcn.004670cc
call fcn.004043f0
jmp 0x497b5b
test bl, bl
je 0x497aef
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x1e]
lea edx, [ebp - 0x1d]
lea eax, [ebp - 0x1c]
call fcn.0047be60
test al, al
jne 0x497aef
mov eax, 2
call fcn.004670cc
call fcn.004043f0
jmp 0x497b5b
mov eax, 1
call fcn.004670cc
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
mov edx, 0x497bd4
call fcn.00404c8c
mov edx, dword [ebp - 0x28]
mov cx, 8
mov eax, dword [ebp - 0xc]
call fcn.00465630
test al, al
je 0x497b27
cmp dword [ebp - 0x18], 0
je 0x497b2b
xor eax, eax
jmp 0x497b2d
mov al, 1
test al, al
jne 0x497b42
mov eax, 2
call fcn.004670cc
call fcn.004043f0
jmp 0x497b5b
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497b5b
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497b85
lea eax, [ebp - 0x28]
call fcn.00404988
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004049ac
ret
Function at 0x401230
Capabilities:
Set registry value

Disassembly:
cmp dword [0x406bd8], 1
jne 0x40124a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [0x40a330]
ret
jmp 0x4017e0
sub esp, 0x524
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [esp + 0x11c]
push 0x406050
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x120], 0x41c
call esi
lea ecx, [esp + 0x31f]
push str.guest
push ecx
call esi
lea edx, [esp + 0x420]
push str.guest
push edx
call esi
lea eax, [esp + 0x118]
push 0
push eax
push 0
call dword [0x40a1f8]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
push str.RemoteAccess
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
push 0xf003f
lea eax, [esp + 0x20]
push 0
push eax
push 0x80000001
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4018ae
mov edi, 0x406050
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push 0x406050
push 1
push eax
push str.InternetProfile
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
push str.RemoteAccessProfile_
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x18]
push 0x406050
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
xor edi, edi
push edx
push 0xf003f
lea eax, [esp + 0x20]
push edi
push eax
push 0x80000001
call ebp
test eax, eax
jne 0x4019ac
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push edi
push str.AutoConnect
push edx
mov dword [esp + 0x28], 1
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push edi
push str.DisconnectIdleTime
push ecx
mov dword [esp + 0x28], 0x14
call ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push edi
push str.EnableAutodisconnect
push eax
mov dword [esp + 0x28], edi
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push edi
push str.EnableExitDisconnect
push edx
mov dword [esp + 0x28], edi
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push edi
mov esi, 5
push str.RedialAttempts
push ecx
mov dword [esp + 0x28], esi
call ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push edi
push str.RedialWait
push eax
mov dword [esp + 0x28], esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x524
ret
Function at 0x4014c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x41c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov ecx, 0x107
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x406050
push eax
mov dword [esp + 0x10], 0x41c
call esi
lea ecx, [esp + 0x20f]
push 0x406060
push ecx
call esi
lea edx, [esp + 0x310]
push 0x406068
push edx
call esi
push 0x409a50
push 0x401350
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
mov dword [0x409a50], 0
call dword [0x40a328]
pop edi
pop esi
test eax, eax
je 0x40156e
mov ecx, dword [0x40a1f0]
push 0x406cd0
push 0x3e9
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, dword [0x409a50]
push edx
call dword [0x40a338]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.0040239c
add esp, 0x41c
ret
Function at 0x4019d0
Capabilities:
Get common file path
Link many functions at runtime
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push str.rasapi32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RasGetEntryProperties
push eax
mov dword [0x40a320], eax
call esi
xor ebp, ebp
mov dword [0x40a200], eax
test eax, eax
jne 0x401abe
mov ebp, 1
mov cl, byte [eax + 0x406da4]
inc eax
not cl
mov byte [eax + 0x406da3], cl
cmp eax, 0x2600
jl 0x401a0d
push edi
lea edx, [esp + 0x14]
push 0xff
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x14]
push str._rnaph.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 1
push 0
push 0
lea ecx, [esp + 0x28]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x10]
push 0
push edx
mov edi, eax
push 0x2600
push 0x406da4
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.rnaph.dll
call ebx
push str.RasGetEntryProperties
push eax
mov dword [0x40a1fc], eax
call esi
test eax, eax
mov dword [0x40a200], eax
pop edi
jne 0x401abe
push eax
push str.DialUp
push str.Cant_find_Phone_Book_APIs
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov eax, dword [0x40a320]
push str.RasDialA
push eax
call esi
mov ecx, dword [0x40a320]
push str.RasEnumEntriesA
push ecx
mov dword [0x40a328], eax
call esi
mov edx, dword [0x40a320]
push str.RasHangUpA
push edx
mov dword [0x40a32c], eax
call esi
mov dword [0x40a338], eax
mov eax, dword [0x40a320]
push str.RasSetEntryDialParamsA
push eax
call esi
mov ecx, dword [0x40a320]
push str.RasEnumConnectionsA
push ecx
mov dword [0x40a1f8], eax
call esi
test ebp, ebp
mov dword [0x40a1f4], eax
push str.RasSetEntryProperties
je 0x401b89
mov edx, dword [0x40a1fc]
push edx
call esi
mov dword [0x40a348], eax
mov eax, dword [0x40a1fc]
push str.RasValidateEntryName
push eax
call esi
mov ecx, dword [0x40a1fc]
push str.RasRenameEntry
push ecx
mov dword [0x40a324], eax
call esi
mov edx, dword [0x40a1fc]
push str.RasDeleteEntry
push edx
mov dword [0x40a33c], eax
call esi
mov dword [0x40a330], eax
mov eax, dword [0x40a1fc]
push str.RasGetCountryInfo
push eax
call esi
mov ecx, dword [0x40a1fc]
mov dword [0x40a340], eax
push str.RasEnumDevices
jmp 0x401bec
mov edx, dword [0x40a320]
push edx
call esi
mov dword [0x40a348], eax
mov eax, dword [0x40a320]
push str.RasValidateEntryName
push eax
call esi
mov ecx, dword [0x40a320]
push str.RasRenameEntry
push ecx
mov dword [0x40a324], eax
call esi
mov edx, dword [0x40a320]
push str.RasDeleteEntry
push edx
mov dword [0x40a33c], eax
call esi
mov dword [0x40a330], eax
mov eax, dword [0x40a320]
push str.RasGetCountryInfo
push eax
call esi
mov ecx, dword [0x40a320]
mov dword [0x40a340], eax
push str.RasEnumDevices
push ecx
call esi
pop esi
mov dword [0x40a334], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x4038bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4096b0
cmp edx, dword [eax]
je 0x4038df
add eax, 8
inc ecx
cmp eax, 0x409740
jl 0x4038d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4096b0]
jne 0x403a0d
mov eax, dword [0x409aac]
cmp eax, 1
je 0x4039e7
test eax, eax
jne 0x403910
cmp dword [0x409604], 1
je 0x4039e7
cmp edx, 0xfc
je 0x403a0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403947
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404170
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40398a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053d0
push edi
call fcn.004046a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404170
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404180
lea eax, [ebp - 0xa0]
push 0x4053b0
push eax
call fcn.00404180
push dword [esi + 0x4096b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404180
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404615
add esp, 0x2c
pop edi
jmp 0x403a0d
lea eax, [ebp + 8]
lea esi, [esi + 0x4096b4]
push 0
push eax
push dword [esi]
call fcn.00404260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403f10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, ecx
push esi
push 0
push 0
push 0x258
push 0x258
push 0
push closesocket
push 0xa0000
push 0x412be0
push 0x412b78
push 0
mov dword [0x412bdc], esi
call edi
mov dword [0x412b74], eax
test eax, eax
jne 0x403f74
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x6a
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
lea eax, [ebp - 0x10]
push eax
push 3
push 0x404
push esi
mov dword [ebp - 0x10], 0x87
mov dword [ebp - 0xc], 0x101
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov edx, dword [0x412b74]
push ecx
push edx
call edi
mov eax, dword [0x412b74]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040908b
mov esp, ebp
pop ebp
ret
Function at 0x4051b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40f62c]
push ebx
push esi
push edi
test eax, eax
js 0x4052b9
cmp eax, 2
jge 0x4052b9
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x40f204
inc eax
lea edi, [esi + 4]
push pe_nt_image_headers32
mov dword [0x40f62c], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x4052b9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x405294
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4052b9
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040908b
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x4054c7
cmp eax, dword [ecx + 0x42c]
jge 0x4054c7
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x4054c7
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x405356
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x405356
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x405413
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x4053dd
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405413
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4054a0
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040908b
mov esp, ebp
pop ebp
ret
Function at 0x4054e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
cmp ecx, 0xff
ja 0x40559e
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405500
sub eax, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x40b700]
mov dword [esi + 0x34], edx
mov edx, dword [ecx + 0x40b704]
mov dword [esi + 0x38], edx
mov edx, dword [ecx + 0x40b708]
mov dword [esi + 0x3c], edx
mov ecx, dword [ecx + 0x40b70c]
mov edx, dword [ebp + 8]
mov dword [esi + 0x40], ecx
push edx
mov ecx, esi
call fcn.00405630
call fcn.00405720
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
mov dword [edi], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov byte [esi + 0x9c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x406250
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
push str.AllowableIpList.txt
lea ebx, [esi + 0xc]
push pe_nt_image_headers32
push ebx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4062ac
push ebx
push str.__s__Could_not_open_file
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4062d0
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
push eax
call fcn.00409080
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x406309
push ebx
push str.__s__Could_not_alloc_file_buffer
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40632e
push ebx
push str.__s__Could_not_read_file
jmp 0x4062e9
mov eax, dword [esi + 4]
cmp byte [eax], 0xef
jne 0x40634a
cmp byte [eax + 1], 0xbb
jne 0x40634a
cmp byte [eax + 2], 0xbf
jne 0x40634a
push ebx
push str.__s__The_file_is_codified_in_UTF_8_BOM_and_cannot_be_read._Change_it_to_UTF_8_and_try_again
jmp 0x4062e9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407490
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40f634]
push ebx
push esi
push edi
push 0x6a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x412c58
mov esi, eax
call ebx
mov edi, dword [0x412c78]
push 0x412c58
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x2710
push edi
lea ecx, [ebp - 0x104]
push str.UserCount:__d__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push 0
push 0x401
push esi
call edi
push 0x4dc4e8
call ebx
mov ebx, dword [0x4dc510]
push 0x4dc4e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x2000
push ebx
lea eax, [ebp - 0x104]
push str.QueueSize:__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x401
push esi
call edi
push 0
push 2
push 0x401
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040908b
mov esp, ebp
pop ebp
ret

Function at 0x407b40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x74]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x407b68
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x74]
push eax
call ebx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x407b75
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.00406ef0
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x407ba1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
call ebx
mov dword [edi], 0
add edi, 4
dec dword [ebp - 4]
jne 0x407b87
mov eax, dword [esi + 0x10]
test eax, eax
je 0x407bc6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edx
call ebx
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x407bd7
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407bed
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret