joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e654
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42e66b
add esp, 0xfffffff0
call fcn.00403178
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004130f0
mov dl, 1
mov eax, dword [0x40bec4]
call fcn.00402ed4
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x40bec4]
call fcn.00402ed4
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x414a2c]
call fcn.0041bac0
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x42e7c4
mov eax, dword [0x45bed8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041be58
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x42fe28
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45bed8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a118
test eax, eax
je 0x42e74c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004079ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a140
test eax, eax
je 0x42e760
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c58
mov eax, dword [0x45be34]
cmp byte [eax], 0
jne 0x42e791
mov eax, ebx
call fcn.0042e8a8
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x42e7b9
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42eafc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45d6b8]
cmp dword [eax + 0x24], 0
je 0x42eb8c
cmp dword [ebx + 0x74], 0
jne 0x42eb89
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x42ea90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x42eb89
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x42eb58
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x42eb89
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040d3a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x42eb64
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x42f474
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x42f4a9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b10
jmp 0x42f4b3
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403ac4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x430098
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x4300d0
mov eax, esi
call fcn.00423f4c
test al, al
je 0x4300d0
mov eax, dword [ebx + 0x64]
call fcn.00423db4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4300d0
push 0
mov eax, dword [ebx + 0x64]
call fcn.00423db4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4387e4
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
cmp byte [0x45b98c], 0
jne 0x43883a
push 0x45d758
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x438833
mov dword [esp], esi
mov byte [esp + 4], 6
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
push esp
push 1
mov ecx, 0x43884c
mov dl, 1
mov eax, dword [0x437da8]
call fcn.00409690
call fcn.004034ec
mov byte [0x45b98c], 1
mov al, 1
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x438f6c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, eax
mov bl, 1
jmp 0x439115
cmp dword [edi + 0x24], 0xffffffff
jne 0x438fac
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x43911d
cmp dword [edi + 0x70], 0
je 0x43911d
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
jmp 0x43911d
mov esi, 0xfffffffe
cmp byte [edi + 0x58], 4
jne 0x439000
lea eax, [esp + 4]
push eax
push 0x4004667f
mov eax, dword [edi + 0x24]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x438fe5
mov byte [edi + 0x198], 0
mov edx, 0x43912c
mov eax, edi
call fcn.0043af48
jmp 0x43911d
cmp dword [esp + 4], 0
jle 0x439000
push 0
push 1
lea eax, [esp + 8]
push eax
mov eax, dword [edi + 0x24]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 1
jne 0x439099
inc dword [edi + 0x19c]
cmp byte [esp], 0xa
je 0x43903d
cmp byte [esp], 0xd
je 0x43903d
inc dword [edi + 0x194]
mov eax, dword [edi + 0x194]
mov dl, byte [esp]
mov byte [edi + eax + 0x92], dl
mov eax, dword [edi + 0x194]
mov byte [edi + 0x92], al
cmp dword [edi + 0x194], 0xfe
jl 0x439065
mov byte [esp], 0xa
cmp word [edi + 0x5e2], 0
je 0x439065
mov edx, edi
mov eax, dword [edi + 0x5e4]
call dword [edi + 0x5e0]
cmp byte [esp], 0xa
jne 0x439115
xor ebx, ebx
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x439115
cmp dword [edi + 0x70], 0
je 0x439115
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
jmp 0x439115
test esi, esi
jne 0x4390c6
xor ebx, ebx
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x4390bd
cmp dword [edi + 0x70], 0
je 0x4390bd
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x5c]
jmp 0x439115
inc esi
jne 0x439113
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x4390fe
xor ebx, ebx
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x4390f5
cmp dword [edi + 0x70], 0
je 0x4390f5
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x5c]
jmp 0x439115
cmp eax, 0x2733
je 0x439115
mov edx, 0x439140
mov eax, edi
call fcn.0043af48
jmp 0x43911d
xor ebx, ebx
test bl, bl
jne 0x438f7b
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x439218
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, eax
cmp dword [edi + 0x24], 0xffffffff
je 0x439387
mov eax, dword [edi + 0x60]
cmp dword [eax + 8], 0
je 0x439387
cmp byte [edi + 0x84], 0
je 0x439251
mov eax, dword [edi + 0x88]
cmp eax, dword [edi + 0x8c]
jge 0x439387
mov bl, 1
jmp 0x43937f
mov eax, dword [edi + 0x60]
call fcn.0040d39c
mov esi, eax
mov edx, esp
mov eax, esi
call fcn.00437308
mov ebp, eax
cmp dword [esp], 0
jg 0x4392a8
mov eax, dword [edi + 0x60]
cmp dword [eax + 8], 1
jg 0x43928a
mov byte [edi + 0x91], 1
xor ebx, ebx
jmp 0x43937f
mov eax, esi
call fcn.00402efc
xor edx, edx
mov eax, dword [edi + 0x60]
call fcn.0040d2c8
mov eax, dword [edi + 0x60]
call fcn.0040d61c
jmp 0x43937f
cmp byte [edi + 0x84], 0
je 0x4392dd
mov cl, 0xa
mov edx, dword [esp]
mov eax, ebp
call fcn.00439204
test eax, eax
je 0x4392dd
sub eax, ebp
inc eax
mov dword [esp], eax
inc dword [edi + 0x88]
mov eax, dword [edi + 0x88]
cmp eax, dword [edi + 0x8c]
jl 0x4392dd
xor ebx, ebx
cmp dword [edi + 0x44], 2
jne 0x439303
push 0x10
lea eax, [edi + 0x5f8]
push eax
mov eax, dword [edi + 0x68]
push eax
mov eax, dword [esp + 0xc]
push eax
push ebp
mov eax, dword [edi + 0x24]
push eax
call sub.wsock32.dll_sendto
mov ebp, eax
jmp 0x439318
mov eax, dword [edi + 0x68]
push eax
mov eax, dword [esp + 4]
push eax
push ebp
mov eax, dword [edi + 0x24]
push eax
call sub.wsock32.dll_send
mov ebp, eax
test ebp, ebp
jne 0x439320
xor ebx, ebx
jmp 0x43937f
cmp ebp, 0xffffffff
jne 0x439368
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2746
je 0x439346
cmp eax, 0x2736
je 0x439346
cmp eax, 0x2749
je 0x439346
cmp eax, 0x2726
jne 0x43934f
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x5c]
jmp 0x439364
cmp eax, 0x2733
je 0x439364
mov edx, 0x439398
mov eax, edi
call fcn.0043af48
jmp 0x439387
xor ebx, ebx
jmp 0x43937f
mov edx, ebp
mov eax, esi
call fcn.00437328
cmp ebp, dword [esp]
jge 0x43937f
mov byte [edi + 0x90], 0
xor ebx, ebx
test bl, bl
jne 0x439258
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x439540
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
jmp 0x4395f1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x78], edx
xor eax, eax
push ebp
push 0x4395e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x198], 0
je 0x439582
mov eax, dword [ebp - 4]
call fcn.00438f6c
jmp 0x43959f
mov edx, dword [ebp - 8]
mov dx, word [edx + 0xa]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
jne 0x43959f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4395f9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x78], 0
je 0x4395ac
xor ebx, ebx
jmp 0x4395db
lea eax, [ebp - 0xc]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4395d3
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], eax
xor ebx, ebx
jmp 0x4395db
cmp dword [ebp - 0xc], 0
jne 0x4395db
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4395f1
test bl, bl
jne 0x439556
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439d4c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e5c
xor eax, eax
push ebp
push 0x439e3e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x110]
mov eax, dword [ebp - 4]
call fcn.004071dc
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x109]
call fcn.00407a34
cmp byte [0x45b98c], 0
jne 0x439da8
mov eax, 0x439e4c
call fcn.004387e4
lea eax, [ebp - 0x109]
push eax
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x439e1a
mov edx, 0x439e58
lea eax, [ebp - 0x109]
call fcn.00407a74
test eax, eax
jne 0x439dd2
or eax, 0xffffffff
jmp 0x439e1a
lea eax, [ebp - 0x109]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x439e13
mov eax, dword [ebp - 4]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x114], 0xb
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, 0x439e70
mov dl, 1
mov eax, dword [0x437da8]
call fcn.00409690
call fcn.004034ec
jmp 0x439e1a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439e45
lea eax, [ebp - 0x110]
call fcn.00403a2c
lea eax, [ebp - 4]
call fcn.00403a2c
ret

Function at 0x43a264
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ecx
mov ebx, eax
cmp byte [ebx + 0x7d], 2
je 0x43a2c2
cmp dword [ebx + 0x24], 0xffffffff
jne 0x43a283
mov edx, 0x43a2d0
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
pop edx
pop ebx
ret
xor eax, eax
mov al, byte [ebx + 0x7d]
mov word [esp], ax
mov ax, word [ebx + 0x80]
mov word [esp + 2], ax
push 4
lea eax, [esp + 4]
push eax
push 0x80
push 0xffff
mov eax, dword [ebx + 0x24]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x43a2c2
mov edx, 0x43a300
mov eax, ebx
call fcn.0043af48
pop edx
pop ebx
ret
Function at 0x43ac0c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e5c
xor eax, eax
push ebp
push 0x43ac74
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x45b98c], 0
jne 0x43ac42
mov eax, 0x43ac84
call fcn.004387e4
lea eax, [ebp - 0x105]
mov edx, dword [ebp - 4]
call fcn.00407a34
lea eax, [ebp - 0x105]
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ac7b
lea eax, [ebp - 4]
call fcn.00403a2c
ret

Function at 0x43acf8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffc0
mov ebx, eax
cmp byte [0x45b98c], 0
jne 0x43ad11
mov eax, 0x43ad48
call fcn.004387e4
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
je 0x43ad37
mov ecx, 0x43ad5c
mov dl, 1
mov eax, dword [0x437da8]
call fcn.0040965c
call fcn.004034ec
mov edx, ebx
mov eax, esp
call fcn.00407b54
add esp, 0x40
pop ebx
ret

Function at 0x43c0d8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402c28
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
pop esi
pop ebx
ret

Function at 0x43c11c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx

Function at 0x43c344
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43c3d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.0043bd70
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.00403e6c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x43c3bf
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x45bf70]
call fcn.00404ad8
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x43bc40]
call fcn.00409690
call fcn.004034ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c3dc
lea eax, [ebp - 0x10]
call fcn.00403a2c
ret
Function at 0x43c3e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43c483
push dword fs:[eax]
mov dword fs:[eax], esp
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.00403e6c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x43c45d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x45c084]
call fcn.00404ad8
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x43bc40]
call fcn.00409690
call fcn.004034ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043bda0
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c48a
lea eax, [ebp - 0x10]
call fcn.00403a2c
ret

Function at 0x43dbd8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43dd2b
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43dd0b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403bd0
lea eax, [ebp - 0x118]
mov edx, 0x43dd40
call fcn.00403cb0
mov eax, dword [ebp - 0x118]
call fcn.00403e6c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x43dc7d
lea eax, [ebp - 0x111]
call fcn.00407944
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403b10
jmp 0x43dc84
mov eax, esi
call fcn.00403a2c
cmp bl, 0x61
jae 0x43dca5
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.00409fec
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403ac4
jmp 0x43dcbf
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.00409f60
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403ac4
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x43dd4c
call fcn.00407ff4
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dd12
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x440340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e6c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x440359
test al, 0x10
jne 0x44035d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4407e4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4408a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x34]
call fcn.00403e6c
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebx + 0x40], esi
inc esi
je 0x44081e
lea eax, [ebx + 0x38]
mov edx, dword [ebx + 0x34]
call fcn.00403a80
jmp 0x440872
mov eax, dword [ebx + 0x34]
call fcn.00403e6c
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x44085e
call sub.kernel32.dll_GetLastError_1
mov dword [ebx + 0x68], eax
cmp word [ebx + 0x52], 0
je 0x440891
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x34]
mov edx, 0x4408bc
call fcn.00403cf4
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x54]
call dword [ebx + 0x50]
jmp 0x440891
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0x40], eax
lea eax, [ebx + 0x38]
mov edx, dword [esi]
call fcn.00403be0
push dword [ebx + 0x40]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 4]
call fcn.00407b54
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x3c]
call fcn.00403a80
mov byte [ebx + 0x6c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4408ae
lea eax, [ebp - 4]
call fcn.00403a2c
ret

Function at 0x44d8b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44d97f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x28], 0
jne 0x44d8e6
mov ecx, 0x1475
mov edx, 0x44d994
mov eax, 0x44d9c4
call fcn.00403a10
mov eax, dword [ebx + 0x28]
add eax, 0x224
call fcn.00403a2c
lea eax, [ebx + 0x34]
mov ecx, 0x104
xor edx, edx
call fcn.00403b10
mov eax, dword [ebx + 0x34]
call fcn.00403e6c
push eax
push 0
push 0x44d9d8
mov eax, ebx
call fcn.0044a308
lea edx, [ebp - 4]
call fcn.00449ce4
mov eax, dword [ebp - 4]
call fcn.00403e6c
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jne 0x44d964
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 8]
call fcn.00407290
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x44d9e4
call fcn.00403cf4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4064f4]
call fcn.0040965c
call fcn.004034ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d986
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a50
ret
Function at 0x44f9c0
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
test dl, dl
je 0x44f9d4
add esp, 0xfffffff0
call fcn.00403178
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x44fb14
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00402ed4
xor eax, eax
mov dword [edi + 0x28], eax
mov byte [edi + 0x2c], 0
mov byte [edi + 0x2d], 1
lea eax, [edi + 4]
mov edx, esi
call fcn.00403a80
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [edi + 4]
call fcn.00403e6c
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
mov dword [edi + 8], esi
inc esi
jne 0x44fa48
lea eax, [ebp - 4]
mov ecx, dword [edi + 4]
mov edx, 0x44fb3c
call fcn.00403cf4
mov eax, dword [ebp - 4]
call fcn.0044f9a8
push 0
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
mov dword [edi + 0x14], esi
inc esi
jne 0x44fa65
mov eax, 0x44fb54
call fcn.0044f9a8
push 0
push 0
push 0
push 2
push 0
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov dword [edi + 0xc], esi
test esi, esi
jne 0x44fa8b
mov eax, 0x44fb70
call fcn.0044f9a8
push 0
push 0
push 0
push 4
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [edi + 0x10], esi
test esi, esi
jne 0x44faaf
mov eax, 0x44fb94
call fcn.0044f9a8
mov eax, dword [edi + 0x10]
mov dword [edi + 0x18], eax
mov ax, word [eax]
not ax
cmp ax, 0x5a4d
jne 0x44facb
mov eax, 0x44fbb4
call fcn.0044f9a8
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x3c]
add eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
push 0xf8
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x44faf4
mov eax, dword [edi + 0x1c]
cmp dword [eax], 0x4550
je 0x44fafe
mov eax, 0x44fbd8
call fcn.0044f9a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fb1b
lea eax, [ebp - 4]
call fcn.00403a2c
ret
Function at 0x4542e4
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45448f
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x4544a0
lea edi, [ebp - 0x100]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x108]
xor eax, eax
call fcn.004029ac
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.00407818
mov eax, dword [ebp - 0x104]
push eax
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.004029ac
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.004076f4
mov edx, dword [ebp - 0x108]
lea eax, [ebx + 0x210]
pop ecx
call fcn.00403cf4
push 0x104
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebx + 0x214]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00403c58
push 0x104
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebx + 0x218]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00403c58
lea ecx, [ebp - 0x104]
mov edx, 0x4545a8
mov eax, ebx
call fcn.00451c64
mov ecx, dword [ebp - 0x104]
lea eax, [ebx + 0x21c]
mov edx, dword [ebx + 0x214]
call fcn.00403cf4
mov eax, dword [ebx + 0x21c]
call fcn.00440364
mov dl, 1
mov eax, dword [0x43bc94]
call fcn.0043bdc8
mov esi, eax
mov edx, 0x80000001
mov eax, esi
call fcn.0043be5c
xor ecx, ecx
mov edx, 0x4545c8
mov eax, esi
call fcn.0043bfb4
lea ecx, [ebp - 0x104]
mov edx, 0x454614
mov eax, esi
call fcn.0043c288
mov edx, dword [ebp - 0x104]
lea eax, [ebx + 0x220]
call fcn.00403a80
mov eax, esi
call fcn.00402efc
lea edx, [ebp - 0x104]
mov eax, dword [ebx + 0x220]
call fcn.004540f0
mov edx, dword [ebp - 0x104]
lea eax, [ebx + 0x224]
call fcn.00403a80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454496
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.00403a50
ret