joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
call fcn.00408860
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 1
je 0x409538
cmp dword [ebp - 0x210], 2
jle 0x4095ef
cmp dword [ebp - 0x210], 4
jle 0x409538
jmp 0x4095ef
lea eax, [ebp - 0x20c]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x409590
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
call fcn.00408bd0
add esp, 8
test eax, eax
je 0x409587
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040b8d0
add esp, 8
test eax, eax
jne 0x409585
xor eax, eax
jmp 0x40965b
jmp 0x40958e
xor eax, eax
jmp 0x40965b
jmp 0x409597
xor eax, eax
jmp 0x40965b
lea edx, [ebp - 0x20c]
push edx
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4095e9
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.00408bd0
add esp, 8
test eax, eax
je 0x4095e3
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.0040b8d0
add esp, 8
test eax, eax
jne 0x4095e1
xor eax, eax
jmp 0x40965b
jmp 0x4095e7
xor eax, eax
jmp 0x40965b
jmp 0x4095ed
xor eax, eax
jmp 0x40965b
jmp 0x409645
lea ecx, [ebp - 0x20c]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x409641
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call fcn.00408bd0
add esp, 8
test eax, eax
je 0x40963b
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.0040b8d0
add esp, 8
test eax, eax
jne 0x409639
xor eax, eax
jmp 0x40965b
jmp 0x40963f
xor eax, eax
jmp 0x40965b
jmp 0x409645
xor eax, eax
jmp 0x40965b
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x414628]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4096c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
push 0x3f3
mov eax, dword [0x418a58]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00408b20
add esp, 8
mov dword [0x41b364], 1
push 0x4103cc
push 0x83a
call fcn.00402db0
add esp, 8
push eax
push 0x3fc
mov edx, dword [0x418a58]
push edx
call fcn.004091a0
add esp, 0xc
push 0x4192ac
push 0x418a8c
call dword [0x414628]
push 0x4194b4
push 0x418c94
call dword [0x414628]
mov dword [ebp - 8], 0
cmp dword [0x41b364], 1
jne 0x40976c
cmp dword [ebp - 8], 0xa
jge 0x40976c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x409747
mov dword [0x41b364], 0
cmp dword [0x418a4c], 0
je 0x409796
mov ecx, dword [0x418a4c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a4c], 0
cmp dword [0x418a50], 0
je 0x4097b6
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
cmp dword [0x418a64], 0
je 0x4097d7
push 0
mov eax, dword [0x418a64]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x418a64], 0
cmp dword [0x418a68], 0
je 0x4097f4
mov dword [0x41b36c], 1
mov dword [0x418a68], 0
cmp dword [0x418a78], 0
je 0x409816
push 0
mov ecx, dword [0x418a78]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x418a78], 0
cmp dword [0x418a74], 0
je 0x409838
push 0
mov edx, dword [0x418a74]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x418a74], 0
cmp dword [0x418a6c], 0
je 0x409859
push 0
mov eax, dword [0x418a6c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x418a6c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
push 0x1f4
mov edx, dword [0x418a7c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409883
cmp dword [ebp - 0x10], 5
jl 0x409859
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
push 0x1f4
mov ecx, dword [0x418a84]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4098b4
cmp dword [ebp - 0x10], 5
jl 0x40988a
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
push 0x1f4
mov eax, dword [0x418a88]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4098e4
cmp dword [ebp - 0x10], 5
jl 0x4098bb
call fcn.0040a3c0
push 0
call fcn.00406680
add esp, 4
mov ecx, dword [0x418a58]
push ecx
call fcn.00409d80
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x409910
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x3f3
mov eax, dword [0x418a58]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00408b20
add esp, 8
push 0x4103cc
push 0x83a
call fcn.00402db0
add esp, 8
push eax
push 0x3fc
mov edx, dword [0x418a58]
push edx
call fcn.004091a0
add esp, 0xc
push 0x4192ac
push 0x418a8c
call dword [0x414628]
push 0x4194b4
push 0x418c94
call dword [0x414628]
cmp dword [0x418a4c], 0
je 0x40999c
mov eax, dword [0x418a4c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a4c], 0
cmp dword [0x418a50], 0
je 0x4099bc
mov ecx, dword [0x418a4c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a4c], 0
cmp dword [0x418a50], 0
je 0x4099dc
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
cmp dword [0x418a68], 0
je 0x4099f9
mov dword [0x41b36c], 1
mov dword [0x418a68], 0
cmp dword [0x418a6c], 0
je 0x409a1a
push 0
mov eax, dword [0x418a6c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x418a6c], 0
cmp dword [0x418a78], 0
je 0x409a3c
push 0
mov ecx, dword [0x418a78]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x418a78], 0
cmp dword [0x418a74], 0
je 0x409a5e
push 0
mov edx, dword [0x418a74]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x418a74], 0
push 1
mov eax, dword [0x418a80]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409a7a
push 0
call fcn.00406680
add esp, 4
mov ecx, dword [0x418a58]
push ecx
call fcn.00409d80
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x409c90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [0x418a40], 0
je 0x409cb2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x414610]
jmp 0x409d12
push 0x104
mov edx, dword [ebp + 8]
push edx
call dword [0x414630]
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040bc20
add esp, 0x10
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call dword [0x414630]
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040bc20
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esp, ebp
pop ebp
ret

Function at 0x409d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x418a40], 0
je 0x409d3e
mov eax, dword [ebp + 8]
push eax
call dword [0x4145f4]
jmp 0x409d71
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [0x414630]
add eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0040bc20
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esp, ebp
pop ebp
ret
Function at 0x409e60
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
push 0
push 0
push 0xf0
push 0x3fa
mov eax, dword [0x418a58]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00408b40
add esp, 0x10
cmp eax, 1
jne 0x409f3d
push 0x200
lea ecx, [ebp - 0xc30]
push ecx
push 0x3eb
mov edx, dword [0x418a58]
push edx
call fcn.00409250
add esp, 0x10
push 0x200
lea eax, [ebp - 0xa28]
push eax
push 0x3ea
mov ecx, dword [0x418a58]
push ecx
call fcn.00409250
add esp, 0x10
push 0x410360
lea edx, [ebp - 0x618]
push edx
call dword [0x414628]
lea eax, [ebp - 0xc30]
push eax
push 0x410680
lea ecx, [ebp - 0xa28]
push ecx
lea edx, [ebp - 0x618]
push edx
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push 0
push 0x4102f0
lea eax, [ebp - 0x618]
push eax
push 3
push 0x4106ec
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x418a50], eax
jmp 0x409f55
push 0
push 0
push 0
push 0
push 0x4106ec
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x418a50], eax
cmp dword [0x418a50], 0
jne 0x409f60
jmp 0x409fb9
push 0
push 0x80000000
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0xc34], eax
cmp dword [ebp - 0xc34], 0
je 0x409fa2
mov eax, dword [ebp - 0xc34]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0xc34], 0
mov ecx, dword [0x418a50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
mov esp, ebp
pop ebp
ret
Function at 0x40a720
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x418a40], 0
je 0x40a746
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x4145dc]
jmp 0x40a856
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [0x414630]
add eax, 1
imul eax, eax, 3
push eax
call fcn.0040df6d
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x414630]
add eax, 1
imul eax, eax, 3
push eax
call fcn.0040df6d
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x40a830
cmp dword [ebp - 4], 0
je 0x40a830
mov edx, dword [ebp + 8]
push edx
call dword [0x414630]
add eax, 1
imul eax, eax, 3
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x414630]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040bc20
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call dword [0x414630]
add eax, 1
imul eax, eax, 3
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x414630]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040bc20
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040df81
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.0040df81
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x40a856
cmp dword [ebp - 8], 0
je 0x40a842
mov eax, dword [ebp - 8]
push eax
call fcn.0040df81
add esp, 4
cmp dword [ebp - 4], 0
je 0x40a854
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040df81
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [0x41460c]
test eax, eax
jne 0x40a8cc
push 0x104
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40a8a5
mov ax, 0x5c
jmp 0x40a925
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040bc80
add esp, 0xc
mov dx, word [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
cmp eax, 8
jne 0x40a8e8
mov ax, word [ebp - 0x214]
jmp 0x40a925
lea eax, [ebp - 0x218]
push eax
call dword [0x414630]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dx, word [ebp + ecx*2 - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
cmp eax, 8
je 0x40a91a
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x40a8f8
mov ecx, dword [ebp - 4]
mov ax, word [ebp + ecx*2 - 0x218]
mov esp, ebp
pop ebp
ret
Function at 0x40adb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x40adc6
mov eax, 1
jmp 0x40ae81
push 0x10
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
push 0x1388
mov edx, dword [0x418a7c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ae0e
jmp 0x40adf6
mov eax, dword [0x418a7c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x41b364], 0
jne 0x40ae7c
push 1
mov ecx, dword [0x418a80]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ae56
mov edx, dword [0x418a84]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040df81
add esp, 4
mov eax, 1
jmp 0x40ae81
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0x40ace0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ae7c
xor eax, eax
jmp 0x40ae81
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40c9a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410910
push 0x40e0ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x40c9fd
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x40ca6d
mov dword [ebp - 4], 0xffffffff
jmp 0x40ca22
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + 6]
sub edx, 1
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 6]
sub ecx, 1
imul ecx, ecx, 0x28
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + edx + 0x10]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + ecx + 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cb80
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
push 0
push 0
push 0x208
lea eax, [ebp - 0x3c8]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0x400
push 0
call dword [0x41461c]
test eax, eax
jne 0x40cbb5
jmp 0x40ccfb
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3e0], eax
cmp dword [ebp - 0x3e0], 0
jne 0x40cbd4
jmp 0x40ccfb
lea edx, [ebp - 0x1b0]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jne 0x40cc07
jmp 0x40ccfb
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x3d0], eax
push str.IcmpCreateFile
mov ecx, dword [ebp - 0x3e0]
push ecx
call dword [0x414604]
mov dword [ebp - 0x3cc], eax
push str.IcmpCloseHandle
mov edx, dword [ebp - 0x3e0]
push edx
call dword [0x414604]
mov dword [ebp - 0x1b8], eax
push str.IcmpSendEcho
mov eax, dword [ebp - 0x3e0]
push eax
call dword [0x414604]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x3cc], 0
je 0x40cc7b
cmp dword [ebp - 0x1b8], 0
je 0x40cc7b
cmp dword [ebp - 0x1b4], 0
jne 0x40cc7d
jmp 0x40ccfb
call dword [ebp - 0x3cc]
mov dword [ebp - 0x3d4], eax
mov byte [ebp - 0x3dc], 0x1e
mov byte [ebp - 0x3db], 0
mov byte [ebp - 0x3da], 0
mov dword [ebp - 0x3d8], 0
mov byte [ebp - 0x3d9], 0
push 0x1388
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x3dc]
push edx
push 0
push 0
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x3d4]
push edx
call dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x3d4]
push eax
call dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x3e0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esp, ebp
pop ebp
ret
Function at 0x40e1ed
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
je 0x40e212
cmp al, 0x20
jle 0x40e224
inc esi
cmp byte [esi], 0x20
jg 0x40e206
jmp 0x40e224
cmp al, 0x22
je 0x40e223
inc esi
mov al, byte [esi]
test al, al
jne 0x40e20e
cmp al, 0x22
jne 0x40e224
jmp 0x40e223
cmp al, 0x20
jg 0x40e22a
inc esi
mov al, byte [esi]
test al, al
jne 0x40e21f
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040e4c1
push 0x412004
push section..data
call fcn.0040e4a7
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40e25a
movzx eax, word [ebp - 0x14]
jmp 0x40e25d
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040e4d9
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e27e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40e2ac
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40e2b3
cmp ebx, dword [eax + 4]
jae 0x40e2b3
xor eax, eax
jmp 0x40e4a3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40e2c4
xor eax, eax
inc eax
jmp 0x40e4a2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40e2da
cmp ecx, edx
jae 0x40e41f
cmp dword [eax + 4], 0
je 0x40e2e3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40e2cb
cmp dword [ebp + 8], 0
je 0x40e305
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40e41f
cmp eax, esi
jae 0x40e41f
mov eax, dword [0x414688]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40e32a
cmp dword [esi*4 + 0x414690], edi
je 0x40e423
inc esi
cmp esi, eax
jl 0x40e318
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e49f
cmp dword [ebp - 8], 0x1000000
jne 0x40e49f
test byte [ebp - 0xc], 0xcc
je 0x40e3a8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40e49f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e49f
cmp word [eax + 0x18], 0x10b
jne 0x40e49f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40e49f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40e3a8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40e3a8
test byte [ecx + 0x27], 0x80
jne 0x40e41f
push 1
push 0x4146d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40e2bc
mov ecx, dword [0x414688]
test ecx, ecx
mov edx, ecx
jle 0x40e3dc
lea eax, [ecx*4 + 0x41468c]
cmp dword [eax], edi
je 0x40e3dc
dec edx
sub eax, 4
test edx, edx
jg 0x40e3d0
test edx, edx
jne 0x40e40d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40e3e9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40e401
lea eax, [edx*4 + 0x414690]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40e3ef
cmp ecx, 0x10
jge 0x40e40d
inc ecx
mov dword [0x414688], ecx
push 0
push 0x4146d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40e2bc
xor eax, eax
jmp 0x40e4a2
test esi, esi
jle 0x40e2bc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4146d0
call ebx
test eax, eax
jne 0x40e2bc
cmp dword [esi*4 + 0x414690], edi
je 0x40e479
mov eax, dword [0x414688]
lea esi, [eax - 1]
test esi, esi
jl 0x40e467
cmp dword [esi*4 + 0x414690], edi
je 0x40e463
dec esi
jns 0x40e457
test esi, esi
jge 0x40e477
cmp eax, 0x10
jge 0x40e472
inc eax
mov dword [0x414688], eax
lea esi, [eax - 1]
jmp 0x40e479
je 0x40e491
xor ecx, ecx
test esi, esi
jl 0x40e491
lea eax, [ecx*4 + 0x414690]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40e47f
push 0
push 0x4146d0
call ebx
jmp 0x40e2bc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e5cc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
dec eax
test ecx, ecx
je 0x40e5e3
mov dl, byte [esp + 0xc]
inc eax
xor byte [eax], dl
dec ecx
jne 0x40e5d9
xor eax, eax
ret
Function at 0x41868a
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4218
call fcn.0041e8f7
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor bh, bh
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 0x4216], 0
mov byte [ebp - 0x4215], 0
mov byte [ebp - 0x4217], bh
test esi, esi
je 0x4186f0
push 0xb
push 0x401910
push esi
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4186ec
push 0xb
push 0x40191c
push esi
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4186f0
mov bl, 1
jmp 0x4186f2
xor bl, bl
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x418846
push 8
mov byte [ebp - 0x4215], 1
call fcn.004197a8
test eax, eax
je 0x418723
mov dword [eax], 0x4018c4
mov dword [eax + 4], 0
jmp 0x418725
xor eax, eax
push eax
call fcn.0042152c
test eax, eax
js 0x418846
mov bh, 1
mov byte [ebp - 0x4218], bh
test bl, bl
je 0x41874c
call fcn.0041ef36
test eax, eax
js 0x418891
push 0
call fcn.00419743
test eax, eax
je 0x418846
mov byte [ebp - 0x4216], 1
call fcn.00421793
test eax, eax
js 0x418846
mov byte [ebp - 0x4217], 1
mov dword [0x47979c], edi
test bl, bl
je 0x41878a
call fcn.00419133
jmp 0x418846
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0xa
movzx esi, ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ebx, esi
push ebx
call fcn.00418c6f
mov eax, 0x409
cmp si, ax
je 0x4187cf
push 0xffffffffffffffff
push 0x401928
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
add esp, 0x10
push 0x401934
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004191d5
mov edi, eax
test edi, edi
je 0x41882c
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x1001
lea eax, [ebp - 0x4214]
push eax
push 0x8062
push edi
call esi
push 0x1001
lea eax, [ebp - 0x2210]
push eax
push 0x8063
push edi
call esi
push ebx
call fcn.00418d25
push eax
lea eax, [ebp - 0x4214]
push eax
lea eax, [ebp - 0x2210]
push eax
jmp 0x418838
push 0
push 0x401950
push 0x401978
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov bh, byte [ebp - 0x4218]
call fcn.00417aae
call fcn.00417b28
test eax, eax
je 0x41885d
push 1
mov ecx, eax
call fcn.00419109
cmp byte [ebp - 0x4217], 0
je 0x41886b
call fcn.004217c3
cmp byte [ebp - 0x4216], 0
je 0x418879
call fcn.00419762
test bh, bh
je 0x418882
call fcn.00421591
cmp byte [ebp - 0x4215], 0
je 0x418891
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041dbf5
leave
ret 0x10