joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55e670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.ABC1
lea edi, [esi - 0xf1000]
push edi
or ebp, 0xffffffff
jmp 0x55e692
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55e699
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e688
mov eax, 1
add ebx, ebx
jne 0x55e6ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55e6bc
jne 0x55e6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e6db
dec eax
add ebx, ebx
jne 0x55e6c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55e6a0
add ebx, ebx
jne 0x55e6d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55e72d
xor ecx, ecx
sub eax, 3
jb 0x55e6f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55e762
sar eax, 1
mov ebp, eax
jmp 0x55e6fe
add ebx, ebx
jne 0x55e6fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e6cc
inc ecx
add ebx, ebx
jne 0x55e70c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e6cc
add ebx, ebx
jne 0x55e719
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55e70e
jne 0x55e72a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55e70e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55e74c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55e73e
jmp 0x55e68e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55e74c
add edi, ecx
jmp 0x55e68e
pop esi
mov edi, esi
mov ecx, 0x835b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55e76a
cmp byte [edi], 0x22
jne 0x55e76a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55e76f
lea edi, [esi + 0x155000]
mov eax, dword [edi]
or eax, eax
je 0x55e7de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15e4d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15e538]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55e79c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15e53c]
or eax, eax
je 0x55e7d8
mov dword [ebx], eax
add ebx, 4
jmp 0x55e7b9
call dword [esi + 0x15e54c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x55e80f
cmp al, 0xef
ja 0x55e802
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x55e7e4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x55e7f1
mov ebp, dword [esi + 0x15e540]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x55e843
sub esp, 0xffffff80
jmp 0x4aa1a3
Function at 0x450a10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x37000]
push edi
or ebp, 0xffffffff
jmp 0x450a32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x450a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450a28
mov eax, 1
add ebx, ebx
jne 0x450a4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x450a5c
jne 0x450a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450a6c
dec eax
add ebx, ebx
jne 0x450a68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x450a40
xor ecx, ecx
sub eax, 3
jb 0x450a84
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x450af6
sar eax, 1
mov ebp, eax
jmp 0x450a8f
add ebx, ebx
jne 0x450a8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x450a9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x450ac0
inc ecx
add ebx, ebx
jne 0x450aac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x450aa1
jne 0x450abd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x450aa1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x450ae0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x450ad1
jmp 0x450a2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x450ae0
add edi, ecx
jmp 0x450a2e
pop esi
mov edi, esi
mov ecx, 0x20f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x450afe
cmp byte [edi], 5
jne 0x450afe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x450b03
lea edi, [esi + 0x4d000]
mov eax, dword [edi]
or eax, eax
je 0x450b7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x51d80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x51e70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x450b30
mov ecx, edi
jns 0x450b5f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x51e74]
or eax, eax
je 0x450b75
mov dword [ebx], eax
add ebx, 4
jmp 0x450b4d
call dword [esi + 0x51e78]
popal
jmp 0x43629c
Function at 0x401060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
push eax
push ecx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret
mov dword [esp + 8], str.autorun.exe
mov dword [esp + 4], str.autorun.exe
jmp section..text

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

Disassembly:
push 0x18
push 0x4050f8
call fcn.00401db4
mov edi, 0x94
mov eax, edi
call fcn.00401f10
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 [0x4072d8], ecx
mov eax, dword [esi + 4]
mov dword [0x4072e4], eax
mov edx, dword [esi + 8]
mov dword [0x4072e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4072dc], esi
cmp ecx, 2
je 0x4010fa
or esi, 0x8000
mov dword [0x4072dc], esi
shl eax, 8
add eax, edx
mov dword [0x4072e0], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x401133
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401133
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40114b
cmp eax, 0x20b
je 0x401138
mov dword [ebp - 0x1c], edi
jmp 0x40115f
cmp dword [ecx + 0x84], 0xe
jbe 0x401133
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401159
cmp dword [ecx + 0x74], 0xe
jbe 0x401133
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00401d61
pop ecx
test eax, eax
jne 0x40118b
cmp dword [0x4072c8], 2
je 0x401178
call fcn.00401573
push 0x1c
call fcn.004013fc
push 0xff
call fcn.00401261
pop ecx
pop ecx
call fcn.00401cbf
mov dword [ebp - 4], edi
call fcn.00401b14
test eax, eax
jge 0x4011a4
push 0x1b
call fcn.00401075
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407854], eax
call fcn.004019f2
mov dword [0x4072c0], eax
call fcn.00401950
test eax, eax
jge 0x4011ca
push 8
call fcn.00401075
pop ecx
call fcn.0040171d
test eax, eax
jge 0x4011db
push 9
call fcn.00401075
pop ecx
push 1
call fcn.00401291
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4011f1
push eax
call fcn.00401075
pop ecx
mov eax, dword [0x4072f8]
mov dword [0x4072fc], eax
push eax
push dword [0x4072f0]
push dword [0x4072ec]
call fcn.00401060
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x401220
push esi
call fcn.004013bc
call fcn.004013de
jmp 0x401252
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00401def
ret
Function at 0x4012fb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x407318], esi
push edi
jne 0x40131b
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 [0x407314], esi
mov byte [0x407310], al
jne 0x401381
mov ecx, dword [0x407848]
test ecx, ecx
je 0x401362
mov eax, dword [0x407844]
sub eax, 4
cmp eax, ecx
jmp 0x40135b
mov eax, dword [eax]
test eax, eax
je 0x40134d
call eax
mov eax, dword [0x407844]
sub eax, 4
cmp eax, dword [0x407848]
mov dword [0x407844], eax
jae 0x401345
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x401381
mov eax, dword [edi]
test eax, eax
je 0x40137a
call eax
add edi, 4
cmp edi, esi
jb 0x401372
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x4013a0
mov eax, dword [edi]
test eax, eax
je 0x401399
call eax
add edi, 4
cmp edi, esi
jb 0x401391
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4013ba
push dword [ebp + 8]
mov dword [0x407318], 1
call fcn.00401261
pop ebp
ret

Function at 0x4013fc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407170]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407038]
je 0x401431
inc eax
cmp eax, 0x13
jb 0x401422
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407038]
jne 0x401557
mov eax, dword [0x4072c8]
cmp eax, 1
je 0x40152f
cmp eax, edx
jne 0x401461
cmp dword [0x407034], 1
je 0x40152f
cmp ecx, 0xfc
je 0x401557
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401497
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402110
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402340
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4014cb
mov eax, edi
push eax
call fcn.00402340
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x405510
push edi
call fcn.00402210
add esp, 0x10
push edi
call fcn.00402340
push dword [esi + 0x40703c]
mov ebx, eax
call fcn.00402340
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402110
push edi
push ebx
call fcn.00402120
push 0x4054f0
push ebx
call fcn.00402120
push dword [esi + 0x40703c]
push ebx
call fcn.00402120
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402009
add esp, 0x2c
jmp 0x401557
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40703c]
push dword [esi]
call fcn.00402340
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004023fc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402009
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407434], ebx
push esi
push edi
jne 0x402089
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4020c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407434], eax
je 0x4020c4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407438], eax
call esi
cmp dword [0x4072d8], 2
mov dword [0x40743c], eax
jne 0x402089
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407444], eax
je 0x402089
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407440], eax
mov eax, dword [0x407440]
test eax, eax
je 0x4020ce
call eax
test eax, eax
je 0x4020b5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407444]
test eax, eax
je 0x4020b5
test byte [ebp - 8], 1
jne 0x4020ce
cmp dword [0x4072e4], 4
jb 0x4020c8
or byte [ebp + 0x12], 0x20
jmp 0x4020ed
xor eax, eax
jmp 0x4020fd
or byte [ebp + 0x12], 4
jmp 0x4020ed
mov eax, dword [0x407438]
test eax, eax
je 0x4020ed
call eax
mov ebx, eax
test ebx, ebx
je 0x4020ed
mov eax, dword [0x40743c]
test eax, eax
je 0x4020ed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407434]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4037fe
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 0x40382c
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 0x403833
cmp ebx, dword [eax + 4]
jae 0x403833
xor eax, eax
jmp 0x403a23
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403844
xor eax, eax
inc eax
jmp 0x403a22
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40385a
cmp ecx, edx
jae 0x40399f
cmp dword [eax + 4], 0
je 0x403863
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40384b
cmp dword [ebp + 8], 0
je 0x403885
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40399f
cmp eax, esi
jae 0x40399f
mov eax, dword [0x407450]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4038aa
cmp dword [esi*4 + 0x407458], edi
je 0x4039a3
inc esi
cmp esi, eax
jl 0x403898
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403a1f
cmp dword [ebp - 8], 0x1000000
jne 0x403a1f
test byte [ebp - 0xc], 0xcc
je 0x403928
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403a1f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403a1f
cmp word [eax + 0x18], 0x10b
jne 0x403a1f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403a1f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403928
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403928
test byte [ecx + 0x27], 0x80
jne 0x40399f
push 1
push 0x407498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40383c
mov ecx, dword [0x407450]
test ecx, ecx
mov edx, ecx
jle 0x40395c
lea eax, [ecx*4 + 0x407454]
cmp dword [eax], edi
je 0x40395c
dec edx
sub eax, 4
test edx, edx
jg 0x403950
test edx, edx
jne 0x40398d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403969
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403981
lea eax, [edx*4 + 0x407458]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40396f
cmp ecx, 0x10
jge 0x40398d
inc ecx
mov dword [0x407450], ecx
push 0
push 0x407498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40383c
xor eax, eax
jmp 0x403a22
test esi, esi
jle 0x40383c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407498
call ebx
test eax, eax
jne 0x40383c
cmp dword [esi*4 + 0x407458], edi
je 0x4039f9
mov eax, dword [0x407450]
lea esi, [eax - 1]
test esi, esi
jl 0x4039e7
cmp dword [esi*4 + 0x407458], edi
je 0x4039e3
dec esi
jns 0x4039d7
test esi, esi
jge 0x4039f7
cmp eax, 0x10
jge 0x4039f2
inc eax
mov dword [0x407450], eax
lea esi, [eax - 1]
jmp 0x4039f9
je 0x403a11
xor ecx, ecx
test esi, esi
jl 0x403a11
lea eax, [ecx*4 + 0x407458]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4039ff
push 0
push 0x407498
call ebx
jmp 0x40383c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048ac
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.00401f10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404947
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 [0x4072d8]
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 0x404947
cmp eax, 1
je 0x404968
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 0x404947
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404914
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404943
xor eax, eax
inc eax
jmp 0x404987
cmp edi, eax
jae 0x40494b
xor eax, eax
jmp 0x404987
cmp eax, esi
jae 0x404952
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 [0x4072d8]
jmp 0x40496b
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 0x402774
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.00403dcc
test esi, esi
jne 0x4027aa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ebc
jmp 0x4027c8
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402688
mov edi, eax
test esi, esi
je 0x4027c8
cmp dword [ebx], 0
je 0x4027c8
dec esi
jmp 0x4027b1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d58
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403330
Capabilities:
Query or enumerate registry value

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

Function at 0x403bd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c034], 0
je 0x403c35
cmp word [0x40c208], 0xd7b2
jne 0x403bfd
cmp dword [0x40c210], 0
jbe 0x403bfd
mov eax, 0x40c204
call dword [0x40c220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b080
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403c5c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x40b020], 0
jne 0x403c51
push 0
push 0x40b078
push 0x40b080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d88
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402518
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40c035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403d50
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4047fc
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 0x404862
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.0040402c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40484c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404869
lea eax, [ebp - 0x10]
call fcn.00403dcc
ret

Function at 0x404e48
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x404e9d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.00404044
push eax
lea eax, [ebp - 4]
call fcn.0040429c
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.wsock32.dll_send
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ea4
lea eax, [ebp - 4]
call fcn.00403dcc
ret
Function at 0x407764
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x40783f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 8]
mov eax, 0x407854
call fcn.00409064
mov eax, dword [ebp - 8]
call fcn.00404244
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x4077a6
mov eax, dword [0x40b16c]
add dword [eax], 0xa
mov ebx, 0xa
lea edx, [ebp - 0xc]
mov eax, 0x407864
call fcn.00409064
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.004079dc
push dword [ebp - 0x10]
push 0x407878
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404104
push 0
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x14]
call fcn.00404244
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, 0x64
call fcn.00402d58
cmp eax, 0x1e
jle 0x407821
mov eax, 5
call fcn.00402d58
mov edx, eax
shl edx, 0xa
mov eax, dword [ebp - 4]
call fcn.004086e0
dec ebx
jne 0x4077ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407846
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403df0
ret