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

Disassembly:
push 8
push 0x454b48
call fcn.0043eda4
push 8
call fcn.0043f352
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x462960], esi
jne 0x440009
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x46295c], esi
mov al, byte [ebp + 0x10]
mov byte [0x462958], al
cmp dword [ebp + 0xc], edi
jne 0x440053
cmp dword [0x464088], edi
je 0x440043
mov eax, dword [0x464084]
sub eax, 4
mov dword [0x464084], eax
cmp eax, dword [0x464088]
jb 0x440043
mov eax, dword [eax]
cmp eax, edi
je 0x440024
call eax
jmp 0x440024
push 0x45e078
mov eax, 0x45e070
call fcn.0043ff53
pop ecx
push 0x45e084
mov eax, 0x45e07c
call fcn.0043ff53
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x440084
cmp dword [ebp + 0x10], edi
jne 0x440092
mov dword [0x462960], esi
push dword [ebp + 8]
call fcn.0043ff11
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x440091
push 8
call fcn.0043f29d
pop ecx
ret
call fcn.0043eddf
ret
Function at 0x4400d8
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 0x440106
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 0x44010d
cmp ebx, dword [eax + 4]
jae 0x44010d
xor eax, eax
jmp 0x4402fd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44011e
xor eax, eax
inc eax
jmp 0x4402fc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x440134
cmp ecx, edx
jae 0x440279
cmp dword [eax + 4], 0
je 0x44013d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x440125
cmp dword [ebp + 8], 0
je 0x44015f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x440279
cmp eax, esi
jae 0x440279
mov eax, dword [0x462968]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x440184
cmp dword [esi*4 + 0x462970], edi
je 0x44027d
inc esi
cmp esi, eax
jl 0x440172
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4402f9
cmp dword [ebp - 8], 0x1000000
jne 0x4402f9
test byte [ebp - 0xc], 0xcc
je 0x440202
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4402f9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4402f9
cmp word [eax + 0x18], 0x10b
jne 0x4402f9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4402f9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x440202
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x440202
test byte [ecx + 0x27], 0x80
jne 0x440279
push 1
push 0x4629b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x440116
mov ecx, dword [0x462968]
test ecx, ecx
mov edx, ecx
jle 0x440236
lea eax, [ecx*4 + 0x46296c]
cmp dword [eax], edi
je 0x440236
dec edx
sub eax, 4
test edx, edx
jg 0x44022a
test edx, edx
jne 0x440267
push 0xf
pop ebx
cmp ecx, ebx
jg 0x440243
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x44025b
lea eax, [edx*4 + 0x462970]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x440249
cmp ecx, 0x10
jge 0x440267
inc ecx
mov dword [0x462968], ecx
push 0
push 0x4629b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x440116
xor eax, eax
jmp 0x4402fc
test esi, esi
jle 0x440116
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4629b0
call ebx
test eax, eax
jne 0x440116
cmp dword [esi*4 + 0x462970], edi
je 0x4402d3
mov eax, dword [0x462968]
lea esi, [eax - 1]
test esi, esi
jl 0x4402c1
cmp dword [esi*4 + 0x462970], edi
je 0x4402bd
dec esi
jns 0x4402b1
test esi, esi
jge 0x4402d1
cmp eax, 0x10
jge 0x4402cc
inc eax
mov dword [0x462968], eax
lea esi, [eax - 1]
jmp 0x4402d3
je 0x4402eb
xor ecx, ecx
test esi, esi
jl 0x4402eb
lea eax, [ecx*4 + 0x462970]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4402d9
push 0
push 0x4629b0
call ebx
jmp 0x440116
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44412e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x460d88]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x44415f
xor eax, eax
jmp 0x4442e8
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x462d20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44419b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004471ed
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x444276
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4442b4
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4441ff
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4441f0
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4441d0
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44423f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x444248
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4441c1
jmp 0x44424a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4442e3
cmp dword [ebp - 0x6c], edi
je 0x4442b4
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4442a9
call fcn.0043e858
mov dword [eax], 9
call fcn.0043e861
mov dword [eax], esi
jmp 0x4442de
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44429e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x44424a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x44424a
push dword [ebp - 0x6c]
call fcn.0043e86a
pop ecx
jmp 0x4442de
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4442cc
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4442cc
xor eax, eax
jmp 0x4442e6
call fcn.0043e858
mov dword [eax], 0x1c
call fcn.0043e861
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4442e6
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0043e5ef
add ebp, 0x3a0
leave
ret
Function at 0x444631
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x460d88]
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 + 0x4616c0]
je 0x444666
inc eax
cmp eax, 0x13
jb 0x444657
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4616c0]
jne 0x44478c
mov eax, dword [0x4627bc]
cmp eax, 1
je 0x444764
cmp eax, edx
jne 0x444696
cmp dword [0x460d84], 1
je 0x444764
cmp ecx, 0xfc
je 0x44478c
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 0x4446cc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00441080
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0043ee10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x444700
mov eax, edi
push eax
call fcn.0043ee10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x455368
push edi
call fcn.004460b0
add esp, 0x10
push edi
call fcn.0043ee10
push dword [esi + 0x4616c4]
mov ebx, eax
call fcn.0043ee10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043c2b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00441080
push edi
push ebx
call fcn.00441090
push 0x455348
push ebx
call fcn.00441090
push dword [esi + 0x4616c4]
push ebx
call fcn.00441090
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004475ac
add esp, 0x2c
jmp 0x44478c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4616c4]
push dword [esi]
call fcn.0043ee10
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.0043e5ef
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x445446
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44561a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x462d20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44561a
test cl, 0x48
je 0x4454b1
cmp byte [eax + 5], 0xa
je 0x4454b1
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x445503
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4454eb
call fcn.0043e858
mov dword [eax], 9
call fcn.0043e861
mov dword [eax], esi
jmp 0x4454fb
cmp eax, 0x6d
je 0x44561a
push eax
call fcn.0043e86a
pop ecx
or eax, 0xffffffff
jmp 0x44561c
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x445615
test eax, eax
je 0x44552a
cmp byte [ebx], 0xa
jne 0x44552a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x445533
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x44560f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4455ff
cmp al, 0xd
je 0x445565
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4455f1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x44557f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44557a
add dword [ebp + 0x10], 2
jmp 0x4455d3
mov dword [ebp + 0x10], eax
jmp 0x4455ed
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4455a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4455ed
cmp dword [ebp - 0xc], 0
je 0x4455ed
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4455c8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4455d3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4455f0
cmp ebx, dword [ebp + 0xc]
jne 0x4455d8
cmp byte [ebp - 1], 0xa
jne 0x4455d8
mov byte [ebx], 0xa
jmp 0x4455f0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00445788
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4455f1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x445549
jmp 0x44560f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x44560f
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x44561c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4475ac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x462c60], ebx
push esi
push edi
jne 0x44762c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x447667
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x462c60], eax
je 0x447667
push 0x455fb4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x462c64], eax
call esi
cmp dword [0x462920], 2
mov dword [0x462c68], eax
jne 0x44762c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x462c70], eax
je 0x44762c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x462c6c], eax
mov eax, dword [0x462c6c]
test eax, eax
je 0x447671
call eax
test eax, eax
je 0x447658
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x462c70]
test eax, eax
je 0x447658
test byte [ebp - 8], 1
jne 0x447671
cmp dword [0x46292c], 4
jb 0x44766b
or byte [ebp + 0x12], 0x20
jmp 0x447690
xor eax, eax
jmp 0x4476a0
or byte [ebp + 0x12], 4
jmp 0x447690
mov eax, dword [0x462c64]
test eax, eax
je 0x447690
call eax
mov ebx, eax
test ebx, ebx
je 0x447690
mov eax, dword [0x462c68]
test eax, eax
je 0x447690
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x462c60]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4489c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0043c2b0
mov eax, dword [0x460d88]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00445788
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x448af3
push 2
push esi
push dword [ebp + 8]
call fcn.00445788
add esp, 0xc
cmp eax, ebx
je 0x448af3
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x448a93
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0043e680
push 0x8000
push dword [ebp + 8]
call fcn.004493dc
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x448a49
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044412e
add esp, 0xc
cmp eax, 0xffffffff
je 0x448a69
sub edi, eax
test edi, edi
jg 0x448a41
jmp 0x448a81
call fcn.0043e861
cmp dword [eax], 5
jne 0x448a7e
call fcn.0043e858
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004493dc
pop ecx
pop ecx
jmp 0x448adb
jge 0x448adb
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00445788
push dword [ebp + 8]
call fcn.00446ed3
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 0x448adb
call fcn.0043e858
mov dword [eax], 0xd
call fcn.0043e861
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.00445788
add esp, 0xc
mov eax, esi
pop edi
jmp 0x448af5
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0043e5ef
leave
ret
Function at 0x448f4f
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 0x448f68
or eax, 0xffffffff
jmp 0x448fc9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x448fc5
push 0x3d
push esi
call fcn.0043d600
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x448fc5
cmp esi, eax
je 0x448fc5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x462940]
sete cl
cmp eax, dword [0x462944]
mov dword [ebp - 8], ecx
jne 0x448fab
mov edi, eax
call fcn.00448eee
mov dword [0x462940], eax
cmp eax, ebx
jne 0x449004
cmp dword [ebp + 0xc], ebx
je 0x448fcd
cmp dword [0x462948], ebx
je 0x448fcd
call fcn.004480b6
test eax, eax
je 0x449004
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x448fd6
xor eax, eax
jmp 0x448fc8
push 4
call fcn.0043bf47
cmp eax, ebx
pop ecx
mov dword [0x462940], eax
je 0x448fc5
mov dword [eax], ebx
cmp dword [0x462948], ebx
jne 0x449004
push 4
call fcn.0043bf47
cmp eax, ebx
pop ecx
mov dword [0x462948], eax
je 0x448fc5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x462940]
call fcn.00448ea1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x449065
cmp dword [esi], ebx
je 0x449065
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0043bf59
cmp dword [ebp - 8], ebx
pop ecx
jne 0x449048
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4490a6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x44903f
mov eax, edi
shl eax, 2
push eax
push dword [0x462940]
call fcn.0043cf39
cmp eax, ebx
pop ecx
pop ecx
je 0x4490a6
jmp 0x4490a1
cmp dword [ebp - 8], ebx
jne 0x449111
cmp edi, ebx
jge 0x449074
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x462940]
call fcn.0043cf39
cmp eax, ebx
pop ecx
pop ecx
je 0x448fc5
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 [0x462940], eax
cmp dword [ebp + 0xc], ebx
je 0x4490fb
push dword [ebp - 4]
call fcn.0043ee10
inc eax
inc eax
push eax
call fcn.0043bf47
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4490fb
push dword [ebp - 4]
push esi
call fcn.00441080
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 0x4490f4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0043bf59
pop ecx
cmp dword [ebp - 8], ebx
je 0x449109
push dword [ebp - 4]
call fcn.0043bf59
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x448fc8
push dword [ebp - 4]
call fcn.0043bf59
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x448fd2
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402ce8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d25
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x402d45
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405248
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f74
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.00404fd8
test esi, esi
jne 0x402faa
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.004050c8
jmp 0x402fc8
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402e28
mov edi, eax
test esi, esi
je 0x402fc8
cmp dword [ebx], 0
je 0x402fc8
dec esi
jmp 0x402fb1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404034
Capabilities:
Query or enumerate registry value

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

Function at 0x404dd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59104c], 0
je 0x404e39
cmp word [0x591220], 0xd7b2
jne 0x404e01
cmp dword [0x591228], 0
jbe 0x404e01
mov eax, 0x59121c
call dword [0x591238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x57c074
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e60
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x57c034], 0
jne 0x404e55
push 0
push 0x57c06c
push 0x57c074
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404f8c
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.00402a68
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f54
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc