joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415956
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x415984
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41598b
cmp ebx, dword [eax + 4]
jae 0x41598b
xor eax, eax
jmp 0x415b7b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41599c
xor eax, eax
inc eax
jmp 0x415b7a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4159b2
cmp ecx, edx
jae 0x415af7
cmp dword [eax + 4], 0
je 0x4159bb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4159a3
cmp dword [ebp + 8], 0
je 0x4159dd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415af7
cmp eax, esi
jae 0x415af7
mov eax, dword [0x442500]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x415a02
cmp dword [esi*4 + 0x442508], edi
je 0x415afb
inc esi
cmp esi, eax
jl 0x4159f0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415b77
cmp dword [ebp - 8], 0x1000000
jne 0x415b77
test byte [ebp - 0xc], 0xcc
je 0x415a80
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415b77
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415b77
cmp word [eax + 0x18], 0x10b
jne 0x415b77
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415b77
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415a80
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415a80
test byte [ecx + 0x27], 0x80
jne 0x415af7
push 1
push 0x442548
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x415994
mov ecx, dword [0x442500]
test ecx, ecx
mov edx, ecx
jle 0x415ab4
lea eax, [ecx*4 + 0x442504]
cmp dword [eax], edi
je 0x415ab4
dec edx
sub eax, 4
test edx, edx
jg 0x415aa8
test edx, edx
jne 0x415ae5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415ac1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415ad9
lea eax, [edx*4 + 0x442508]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415ac7
cmp ecx, 0x10
jge 0x415ae5
inc ecx
mov dword [0x442500], ecx
push 0
push 0x442548
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x415994
xor eax, eax
jmp 0x415b7a
test esi, esi
jle 0x415994
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x442548
call ebx
test eax, eax
jne 0x415994
cmp dword [esi*4 + 0x442508], edi
je 0x415b51
mov eax, dword [0x442500]
lea esi, [eax - 1]
test esi, esi
jl 0x415b3f
cmp dword [esi*4 + 0x442508], edi
je 0x415b3b
dec esi
jns 0x415b2f
test esi, esi
jge 0x415b4f
cmp eax, 0x10
jge 0x415b4a
inc eax
mov dword [0x442500], eax
lea esi, [eax - 1]
jmp 0x415b51
je 0x415b69
xor ecx, ecx
test esi, esi
jl 0x415b69
lea eax, [ecx*4 + 0x442508]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415b57
push 0
push 0x442548
call ebx
jmp 0x415994
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415e04
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040fd20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415e9f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4423a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x415e9f
cmp eax, 1
je 0x415ec0
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415e9f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x415e6c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x415e9b
xor eax, eax
inc eax
jmp 0x415edf
cmp edi, eax
jae 0x415ea3
xor eax, eax
jmp 0x415edf
cmp eax, esi
jae 0x415eaa
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4423a8]
jmp 0x415ec3
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416311
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x442560], ebx
push esi
push edi
jne 0x416391
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4163cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f334
push edi
call esi
test eax, eax
mov dword [0x442560], eax
je 0x4163cc
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x442564], eax
call esi
cmp dword [0x4423a8], 2
mov dword [0x442568], eax
jne 0x416391
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x442570], eax
je 0x416391
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44256c], eax
mov eax, dword [0x44256c]
test eax, eax
je 0x4163d6
call eax
test eax, eax
je 0x4163bd
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x442570]
test eax, eax
je 0x4163bd
test byte [ebp - 8], 1
jne 0x4163d6
cmp dword [0x4423b4], 4
jb 0x4163d0
or byte [ebp + 0x12], 0x20
jmp 0x4163f5
xor eax, eax
jmp 0x416405
or byte [ebp + 0x12], 4
jmp 0x4163f5
mov eax, dword [0x442564]
test eax, eax
je 0x4163f5
call eax
mov ebx, eax
test ebx, ebx
je 0x4163f5
mov eax, dword [0x442568]
test eax, eax
je 0x4163f5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x442560]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418d3d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040fd20
mov eax, dword [0x4223b0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00414866
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x418e70
push 2
push esi
push dword [ebp + 8]
call fcn.00414866
add esp, 0xc
cmp eax, ebx
je 0x418e70
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x418e10
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040f3c0
push 0x8000
push dword [ebp + 8]
call fcn.00419e16
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x418dc6
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004121bd
add esp, 0xc
cmp eax, 0xffffffff
je 0x418de6
sub edi, eax
test edi, edi
jg 0x418dbe
jmp 0x418dfe
call fcn.004127e7
cmp dword [eax], 5
jne 0x418dfb
call fcn.004127de
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00419e16
pop ecx
pop ecx
jmp 0x418e58
jge 0x418e58
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414866
push dword [ebp + 8]
call fcn.00416929
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x418e58
call fcn.004127de
mov dword [eax], 0xd
call fcn.004127e7
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00414866
add esp, 0xc
mov eax, esi
pop edi
jmp 0x418e72
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040f3ac
leave
ret
Function at 0x4199fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x419a26
cmp eax, 1
je 0x419a26
jle 0x419a2e
cmp eax, 3
jle 0x419a26
cmp eax, 4
jne 0x419a2e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x419a59
call fcn.004127de
mov dword [eax], 0x16
call fcn.004127e7
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x419bd2
inc eax
cmp byte [eax], bl
jne 0x419a48
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x419a59
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x419a48
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0040f3c0
mov dword [ebp - 0x68], esi
mov esi, dword [0x442920]
add esp, 0xc
cmp esi, ebx
je 0x419a9f
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x442940]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x419a9f
dec esi
dec ecx
cmp esi, ebx
jne 0x419a7f
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.00416ba8
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x419b06
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x442940]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x419af2
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x419af7
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x419acb
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x419b37
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x419b1d
mov edi, esi
jmp 0x419b20
push 3
pop edi
cmp edx, edi
jge 0x419b30
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x419b14
mov dword [ebp - 0xc], 8
call fcn.004127de
mov dword [eax], ebx
call fcn.004127e7
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0040fbeb
cmp esi, ebx
pop ecx
jne 0x419b87
push edi
call fcn.004127f0
pop ecx
or eax, 0xffffffff
jmp 0x419bd0
cmp dword [ebp + 8], 2
jne 0x419b93
push ebx
call fcn.00414481
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x419bc0
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x419bc9
cmp dword [ebp + 8], 4
je 0x419bb9
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004127f0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x419e13
test byte [esp + 8], 2
je 0x419e13
call fcn.004127de
mov dword [eax], 0xd
call fcn.004127e7
mov dword [eax], 5
jmp 0x419dec
xor eax, eax
ret
Function at 0x41a5ef
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41a608
or eax, 0xffffffff
jmp 0x41a669
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41a665
push 0x3d
push esi
call fcn.00418b26
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41a665
cmp esi, eax
je 0x41a665
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4423c8]
sete cl
cmp eax, dword [0x4423cc]
mov dword [ebp - 8], ecx
jne 0x41a64b
mov edi, eax
call fcn.0041a58e
mov dword [0x4423c8], eax
cmp eax, ebx
jne 0x41a6a4
cmp dword [ebp + 0xc], ebx
je 0x41a66d
cmp dword [0x4423d0], ebx
je 0x41a66d
call fcn.0041996b
test eax, eax
je 0x41a6a4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41a676
xor eax, eax
jmp 0x41a668
push 4
call fcn.0040fd03
cmp eax, ebx
pop ecx
mov dword [0x4423c8], eax
je 0x41a665
mov dword [eax], ebx
cmp dword [0x4423d0], ebx
jne 0x41a6a4
push 4
call fcn.0040fd03
cmp eax, ebx
pop ecx
mov dword [0x4423d0], eax
je 0x41a665
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4423c8]
call fcn.0041a541
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41a705
cmp dword [esi], ebx
je 0x41a705
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040fbeb
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41a6e8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41a746
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41a6df
mov eax, edi
shl eax, 2
push eax
push dword [0x4423c8]
call fcn.0041413c
cmp eax, ebx
pop ecx
pop ecx
je 0x41a746
jmp 0x41a741
cmp dword [ebp - 8], ebx
jne 0x41a7b1
cmp edi, ebx
jge 0x41a714
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4423c8]
call fcn.0041413c
cmp eax, ebx
pop ecx
pop ecx
je 0x41a665
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4423c8], eax
cmp dword [ebp + 0xc], ebx
je 0x41a79b
push dword [ebp - 4]
call fcn.0040f2f0
inc eax
inc eax
push eax
call fcn.0040fd03
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41a79b
push dword [ebp - 4]
push esi
call fcn.0040f1f0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41a794
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040fbeb
pop ecx
cmp dword [ebp - 8], ebx
je 0x41a7a9
push dword [ebp - 4]
call fcn.0040fbeb
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41a668
push dword [ebp - 4]
call fcn.0040fbeb
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41a672
Function at 0x4021ff
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.0040230f
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], 0x401ed4
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 0x4022ec
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4022cc
push dword [ebp - 4]
call sub.gdiplus.dll_GdiplusShutdown
leave
ret

Function at 0x401647
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405120], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40508e], ecx
mov dword [0x405124], 0x30
mov dword [0x405128], 3
mov dword [0x405130], 0
mov dword [0x405134], 0
mov dword [0x40512c], 0x403148
mov eax, 0xffff0000
mov ebx, section..text
and ebx, eax
mov dword [0x405086], ebx
mov dword [0x405138], ebx
mov dword [0x405144], 0xf
mov dword [0x40514c], 0x405067
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x40513c], eax
mov dword [0x405150], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x405140], eax
push 0x405124
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x405086]
push 0
push 0
push 0x2bc
push 0x1f4
push 0xa0
push 0x12c
push 0x40000
push str.Hello_word
push str.2class
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x405118], eax
push 0
push dword [0x405118]
call sub.user32.dll_ShowWindow
push dword [0x405118]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x405154
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40176b
push 0x405154
call sub.user32.dll_TranslateMessage
push 0x405154
call sub.user32.dll_DispatchMessageA
jmp 0x401741
mov eax, dword [0x40515c]
mov esi, dword [0x4051b4]
lea ecx, [0x405086]
add esi, eax
call esi
ret
Function at 0x4026d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004030f8
test esi, esi
jne 0x40270e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004031bc
jmp 0x40272c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040258c
mov edi, eax
test esi, esi
je 0x40272c
cmp dword [ebx], 0
je 0x40272c
dec esi
jmp 0x402715
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40289c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402934
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402914
xor eax, eax
push ebp
push 0x40290d
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 0x402950
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 0x402914
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x402fdd
cmp word [0x405208], 0xd7b2
jne 0x402fa5
cmp dword [0x405210], 0
jbe 0x402fa5
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403004
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x402ff9
push 0
push 0x40404c
push 0x404054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403550
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4035b6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004031ec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402790
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4035a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035bd
lea eax, [ebp - 0x10]
call fcn.004030f8
ret
Function at 0x4039d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033ec
xor eax, eax
push ebp
push 0x403a28
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0x403a34
push 0x403a34
mov eax, dword [ebp - 4]
call fcn.004033fc
push eax
push 0x403a38
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a2f
lea eax, [ebp - 4]
call fcn.004030f8
ret

Function at 0x403b20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033ec
xor eax, eax
push ebp
push 0x403b9d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x403bb0
push dword [ebp - 4]
push 0x403bc0
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004032bc
push 0
push 0x403bc8
push 0x403bc8
mov eax, dword [ebp - 8]
call fcn.004033fc
push eax
push 0x403bcc
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ba4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040311c
ret

Function at 0x403bd4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033ec
xor eax, eax
push ebp
push 0x403c44
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x403c58
call fcn.00403248
push 0
push 0x403c64
push 0x403c64
mov eax, dword [ebp - 8]
call fcn.004033fc
push eax
push 0x403c68
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c4b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040311c
ret
Function at 0x402cb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x218
mov eax, dword [ecx]
mov edx, dword [esp + 0x21c]
push esi
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x402d05
lea ecx, [esp + 4]
call fcn.00402bb0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
je 0x402d1a
lea ecx, [esp + 4]
call fcn.00402bb0
mov eax, esi
pop esi
add esp, 0x218
ret 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0
push eax
mov dword [esp + 0x2c], 0x100
call edi
test eax, eax
jne 0x402d81
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xc]
call fcn.00402cb0
mov esi, eax
test esi, esi
jne 0x402daf
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov dword [esp + 0x2c], 0x100
call edi
test eax, eax
je 0x402d47
mov eax, dword [esp + 8]
test eax, eax
je 0x402d98
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
lea ecx, [esp + 8]
call fcn.00402bb0
pop edi
mov eax, esi
pop esi
add esp, 0x218
ret 4
Function at 0x403130
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403142
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8