joyce8/EMBER2024-capa huggingface dataset:
Function at 0x587390
Capabilities:
Check os version

Disassembly:
sub esp, 0xec
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x5873aa
call fcn.00586770
mov eax, dword [esp + 0x100]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x40000000
call fcn.0056c7b0
mov edi, dword [sym.imp.WINMM.dll_mciSendCommandA]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], ebx
xor ebp, ebp
lea ecx, [esp + 0x34]
push ecx
push 0x30200
push 0x803
push ebx
call edi
test eax, eax
je 0x587404
inc ebp
cmp ebp, 5
jb 0x5873e2
mov ebp, dword [esp + 0x20]
jmp 0x587409
mov ebp, 1
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp ebp, ebx
je 0x58755e
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push 0x40000
push 0x841
push eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call edi
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x50]
push edx
push 0x100
push 0x814
push eax
mov dword [esp + 0x68], 0x4001
call edi
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x18], ecx
call fcn.005938e0
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x18]
mov ebp, dword [edx + 0x44]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push ebp
push 0x586930
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1a56ab4], eax
mov ecx, dword [esi + 4]
lea edx, [esp + 0x24]
mov dword [0x1a56ab0], ecx
mov eax, dword [esi + 4]
push edx
push eax
call fcn.0056ccd0
mov eax, dword [esi + 0x44]
test al, 0x10
jne 0x5874e2
test al, 0x40
je 0x5874e9
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x48]
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.00586890
test byte [esi + 0x1c], 1
je 0x5874fd
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00586fa0
jmp 0x587506
push 1
mov ecx, esi
call fcn.00587050
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x10]
push eax
push 0x50000
push 0x841
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], ebx
call edi
test byte [esi + 0x1c], 4
je 0x58754c
mov ecx, esi
call fcn.005867d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xec
ret 4
pop edi
mov dword [esi + 0x24], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xec
ret 4
Function at 0x588419
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x588427
xor ecx, ecx
jmp 0x588445
cmp eax, 0x1a
jbe 0x588431
push 0x57
pop eax
pop ebp
ret
add al, 0x40
and byte [ebp + 0xb], 0
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov eax, dword [ebp + 0xc]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
push edx
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x588467
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

Function at 0x588a89
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5d16b8
call fcn.00589708
mov edi, 0x94
mov eax, edi
call fcn.00587e30
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1a56ad0], ecx
mov eax, dword [esi + 4]
mov dword [0x1a56adc], eax
mov edx, dword [esi + 8]
mov dword [0x1a56ae0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1a56ad4], esi
cmp ecx, 2
je 0x588ae9
or esi, 0x8000
mov dword [0x1a56ad4], esi
shl eax, 8
add eax, edx
mov dword [0x1a56ad8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x588b24
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x588b24
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x588b3c
cmp eax, 0x20b
je 0x588b29
mov dword [ebp - 0x1c], esi
jmp 0x588b50
cmp dword [ecx + 0x84], 0xe
jbe 0x588b24
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x588b4a
cmp dword [ecx + 0x74], 0xe
jbe 0x588b24
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0058cc42
pop ecx
test eax, eax
jne 0x588b64
push 0x1c
call fcn.00588a65
pop ecx
call fcn.0058a04e
test eax, eax
jne 0x588b75
push 0x10
call fcn.00588a65
pop ecx
call fcn.0058cba0
mov dword [ebp - 4], esi
call fcn.0058c9a2
test eax, eax
jge 0x588b8e
push 0x1b
call fcn.00588a40
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1a595b0], eax
call fcn.0058c880
mov dword [0x1a56ac0], eax
call fcn.0058c7de
test eax, eax
jge 0x588bb4
push 8
call fcn.00588a40
pop ecx
call fcn.0058c5ab
test eax, eax
jge 0x588bc5
push 9
call fcn.00588a40
pop ecx
call fcn.00588f47
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x588bd8
push eax
call fcn.00588a40
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0058c542
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x588bf9
movzx eax, word [ebp - 0x34]
jmp 0x588bfc
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00591a60
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x588c1a
push edi
call fcn.0058907f
call fcn.005890a1
jmp 0x588c4c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00589743
ret
Function at 0x588fac
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0058bab7
xor esi, esi
inc esi
cmp dword [0x1a56b10], esi
pop ecx
jne 0x588fd4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x1a56b0c], esi
mov byte [0x1a56b08], al
jne 0x58903a
mov ecx, dword [0x1a595a8]
test ecx, ecx
je 0x58901b
mov eax, dword [0x1a595a4]
sub eax, 4
cmp eax, ecx
jmp 0x589014
mov eax, dword [eax]
test eax, eax
je 0x589006
call eax
mov eax, dword [0x1a595a4]
sub eax, 4
cmp eax, dword [0x1a595a8]
mov dword [0x1a595a4], eax
jae 0x588ffe
mov eax, 0x5f13d8
mov esi, 0x5f13e0
cmp eax, esi
mov edi, eax
jae 0x58903a
mov eax, dword [edi]
test eax, eax
je 0x589033
call eax
add edi, 4
cmp edi, esi
jb 0x58902b
mov eax, 0x5f13e4
mov esi, 0x5f13ec
cmp eax, esi
mov edi, eax
jae 0x589059
mov eax, dword [edi]
test eax, eax
je 0x589052
call eax
add edi, 4
cmp edi, esi
jb 0x58904a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x58906a
push 8
call fcn.0058ba23
jmp 0x58907c
push dword [ebp + 8]
mov dword [0x1a56b10], 1
call fcn.00588f05
pop ecx
pop ebp
ret
Function at 0x58c22e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6120fc]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x611bd0]
je 0x58c25b
inc eax
cmp eax, 0x12
jb 0x58c24c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x611bd0]
jne 0x58c38f
mov eax, dword [0x1a56ac8]
cmp eax, 1
je 0x58c36a
cmp eax, edx
jne 0x58c28b
cmp dword [0x6115b4], 1
je 0x58c36a
cmp ecx, 0xfc
je 0x58c38f
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x58c2c4
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0058da90
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0058b860
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x58c306
lea eax, [ebp - 0x10c]
push eax
call fcn.0058b860
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x5d1eb8
push edi
call fcn.00587d00
add esp, 0x10
push edi
call fcn.0058b860
push dword [esi + 0x611bd4]
mov ebx, eax
call fcn.0058b860
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00587e30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0058da90
push edi
push ebx
call fcn.0058daa0
push 0x5d1e98
push ebx
call fcn.0058daa0
push dword [esi + 0x611bd4]
push ebx
call fcn.0058daa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0058fc78
add esp, 0x2c
jmp 0x58c38f
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x611bd4]
push dword [esi]
call fcn.0058b860
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0058eff6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58e51e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00587e30
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x58e5b3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1a56ad0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x58e5b3
cmp eax, 1
je 0x58e5cb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x58e5b3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x58e588
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x58e5af
xor eax, eax
inc eax
jmp 0x58e5e7
cmp esi, ebx
jae 0x58e5b7
xor eax, eax
jmp 0x58e5e7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1a56ad0]
jmp 0x58e5cd
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58f300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6120fc]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x58f329
xor eax, eax
jmp 0x58f497
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1a59260]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x58f35c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00590d1e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x58f42e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x58f469
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x58f3b7
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x58f3a8
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x58f38b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x58f3f7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x58f400
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x58f37c
jmp 0x58f402
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x58f492
cmp dword [ebp - 8], edi
je 0x58f469
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x58f45b
call fcn.005895ba
mov dword [eax], 9
call fcn.005895c3
mov dword [eax], esi
jmp 0x58f464
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x58f450
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x58f402
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x58f402
push dword [ebp - 8]
call fcn.005895cc
pop ecx
or eax, 0xffffffff
jmp 0x58f495
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x58f47e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x58f47e
xor eax, eax
jmp 0x58f495
call fcn.005895ba
mov dword [eax], 0x1c
call fcn.005895c3
mov dword [eax], edi
jmp 0x58f464
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0058eff6
leave
ret
Function at 0x58fc78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1a56efc], ebx
push esi
push edi
jne 0x58fcf8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x58fd33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5d2434
push edi
call esi
test eax, eax
mov dword [0x1a56efc], eax
je 0x58fd33
push 0x5d2424
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1a56f00], eax
call esi
cmp dword [0x1a56ad0], 2
mov dword [0x1a56f04], eax
jne 0x58fcf8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1a56f0c], eax
je 0x58fcf8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1a56f08], eax
mov eax, dword [0x1a56f08]
test eax, eax
je 0x58fd3d
call eax
test eax, eax
je 0x58fd24
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1a56f0c]
test eax, eax
je 0x58fd24
test byte [ebp - 8], 1
jne 0x58fd3d
cmp dword [0x1a56adc], 4
jb 0x58fd37
or byte [ebp + 0x12], 0x20
jmp 0x58fd5c
xor eax, eax
jmp 0x58fd6c
or byte [ebp + 0x12], 4
jmp 0x58fd5c
mov eax, dword [0x1a56f00]
test eax, eax
je 0x58fd5c
call eax
mov ebx, eax
test ebx, ebx
je 0x58fd5c
mov eax, dword [0x1a56f04]
test eax, eax
je 0x58fd5c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1a56efc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x591735
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x5917a0
push 0x3d
push dword [ebp + 8]
call fcn.00588d85
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x5917a0
cmp dword [ebp + 8], esi
je 0x5917a0
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x1a56af0]
cmp eax, dword [0x1a56af4]
jne 0x591786
mov edi, eax
call fcn.005916d4
mov dword [0x1a56af0], eax
cmp eax, ebx
jne 0x5917df
cmp dword [ebp + 0xc], ebx
je 0x5917a8
cmp dword [0x1a56af8], ebx
je 0x5917a8
call fcn.00590def
test eax, eax
je 0x5917df
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x5918e3
push 4
call fcn.00588d02
cmp eax, ebx
pop ecx
mov dword [0x1a56af0], eax
je 0x5917a0
mov dword [eax], ebx
cmp dword [0x1a56af8], ebx
jne 0x5917df
push 4
call fcn.00588d02
cmp eax, ebx
pop ecx
mov dword [0x1a56af8], eax
je 0x5917a0
mov dword [eax], ebx
mov ebx, dword [0x1a56af0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00591687
mov edi, eax
test edi, edi
pop ecx
jl 0x591838
cmp dword [ebx], 0
je 0x591838
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00588d14
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x591820
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x59186e
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x591817
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0058bbde
test eax, eax
pop ecx
pop ecx
je 0x59186e
jmp 0x591869
cmp dword [ebp - 4], 0
jne 0x5918dc
test edi, edi
jge 0x591848
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0058bbde
test eax, eax
pop ecx
pop ecx
je 0x5917a0
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x1a56af0], eax
cmp dword [ebp + 0xc], 0
je 0x5918c5
push dword [ebp + 8]
call fcn.0058b860
inc eax
inc eax
push eax
call fcn.00588d02
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5918c5
push dword [ebp + 8]
push esi
call fcn.0058da90
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x5918be
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00588d14
pop ecx
cmp dword [ebp - 4], 0
je 0x5918d4
push dword [ebp + 8]
call fcn.00588d14
pop ecx
mov eax, dword [ebp - 8]
jmp 0x5917a3
push esi
call fcn.00588d14
pop ecx
xor eax, eax
jmp 0x5917a3
Function at 0x5934f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x593544
mov eax, dword [esp + 0x18]
push eax
call fcn.00593bf0
mov esi, eax
test esi, esi
jne 0x593514
pop esi
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x1c]
push edi
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x5b84d4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 0x54]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
add esp, 0x10
ret 0xc

Function at 0x593c50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x50]
sub esp, 8
test eax, eax
push esi
je 0x593cb5
mov eax, dword [esp + 0x10]
push eax
call fcn.00593bf0
mov esi, eax
test esi, esi
jne 0x593c76
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x593c6b
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 0xc
mov edx, dword [ecx + 0x54]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
add esp, 8
ret 0xc
Function at 0x422a7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x422a8c
pop dword [ebp - 0x50]
mov eax, 0xb5a276d2
sub eax, 0xb5604c46
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3d8c7
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4723
xor ebx, ebx
add ebx, eax
mov edi, 0x435400
add edi, dword [ebp - 0x50]
mov edx, 0x69fdd813
xor dword [ebp - 0x3c], 0x99dfd577
mov esi, dword [edi]
mov dword [ebp - 0x18], 0x223e890f
add esi, edx
mov dword [ebx], esi
add dword [ebp - 0x3c], 0xd5019183
add ebx, 0x4aab7872
sub ebx, 0x4aab786e
add edi, 0x8b6be80d
add edi, 0x749417f7
loop 0x422ad6
add eax, 0xb1d52e30
add eax, 0x4e2be12f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

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

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319b], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319b]
mov dword [ebp - 0x48], eax
mov eax, 0x401bbc
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx