joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8721ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.0087230f
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x48], 0x30
and dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x871ed4
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov eax, dword [section..data]
mov dword [ebp - 0x34], eax
push 0x74
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.MyClass
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [section..data]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Hello_World
push str.MyClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x8722ec
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x8722cc
push dword [ebp - 4]
call sub.gdiplus.dll_GdiplusShutdown
leave
ret
Function at 0x402768
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402797
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004035b0
jmp 0x4027b5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026f0
mov edi, eax
test ebx, ebx
je 0x4027b5
cmp dword [esi], 0
je 0x4027b5
dec ebx
jmp 0x40279e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028f4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x41e03c], 0x8088405
inc edx
mov dword [0x41e03c], edx
mul edx
mov eax, edx
ret

Function at 0x402a88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b00
xor eax, eax
push ebp
push 0x402af9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402b3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404818
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4049d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404879
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4049f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4048eb
xor eax, eax
push ebp
push 0x4048e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404670
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4048cd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404a10
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4048eb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4049cc
cmp byte [ebp - 0xd], 0
jne 0x40492d
cmp byte [ebp - 0x12], 0
je 0x4049cc
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404946
dec ebx
cmp byte [ebx], 0x2e
je 0x404955
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404945
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4049cc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404982
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049cc
cmp byte [ebp - 0xd], 0
je 0x4049cc
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049cc
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404eb8
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404f14
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x404f06
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404efb
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404ef6
mov eax, 0x64
jmp 0x404f0b
call sub.kernel32.dll_GetLastError
call fcn.0040267c
xor eax, eax
jmp 0x404ef6
mov eax, 0x67
jmp 0x404f0b

Function at 0x404f1c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404f77
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x404f69
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404f5e
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404f59
mov eax, 0x65
jmp 0x404f6e
call sub.kernel32.dll_GetLastError
call fcn.0040267c
xor eax, eax
jmp 0x404f59
mov eax, 0x67
jmp 0x404f6e

Function at 0x4071b8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004038e8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4071da
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408cec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408d25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004035b0
jmp 0x408d2e
mov eax, ebx
mov edx, esi
call fcn.0040351c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408d38
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408d59
mov al, byte [esp]
jmp 0x408d5b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ea08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0040e66c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004038e8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40ea66
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41dbb8]
mov dl, 1
mov eax, dword [0x40e564]
call fcn.00409548
call fcn.00402f98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ea70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004038e8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40eac8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41dc90]
mov dl, 1
mov eax, dword [0x40e564]
call fcn.00409548
call fcn.00402f98
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040e69c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f908
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
test dl, dl
je 0x40f916
add esp, 0xfffffff0
call fcn.00402cdc
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00402bac
mov byte [esi + 0x34], 0
mov dword [esi + 4], 0xffffffff
xor eax, eax
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x38]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov edx, eax
mov eax, esi
call fcn.0040ff88
mov eax, esi
call fcn.0040ff9c
mov eax, esi
test bl, bl
je 0x40f966
call fcn.00402d34
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40f998
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004038d8
mov eax, dword [ebp + 8]
call fcn.004038d8
xor eax, eax
push ebp
push 0x40fa7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.004028d4
mov word [ebx], 2
mov eax, dword [esi + 0x2c]
push eax
call sub.wsock32.dll_getprotobynumber
mov esi, eax
xor eax, eax
test esi, esi
je 0x40f9f9
mov eax, dword [esi]
push eax
mov eax, dword [ebp + 8]
call fcn.004038e8
push eax
call sub.wsock32.dll_getservbyname
test eax, eax
jne 0x40fa13
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.00407058
push eax
call sub.wsock32.dll_htons
mov word [ebx + 2], ax
jmp 0x40fa1b
mov ax, word [eax + 8]
mov word [ebx + 2], ax
mov eax, dword [ebp - 4]
mov edx, 0x40fa94
call fcn.00403834
jne 0x40fa33
mov dword [ebx + 4], 0xffffffff
jmp 0x40fa5f
mov eax, dword [ebp - 4]
call fcn.004038e8
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebx + 4], esi
inc esi
jne 0x40fa5f
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40fa5f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fa84
lea eax, [ebp - 4]
call fcn.004034c8
lea eax, [ebp + 8]
call fcn.004034c8
ret
Function at 0x40fad4
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004038d8
mov eax, dword [ebp - 8]
call fcn.004038d8
xor eax, eax
push ebp
push 0x40fb53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0040f998
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov eax, ebx
call fcn.0040ff88
mov eax, ebx
call fcn.0040fb60
mov eax, ebx
call fcn.0040ff9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fb5a
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034ec
ret

Function at 0x410074
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, edx
xor eax, eax
push ebp
push 0x4100df
push dword fs:[eax]
mov dword fs:[eax], esp
lea ebx, [ebp - 0x100]
mov eax, esi
call fcn.004034c8
push 0xff
push ebx
call sub.wsock32.dll_gethostname
test ebx, ebx
je 0x4100c0
push ebx
call sub.wsock32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
je 0x4100c0
mov eax, esi
mov edx, dword [ebx]
call fcn.00403680
cmp dword [esi], 0
jne 0x4100d1
mov eax, esi
mov edx, 0x4100f4
call fcn.0040351c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4100e6
ret

Function at 0x410100
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef4
mov ecx, edx
mov edi, eax
mov eax, ecx
mov ebx, 0x3e8
cdq
idiv ebx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
mov eax, ecx
mov ebx, 0x3e8
cdq
idiv ebx
mov dword [esp], eax
mov esi, esp
inc ecx
jne 0x410135
xor esi, esi
lea eax, [esp + 8]
call fcn.0040f6c4
lea edx, [esp + 8]
mov eax, dword [edi + 4]
call fcn.0040f6b4
push esi
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
mov esi, eax
mov edx, esi
mov eax, edi
call fcn.0040ff88
cmp dword [edi + 0x28], 0
je 0x41016e
xor esi, esi
test esi, esi
setg bl
mov eax, edi
call fcn.0040ff9c
mov eax, ebx
add esp, 0x10c
pop edi
pop esi
pop ebx
ret
Function at 0x41609c
Capabilities:
Get common file path
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 0xc], 0x105
mov eax, dword [ebp - 0xc]
call fcn.00402598
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41616a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 6
ja case.0x4160cd.0
jmp dword [ebx*4 + 0x4160d4]
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp case.0x4160cd.0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp case.0x4160cd.0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentDirectoryA
jmp case.0x4160cd.0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetComputerNameA
jmp case.0x4160cd.0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetUserNameA
jmp case.0x4160cd.0
mov eax, dword [ebp - 8]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416171
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403680
mov eax, dword [ebp - 8]
call fcn.004025b0
ret

Function at 0x416178
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004038d8
mov eax, dword [ebp - 8]
call fcn.004038d8
xor eax, eax
push ebp
push 0x4161fd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.004071a8
test al, al
jne 0x4161e2
push 0
mov eax, dword [ebp - 8]
call fcn.004038e8
push eax
mov eax, dword [ebp - 4]
call fcn.004038e8
push eax
call sub.kernel32.dll_CopyFileA
cmp byte [ebp - 9], 0
je 0x4161e0
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.004071b8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416204
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034ec
ret
Function at 0x418ebc
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x418f7c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, 0x418f94
mov eax, dword [0x41eefc]
call fcn.00415eac
mov eax, dword [ebp - 0x10]
mov edx, 0x418fa0
call fcn.00403834
jne 0x418f5f
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x418f24
lea eax, [ebp - 0xc]
mov edx, 0x418fac
call fcn.00403560
jmp 0x418f31
lea eax, [ebp - 0xc]
mov edx, 0x418fa0
call fcn.00403560
push 1
push 1
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, 0x418fb8
mov eax, dword [0x41eefc]
call fcn.00415eac
test bl, bl
je 0x418f55
cmp byte [ebp - 1], 0
jne 0x418f59
xor eax, eax
jmp 0x418f5b
mov al, 1
mov ebx, eax
jmp 0x418f61
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f83
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004034ec
ret

Function at 0x419074
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
mov eax, ebx
mov edx, 0x4190bc
call fcn.0040351c
push 0
lea eax, [ebp - 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x4190ad
mov eax, dword [ebp - 4]
and eax, 1
cmp eax, 1
jne 0x4190ad
mov eax, ebx
mov edx, 0x4190c8
call fcn.0040351c
pop ebx
pop ecx
pop ebp
ret
Function at 0x4033d0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x240c
call fcn.0040c9e0
mov eax, dword [0x2b9cbbc]
mov ecx, dword [0x2b9cb30]
shr eax, 3
test eax, eax
jbe 0x403502
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403420
cmp dword [0x2b9cbbc], 0x959
jne 0x4034e4
push 0
lea eax, [esp + 0x1420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x420]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0xc24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1c20]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402d3c
push 0x402d4c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403220
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240c
ret
Function at 0x409abb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444b40]
jne 0x409ac5
repz ret
jmp fcn.0040be4c

Function at 0x40aa2b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406116
and dword [ebp - 4], 0
cmp dword [0x445d88], 0
mov ebx, eax
jne 0x40aadc
push 0x402c1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ab8d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c10
push edi
call esi
test eax, eax
je 0x40ab8d
push eax
call fcn.004060a4
mov dword [esp], 0x402c00
push edi
mov dword [0x445d88], eax
call esi
push eax
call fcn.004060a4
mov dword [esp], 0x402bec
push edi
mov dword [0x445d8c], eax
call esi
push eax
call fcn.004060a4
mov dword [esp], 0x402bd0
push edi
mov dword [0x445d90], eax
call esi
push eax
call fcn.004060a4
pop ecx
mov dword [0x445d98], eax
test eax, eax
je 0x40aadc
push 0x402bb8
push edi
call esi
push eax
call fcn.004060a4
pop ecx
mov dword [0x445d94], eax
mov eax, dword [0x445d94]
cmp eax, ebx
je 0x40ab34
cmp dword [0x445d98], ebx
je 0x40ab34
push eax
call fcn.0040611f
push dword [0x445d98]
mov esi, eax
call fcn.0040611f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab34
test edi, edi
je 0x40ab34
call esi
test eax, eax
je 0x40ab2b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab2b
test byte [ebp - 0xc], 1
jne 0x40ab34
or dword [ebp + 0x10], 0x200000
jmp 0x40ab6d
mov eax, dword [0x445d8c]
cmp eax, ebx
je 0x40ab6d
push eax
call fcn.0040611f
pop ecx
test eax, eax
je 0x40ab6d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab6d
mov eax, dword [0x445d90]
cmp eax, ebx
je 0x40ab6d
push eax
call fcn.0040611f
pop ecx
test eax, eax
je 0x40ab6d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445d88]
call fcn.0040611f
pop ecx
test eax, eax
je 0x40ab8d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ab8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401dd4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401e13
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e13
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e13
cmp dword [ecx + 0x74], 0xe
jbe 0x401e13
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4067d9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x415014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406824
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004069f6
test al, al
jne 0x40681e
sub edx, 2
cmp edx, edi
jne 0x406804
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406846
lea eax, [edi + 2]
cmp edx, eax
je 0x406846
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406725
add esp, 0x10
jmp 0x406940
push esi
lea ecx, [ebp - 0x255]
call fcn.004069f6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406889
push dword [ebp - 0x25c]
jmp 0x406836
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4068c6
cmp word [ebp - 0x226], 0
je 0x4068e7
cmp word [ebp - 0x226], ax
jne 0x4068c6
cmp word [ebp - 0x224], 0
je 0x4068e7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406725
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406933
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4068a0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40691b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406940
push 0x406555
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004095a0
add esp, 0x10
jmp 0x406910
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018d4
leave
ret

Function at 0x408473
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410004
push 0x40fffc
push str.FlsAlloc
push 0x1f
call fcn.004083ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4084a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e160]
call esi
jmp 0x4084ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4