joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404614
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, eax
mov esi, edx
mov eax, dword [edi]
mov edx, dword [esi]
and eax, 0xfff
and edx, 0xfff
cmp eax, 0x11
jbe 0x40463a
cmp eax, 0x100
jne case.0x404660.0
mov eax, 8
cmp edx, 0x11
jbe 0x40464c
cmp edx, 0x100
jne case.0x404660.0
mov edx, 8
mov al, byte [eax + 0x49a01c]
mov dl, byte [edx + 0x49a01c]
movzx ecx, byte [edx + eax*8 + 0x49a030]
jmp dword [ecx*4 + 0x404667]
pop edi
pop esi
jmp fcn.00403d30
cmp al, dl
pop edi
pop esi
ret
mov eax, esi
call fcn.00403f90
xchg edi, eax
call fcn.00403f90
cmp eax, edi
pop edi
pop esi
ret
mov eax, edi
call fcn.00404030
sub esp, 0xc
fstp xword [esp]
mov eax, esi
call fcn.00404030
fld xword [esp]
add esp, 0xc
fcompp
fnstsw ax
mov al, ah
and ax, 0x4001
ror al, 1
or ah, al
sahf
pop edi
pop esi
ret
mov eax, edi
call fcn.0040408c
sub esp, 0xc
fstp xword [esp]
mov eax, esi
call fcn.0040408c
fld xword [esp]
add esp, 0xc
jmp 0x4046bf
mov eax, edi
mov edx, esi
call fcn.004045a8
cmp eax, 0
pop edi
pop esi
ret
mov eax, esi
call fcn.00403ffc
xchg edi, eax
call fcn.00403ffc
mov edx, edi
cmp al, dl
pop edi
pop esi
ret

Function at 0x404790
Capabilities:
Terminate process

Disassembly:
mov edx, dword [eax]
and edx, 0xfff
je 0x4047c1
cmp edx, 0xb
je 0x4047c6
cmp edx, 1
je 0x4047d5
cmp edx, 0x11
jbe 0x4047b1
cmp edx, 0x100
jne 0x4047c1
push eax
call fcn.00403f90
not eax
mov edx, eax
pop eax
jmp fcn.00404124
jmp fcn.00403d30
mov dx, word [eax + 8]
neg dx
sbb edx, edx
not edx
mov word [eax + 8], dx
ret

Function at 0x404e58
Capabilities:
Terminate process

Disassembly:
xor edx, edx
mov dword [0x49c02c], edx
jmp 0x404d2c
Function at 0x406fa4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4071e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403494
cmp dword [0x49a0dc], 1
je 0x407025
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x4071ca
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.0040352c
jmp 0x4071ca
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004027b4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x4071ca
cmp byte [ebp - 0x15], 0x5a
ja 0x4071ca
mov eax, dword [ebp - 4]
call fcn.00403574
cmp eax, 3
jl 0x4071ca
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x4071ca
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x4071ca
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4071ca
xor edx, edx
push ebp
push 0x4071c3
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0x640
mov eax, dword [ebp - 0x10]
call fcn.00402648
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4071a5
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x4070f4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00402678
jmp 0x4070b8
test eax, eax
je 0x407107
call fcn.004031bc
call fcn.004031bc
jmp 0x4071ca
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x4070b8
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x407183
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.004027b4
cmp al, byte [ebp - 0x15]
jne 0x407183
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00403574
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00403778
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.0040352c
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.004035c0
call fcn.004031bc
call fcn.004031bc
jmp 0x4071ca
inc edi
dec esi
jne 0x407112
jmp 0x4070b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071ef
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00403420
ret

Function at 0x407280
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004034e0
add esp, 0x104
pop ebx
ret
Function at 0x408568
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
test eax, eax
jle 0x4085a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004034e0
jmp 0x4085aa
mov eax, ebx
mov edx, esi
call fcn.00403494
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4085b4
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
test eax, eax
jle 0x4085d5
mov al, byte [esp]
jmp 0x4085d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411070
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403400
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4110d1
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x4110d1
cmp byte [ebp - 0x102], 0
je 0x4110d1
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040355c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412310
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x412391
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x412342
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x412354
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x412360
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.004121e8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412385
push ebp
mov eax, dword [ebp - 4]
call fcn.00412284
pop ecx
mov ebx, eax
cmp bl, 2
je 0x412360
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419b04
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419b0a
ret
Function at 0x41f3c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49c650
cmp dword [edi], 0
jne 0x41f440
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49c64c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49a594
mov ecx, 2
call fcn.00402738
mov edx, 0x41f39c
lea eax, [esi + 5]
call fcn.0041f3bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f3bc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f415
mov dword [0x49c64c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f544
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41f594]
test si, 4
je 0x41f558
or bl, 1
test si, 8
je 0x41f562
or bl, 4
test si, 1
je 0x41f56c
or bl, 8
test si, 2
je 0x41f576
or bl, 0x10
test si, 0x10
je 0x41f580
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41f58f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41f598
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41f5d0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41f5b1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41f5c0
or bl, 4
test esi, 0x20000000
je 0x41f5cb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x423564
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49c628]
cmp byte [eax + 0x7f], 0
jne 0x4235b7
cmp dword [0x49c654], 0
jne 0x423593
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x423520
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49c654], eax
cmp dword [0x49c658], 0
jne 0x4235b7
push esp
push 0
push 0
push 0x4234d0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x49c658], eax
pop edx
ret

Function at 0x4235bc
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x49c654], 0
je 0x4235d0
mov eax, dword [0x49c654]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x49c654], eax
cmp dword [0x49c658], 0
je 0x4235ed
push 0
mov eax, dword [0x49c658]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x49c658], eax
ret

Function at 0x42368c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4236a3
add esp, 0xfffffff0
call fcn.00402d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00410030
mov dl, 1
mov eax, 0x40a2d4
call fcn.00402b30
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x40a2d4
call fcn.00402b30
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, 0x4199fc
call fcn.0041da14
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x4237e4
mov eax, dword [0x49c014]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041dda0
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x424aa4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49c014]
push eax
call sub.kernel32.dll_GetModuleFileNameA
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.004074c0
test eax, eax
je 0x423780
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407328
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004074a0
test eax, eax
je 0x423794
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.0040355c
cmp byte [0x49c034], 0
jne 0x4237c4
mov eax, ebx
call fcn.00423874
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x4237dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42427c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7e], 0
je 0x4242ae
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004034e0
jmp 0x4242b8
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403494
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x424c7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x424cb4
mov eax, esi
call fcn.00418378
test al, al
je 0x424cb4
mov eax, dword [ebx + 0x60]
call fcn.004181e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x424cb4
push 0
mov eax, dword [ebx + 0x60]
call fcn.004181e0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42cccc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42cd14
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042cbc0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cd1b
lea eax, [ebp - 4]
call fcn.00403400
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42cd3d
test al, 0x10
je 0x42cd41
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42cd8a
test al, 0x10
je 0x42cd8a
test ah, 4
je 0x42cd8e
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x42cd94
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00403728
xor eax, eax
push ebp
push 0x42ce86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00403744
mov ebx, pe_nt_image_headers32
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.004034e0
cmp dword [ebp + 0xc], 0
je 0x42ce11
mov eax, dword [ebp + 0xc]
call fcn.00403738
push eax
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42ce3a
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
test eax, eax
je 0x42ce4a
mov eax, dword [esi]
call fcn.00403738
call fcn.004072c0
mov edx, ebx
sub edx, 8
cmp eax, edx
jl 0x42ce5b
cmp ebx, 0x10000
jl 0x42ce65
mov edx, esi
xchg edx, eax
call fcn.004038a4
jmp 0x42ce70
mov eax, ebx
add eax, eax
mov ebx, eax
jmp 0x42cdcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce8d
lea eax, [ebp - 0xc]
call fcn.00403400
ret

Function at 0x42cf5c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x42cfa4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00403738
push eax
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42cfc8
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
push ebx
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
sete al
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42d028
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov ebx, edx
mov esi, eax
mov byte [esp], 0
test ebx, ebx
je 0x42d064
mov eax, ebx
call fcn.00403738
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x42d094
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d082
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x42d094
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
cmp byte [esp], 0
sete al
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x42d44c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d4da
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x42d497
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.004034e0
jmp 0x42d4c4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x42d4ab
lea eax, [ebp - 4]
call fcn.00403400
jmp 0x42d4ba
lea edx, [ebp - 4]
call fcn.0042d2a0
test ebx, ebx
je 0x42d4ba
dec ebx
jmp 0x42d49c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d4e1
lea eax, [ebp - 4]
call fcn.00403400
ret

Function at 0x42d898
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004074e4
add esp, 0x104
pop ebx
ret

Function at 0x42d8c4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004074e4
add esp, 0x104
pop ebx
ret

Function at 0x42d974
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d9f1
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x42d9cf
call sub.kernel32.dll_GetVersion
and ax, 0xff
cmp ax, 6
jb 0x42d9cf
lea eax, [ebp - 8]
call fcn.0042d8c4
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0042c3fc
lea eax, [ebp - 4]
mov edx, 0x42da08
call fcn.0040357c
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.0042c804
jmp 0x42d9d6
mov eax, esi
call fcn.00403400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d9f8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403420
ret
Function at 0x42dc00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x42dd38
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x42dd22
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x42dc5d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x42dd22
cmp dword [ebp - 0x10], 0
jne 0x42dc72
mov eax, dword [ebp - 8]
call fcn.00403400
mov bl, 1
jmp 0x42dd22
cmp dword [ebp - 0x10], 0x70000000
jb 0x42dc80
call fcn.00408c00
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.004034e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403744
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x42dc26
test eax, eax
jne 0x42dd22
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x42dcd0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x42dd22
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x42dcdb
dec esi
test esi, esi
je 0x42dce9
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x42dcda
cmp dword [ebp - 0xc], 7
jne 0x42dcf4
test esi, esi
je 0x42dcf4
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004038a4
cmp dword [ebp - 0xc], 7
jne 0x42dd15
test esi, esi
je 0x42dd15
lea eax, [ebp - 0x14]
call fcn.00403744
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00403450
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dd3f
lea eax, [ebp - 0x14]
call fcn.00403400
ret

Function at 0x42dd64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
push 0
push 0
push 0
push 0
push esi
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
test bl, bl
je 0x42ddd9
test esi, esi
je 0x42dd8f
cmp byte [esi], 0
jne 0x42ddd9
cmp dword [0x49a0dc], 2
je 0x42ddd9
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
je 0x42ddc8
cmp eax, 0xea
jne 0x42ddd9
test eax, eax
jne 0x42ddd6
cmp byte [esp], 0
jne 0x42ddd6
mov bl, 1
jmp 0x42ddd9
inc esi
jmp 0x42dd9c
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret