joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472400
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x804
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
push ebx
push esi
push edi
mov esi, dword [eax + 0x448]
push 0x42
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x7c], 0x40
call fcn.00458e00
mov dword [esi + 0x78], eax
xor ecx, ecx
push 0x10
mov word [eax], cx
xor eax, eax
push eax
mov word [esi + 0x80], ax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc4], eax
lea eax, [esi + 0xc8]
push eax
mov dword [esi + 0xc0], 1
call fcn.00459450
push 0x10
lea eax, [esi + 0xd8]
push 0
push eax
call fcn.00459450
lea eax, [esp + 0x28]
mov dword [esi + 0xe8], 0
push eax
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0xffffffff
mov dword [esi + 0x11c], 0xffffffff
mov dword [esi + 0x120], 0xffffffff
mov dword [esi + 0x124], 0xffffffff
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
call fcn.00441890
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
add esp, 0x20
xor esi, esi
mov edi, dword [esi*4 + 0x543600]
test edi, edi
je 0x4725dc
test dword [esp + edi*4 + 0xc], 0x40000000
jne 0x4725dc
push 1
push esi
call ebx
test eax, eax
je 0x4725dc
push 2
push eax
call ebx
and eax, 0x7fff
je 0x4725dc
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x4725d8
add eax, 0x20
mov dword [esp + edi*4 + 0xc], eax
inc esi
cmp esi, 0x80
jb 0x4725a3
push 0
push 0x200
lea eax, [esp + 0x14]
push eax
push 0
call fcn.004426d0
push str.Menu
push 0x65
call fcn.00442850
push str.Left_Windows
push 0xe3
call fcn.00442850
push str.Right_Windows
push 0xe7
call fcn.00442850
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 0x28
push 0x14
call esi
and eax, 1
push eax
push 0x2000
call fcn.00442870
add esp, 8
push 0x90
call esi
and eax, 1
push eax
push 0x1000
call fcn.00442870
add esp, 8
push 0x91
call esi
and eax, 1
push eax
push 0x8000
call fcn.00442870
mov ecx, dword [esp + 0x814]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401033
add esp, 0x804
ret
Function at 0x4726f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x124
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x120], eax
push edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
push 0x20
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
test edi, edi
je 0x47274f
push ebx
mov ebx, dword [sym.imp.USER32.dll_ToUnicode]
push esi
xor esi, esi
nop word [eax + eax]
push 0
push 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
push edi
push 0x20
call ebx
test eax, eax
jg 0x47274d
inc esi
cmp esi, 5
jl 0x472730
pop esi
pop ebx
mov ecx, dword [esp + 0x124]
pop edi
xor ecx, esp
call fcn.00401033
add esp, 0x124
ret

Function at 0x4729b0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x804
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
call fcn.00441890
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
add esp, 4
xor esi, esi
nop dword [eax]
mov edi, dword [esi*4 + 0x543600]
test edi, edi
je 0x472a19
test dword [esp + edi*4 + 0xc], 0x40000000
jne 0x472a19
push 1
push esi
call ebx
test eax, eax
je 0x472a19
push 2
push eax
call ebx
and eax, 0x7fff
je 0x472a19
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x472a15
add eax, 0x20
mov dword [esp + edi*4 + 0xc], eax
inc esi
cmp esi, 0x80
jb 0x4729e0
pop edi
pop esi
pop ebx
push dword [esp + 0x808]
lea eax, [esp + 4]
push 0x200
push eax
push 0
call fcn.004426d0
mov ecx, dword [esp + 0x810]
add esp, 0x10
xor ecx, esp
call fcn.00401033
add esp, 0x804
ret

Function at 0x4744f0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
cmp dword [0x57e4b0], 0
je 0x474536
push 0xc
push 1
lea eax, [esp + 8]
mov dword [esp + 8], 0x20001
push eax
mov dword [esp + 0x14], 0
mov dword [0x57e4b0], 0
mov dword [esp + 0x10], 1
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x474536
mov dword [0x57e4b0], eax
push esi
mov esi, dword [0x57e4ac]
test esi, esi
je 0x47455d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyIcon]
push esi
call fcn.00458de0
add esp, 4
mov dword [0x57e4ac], 0
pop esi
add esp, 0xc
ret
Function at 0x4745b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x88], eax
movd xmm0, dword [esp + 0x90]
lea eax, [esp]
cvtdq2ps xmm0, xmm0
push eax
push 0x20019
push 0
push str.Control_PanelMouse
push 0x80000001
divss xmm0, dword [0x543b10]
mov dword [esp + 0x1c], 3
mov dword [esp + 0x18], 0x28
movss dword [esp + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47479f
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push str.SmoothMouseXCurve
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474796
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00473e30
add esp, 8
test eax, eax
je 0x474796
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push str.SmoothMouseYCurve
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474796
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00473e30
add esp, 8
test eax, eax
je 0x474796
movss xmm3, dword [esp + 0x10]
xorps xmm0, xmm0
comiss xmm3, xmm0
movss xmm2, dword [esp + 0xc]
jbe 0x4746b9
movss xmm1, dword [esp + 0x24]
divss xmm1, xmm3
mulss xmm1, xmm2
jmp 0x4746bc
xorps xmm1, xmm1
movss dword [esp + 0x38], xmm3
movss xmm3, dword [0x543b0c]
divss xmm1, xmm3
movss xmm4, dword [esp + 0x14]
comiss xmm4, xmm0
movss dword [esp + 0x3c], xmm1
jbe 0x4746ef
movss xmm1, dword [esp + 0x28]
divss xmm1, xmm4
mulss xmm1, xmm2
jmp 0x4746f2
xorps xmm1, xmm1
divss xmm1, xmm3
movss dword [esp + 0x40], xmm4
movss xmm4, dword [esp + 0x18]
comiss xmm4, xmm0
movss dword [esp + 0x44], xmm1
jbe 0x47471d
movss xmm1, dword [esp + 0x2c]
divss xmm1, xmm4
mulss xmm1, xmm2
jmp 0x474720
xorps xmm1, xmm1
divss xmm1, xmm3
movss dword [esp + 0x48], xmm4
movss xmm4, dword [esp + 0x1c]
comiss xmm4, xmm0
movss dword [esp + 0x4c], xmm1
jbe 0x47474b
movss xmm1, dword [esp + 0x30]
divss xmm1, xmm4
mulss xmm1, xmm2
jmp 0x47474e
xorps xmm1, xmm1
divss xmm1, xmm3
movss dword [esp + 0x50], xmm4
movss dword [esp + 0x54], xmm1
movss xmm1, dword [esp + 0x20]
comiss xmm1, xmm0
jbe 0x474777
movss xmm0, dword [esp + 0x34]
divss xmm0, xmm1
mulss xmm0, xmm2
divss xmm0, xmm3
lea eax, [esp + 0x38]
push eax
push 0xa
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x64], xmm0
call fcn.0044b890
add esp, 8
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00401033
add esp, 0x8c
ret
Function at 0x47eaf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
call fcn.004017c0
cmp dword [0x5684bc], ebx
je 0x47ec93
mov esi, dword [0x57e530]
test esi, esi
je 0x47ec93
nop dword [eax]
cmp dword [esi + 0x54], 0
je 0x47ebe2
cmp dword [esi + 0x78], 0
jne 0x47ebe2
movups xmm0, xmmword [esi + 0x20]
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0043c040
add esp, 0x20
test ebx, ebx
jne 0x47eb98
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0043c810
add esp, 8
test eax, eax
jne 0x47eb96
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0043c7e0
add esp, 8
test eax, eax
je 0x47eb98
push 0x53e5fc
push dword [esi + 4]
call fcn.0041cde0
add esp, 8
test eax, eax
je 0x47eb98
mov ebx, esi
test edi, edi
jne 0x47ebda
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0043c860
add esp, 8
test eax, eax
jne 0x47ebd8
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0043c7e0
add esp, 8
test eax, eax
je 0x47ebda
push 0x54537c
push dword [esi + 4]
call fcn.0041cde0
add esp, 8
test eax, eax
je 0x47ebda
mov edi, esi
test ebx, ebx
je 0x47ebe2
test edi, edi
jne 0x47ebf9
mov esi, dword [esi + 0x84]
test esi, esi
jne 0x47eb20
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x38
ret
push 8
call fcn.00458e00
mov esi, eax
add esp, 4
test esi, esi
je 0x47ec93
push 0x30
lea eax, [esp + 0x18]
mov dword [esi], ebx
push 0
push eax
mov dword [esi + 4], edi
call fcn.00459450
push esi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], str.nintendo_joycons_combined
push 2
push eax
mov dword [esp + 0x30], 0x2008057e
mov edi, 1
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x44], 0x50001
mov dword [esp + 0x3c], str.Nintendo
mov dword [esp + 0x40], str.Switch_Joy_Con__L_R_
call fcn.0047e590
add esp, 0x18
test eax, eax
je 0x47ec8a
cmp dword [eax + 0x54], 0
je 0x47ec78
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x38
ret
push eax
call fcn.0047eca0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x38
ret
push esi
call fcn.00458de0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret

Function at 0x481c10
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
cmp dword [0x57e548], 0
je 0x481c58
mov eax, dword [esp + 0x10]
push 0xc
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push 1
push eax
mov dword [esp + 0xc], 0x50001
mov dword [esp + 0x10], 0x2100
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x481c58
push str.Couldnt_register_for_raw_input_events
call fcn.0041b670
add esp, 4
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x481d50
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
cmp dword [0x57e548], 0
je 0x481d98
push 0xc
push 1
lea eax, [esp + 8]
mov dword [esp + 8], 0x50001
push eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x481d98
push str.Couldnt_unregister_for_raw_input_events
call fcn.0041b670
add esp, 4
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x4a7880
Capabilities:
Get geographical location

Disassembly:
cmp dword [0x57e6ec], 0
jne 0x4a78b0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x57e6ec], eax
test eax, eax
je 0x4a78b0
push str.GetUserPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x57e6e8], eax
jmp 0x4a78b5
mov eax, dword [0x57e6e8]
test eax, eax
je fcn.004a79d0
jmp fcn.004a78d0

Function at 0x4a79d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push edi
push 0x10
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x10
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, eax
test edi, edi
jne 0x4a7a32
push 0x549474
call fcn.0041b670
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00401033
add esp, 0x24
ret
test ecx, ecx
lea eax, [esp + 8]
mov edx, 0x5199be
cmove eax, edx
push eax
mov eax, 0x549494
cmove eax, edx
push eax
lea eax, [esp + 0x20]
push eax
push str._s_s_s
push dword [esp + 0x44]
push ebx
call fcn.0041cb80
mov ecx, dword [esp + 0x40]
add esp, 0x18
pop edi
pop ebx
xor ecx, esp
call fcn.00401033
add esp, 0x24
ret
Function at 0x50cdb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x50cddd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x50cddd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x511ba1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0050d290
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040d71d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x511be3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x511d5a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0050d020
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x57cbd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00411b7a
mov ecx, dword [esi*4 + 0x57cbd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x511d53
cmp eax, dword [edi + ecx + 0x24]
jne 0x511d53
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x511d53
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411b7a
add esp, 0x14
cmp edx, esi
jl 0x511d53
jg 0x511cae
cmp eax, esi
jb 0x511d53
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x511d53
jl 0x511cd0
cmp dword [ebp - 0x1008], eax
ja 0x511d53
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x511cf5
cmp ebx, esi
je 0x511d3a
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x511d3a
mov al, byte [ecx]
cmp al, 0xd
jne 0x511d1b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x511d27
cmp byte [ecx + 1], 0xa
jne 0x511d27
inc ecx
jmp 0x511d27
movzx eax, al
movsx eax, byte [eax + 0x5657d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x511d01
cmp edx, ebx
jne 0x511d01
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x511d58
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401033
leave
ret
Function at 0x1720d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x548000]
push edi
or ebp, 0xffffffff
jmp 0x1720d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1720d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1720d48
mov eax, 1
add ebx, ebx
jne 0x1720d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1720d7c
jne 0x1720d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1720d9b
dec eax
add ebx, ebx
jne 0x1720d88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1720d60
add ebx, ebx
jne 0x1720d97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1720ded
xor ecx, ecx
sub eax, 3
jb 0x1720db3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1720e22
sar eax, 1
mov ebp, eax
jmp 0x1720dbe
add ebx, ebx
jne 0x1720dbe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1720d8c
inc ecx
add ebx, ebx
jne 0x1720dcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1720d8c
add ebx, ebx
jne 0x1720dd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1720dce
jne 0x1720dea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1720dce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1720e0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1720dfe
jmp 0x1720d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1720e0c
add edi, ecx
jmp 0x1720d4e
pop esi
mov edi, esi
mov ecx, 0x2c4e80
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1720e47
cmp byte [edi], 0x82
jne 0x1720e2c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1720e2a
lea edi, [esi + 0x81c000]
mov eax, dword [edi]
or eax, eax
je 0x1720e8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x89c220]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x89c34c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1720e4d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x89c350]
or eax, eax
je 0x1720e89
mov dword [ebx], eax
add ebx, 4
jmp 0x1720e6a
call dword [esi + 0x89c360]
mov ebp, dword [esi + 0x89c354]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1720ec3
sub esp, 0xffffff80
jmp 0x120fe00
Function at 0x404f30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404f62
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404da0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00405710
pop ecx
mov esi, eax
test esi, esi
jne 0x404f95
push 1
call fcn.00404760
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404da0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407290], eax
mov dword [0x407294], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404fd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404feb
mov ebx, dword [0x407360]
mov esi, ebx
xor ecx, ecx
jmp 0x40500e
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404ff6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x405009
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404ff1
lea eax, [ecx + 1]
push eax
call fcn.00405710
pop ecx
mov edi, eax
mov dword [0x40729c], eax
cmp dword [0x40729c], 0
jne 0x405035
push 1
call fcn.00404760
pop ecx
mov esi, ebx
jmp 0x40506a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40503e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x405065
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x405055
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x405039
mov byte [edi], 0
cmp ebx, dword [0x407360]
je 0x405081
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438c84
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
sub eax, esi
add esi, 0xc1de8fbe
add eax, esi
call fcn.00438cb3
mov esi, eax
xor dword [edx], ecx
or eax, esi
inc eax
add esi, eax
inc edx
dec esi
cmp edx, ebx
jne fcn.00438c84
add esi, esi
and esi, esi
sub esi, 0x88ac664e
ret
Function at 0x404da8
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x404db6
and edx, 0x3fff
jmp fcn.00404d1a

Function at 0x404dbb
Capabilities:
Delete directory

Disassembly:
mov eax, 0x434464
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x404dea
push edi
call esi
test eax, eax
je 0x404dea
mov al, 1
jmp 0x404e2e
test ebx, ebx
je 0x404e2c
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x404e26
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
test esi, esi
pop ecx
setne al
jmp 0x404e2e
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404e3d
Capabilities:
Move file

Disassembly:
mov eax, 0x434480
call fcn.004339e0
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00407553
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00407553
mov edi, dword [sym.imp.kernel32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x404e86
cmp eax, ebx
je 0x404e86
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x404e86
mov al, bl
jmp 0x404efd
test esi, esi
jne 0x404e8f
cmp dword [ebp - 0x14], esi
je 0x404efb
lea ecx, [ebp - 0x30]
call fcn.004028e9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004028e9
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x404eaf
cmp dword [ebp - 0x14], ebx
jne 0x404eb1
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040826a
test al, al
push dword [ebp - 0x24]
je 0x404eec
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401abd
push dword [ebp - 0x30]
call fcn.00401abd
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x404efd
call fcn.00401abd
push dword [ebp - 0x30]
call fcn.00401abd
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405008
Capabilities:
Create directory

Disassembly:
mov eax, 0x4344b0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405046
push 0
push edi
call esi
test eax, eax
je 0x405039
mov al, 1
jmp 0x40508f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x40508d
test ebx, ebx
je 0x40508d
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
je 0x405084
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
test esi, esi
pop ecx
setne al
jmp 0x40508f
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret