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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4153e8], esi
push edi
jne 0x408b70
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 [0x4153e4], esi
mov byte [0x4153e0], al
jne 0x408bd6
mov ecx, dword [0x4158ec]
test ecx, ecx
je 0x408bb7
mov eax, dword [0x4158e8]
sub eax, 4
cmp eax, ecx
jmp 0x408bb0
mov eax, dword [eax]
test eax, eax
je 0x408ba2
call eax
mov eax, dword [0x4158e8]
sub eax, 4
cmp eax, dword [0x4158ec]
mov dword [0x4158e8], eax
jae 0x408b9a
mov eax, 0x411020
mov esi, 0x411028
cmp eax, esi
mov edi, eax
jae 0x408bd6
mov eax, dword [edi]
test eax, eax
je 0x408bcf
call eax
add edi, 4
cmp edi, esi
jb 0x408bc7
mov eax, 0x41102c
mov esi, 0x411030
cmp eax, esi
mov edi, eax
jae 0x408bf5
mov eax, dword [edi]
test eax, eax
je 0x408bee
call eax
add edi, 4
cmp edi, esi
jb 0x408be6
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x408c10
push dword [ebp + 8]
mov dword [0x4153e8], 1
call fcn.00408abb
pop ecx
pop ebp
ret
Function at 0x409784
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x415560]
push edi
jae 0x40994b
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x415580]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40994b
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x40982a
test dl, 2
jne 0x40982a
test dl, 0x48
je 0x4097f4
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4097f4
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40983d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x409825
mov dword [0x4153a0], ecx
jmp 0x409952
cmp eax, 0x6d
jne 0x409831
xor eax, eax
jmp 0x40995f
push eax
call fcn.00408c52
pop ecx
jmp 0x40995c
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x409946
test edx, edx
je 0x409860
cmp byte [edi], 0xa
jne 0x409860
or al, 4
jmp 0x409862
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x409940
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x409930
cmp al, 0xd
je 0x409896
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x409922
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4098b0
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4098ab
add dword [ebp - 8], 2
jmp 0x409904
mov dword [ebp - 8], eax
jmp 0x40991e
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4098d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40991e
cmp dword [ebp - 0x10], 0
je 0x40991e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x4098f9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x409904
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x409921
cmp edi, dword [ebp + 0xc]
jne 0x409909
cmp byte [ebp - 1], 0xa
jne 0x409909
mov byte [edi], 0xa
jmp 0x409921
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00409cad
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x409922
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40987a
jmp 0x409940
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x409940
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x40995f
and dword [0x4153a0], 0
mov dword [0x41539c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a182
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x415178]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x415560]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x40a312
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x415580]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x40a312
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x40a1e1
xor eax, eax
jmp 0x40a326
test al, 0x20
je 0x40a1f2
push 2
push edi
push edi
push ecx
call fcn.0040c6a6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40a2ae
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x40a2e6
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x40a248
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40a239
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40a21e
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a288
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x40a291
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40a212
jmp 0x40a293
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x40a30d
cmp dword [ebp + 8], edi
je 0x40a2e6
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x40a2db
mov dword [0x4153a0], eax
jmp 0x40a319
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a2d0
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x40a293
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40a293
push dword [ebp + 8]
call fcn.00408c52
pop ecx
jmp 0x40a323
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40a2fb
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x40a1da
mov dword [0x41539c], 0x1c
mov dword [0x4153a0], edi
jmp 0x40a323
sub eax, dword [ebp - 0x14]
jmp 0x40a326
and dword [0x4153a0], 0
mov dword [0x41539c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0040c106
leave
ret
Function at 0x40b736
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x415178]
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 + 0x415040]
je 0x40b763
inc eax
cmp eax, 0x12
jb 0x40b754
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x415040]
jne 0x40b897
mov eax, dword [0x415398]
cmp eax, 1
je 0x40b872
cmp eax, edx
jne 0x40b793
cmp dword [0x414db4], 1
je 0x40b872
cmp ecx, 0xfc
je 0x40b897
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 0x40b7cc
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040d710
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040aee0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b80e
lea eax, [ebp - 0x10c]
push eax
call fcn.0040aee0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f6c8
push edi
call fcn.00408280
add esp, 0x10
push edi
call fcn.0040aee0
push dword [esi + 0x415044]
mov ebx, eax
call fcn.0040aee0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407fd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040d710
push edi
push ebx
call fcn.0040d720
push 0x40f6a8
push ebx
call fcn.0040d720
push dword [esi + 0x415044]
push ebx
call fcn.0040d720
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040d60c
add esp, 0x2c
jmp 0x40b897
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x415044]
push dword [esi]
call fcn.0040aee0
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.0040c106
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d457
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 0x40d4c2
push 0x3d
push dword [ebp + 8]
call fcn.0040e0df
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x40d4c2
cmp dword [ebp + 8], esi
je 0x40d4c2
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4153c8]
cmp eax, dword [0x4153cc]
jne 0x40d4a8
mov edi, eax
call fcn.0040d3f6
mov dword [0x4153c8], eax
cmp eax, ebx
jne 0x40d501
cmp dword [ebp + 0xc], ebx
je 0x40d4ca
cmp dword [0x4153d0], ebx
je 0x40d4ca
call fcn.0040b484
test eax, eax
je 0x40d501
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x40d605
push 4
call fcn.0040826a
cmp eax, ebx
pop ecx
mov dword [0x4153c8], eax
je 0x40d4c2
mov dword [eax], ebx
cmp dword [0x4153d0], ebx
jne 0x40d501
push 4
call fcn.0040826a
cmp eax, ebx
pop ecx
mov dword [0x4153d0], eax
je 0x40d4c2
mov dword [eax], ebx
mov ebx, dword [0x4153c8]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0040d3a9
mov edi, eax
test edi, edi
pop ecx
jl 0x40d55a
cmp dword [ebx], 0
je 0x40d55a
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004081c0
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40d542
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x40d590
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x40d539
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040d92c
test eax, eax
pop ecx
pop ecx
je 0x40d590
jmp 0x40d58b
cmp dword [ebp - 4], 0
jne 0x40d5fe
test edi, edi
jge 0x40d56a
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040d92c
test eax, eax
pop ecx
pop ecx
je 0x40d4c2
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4153c8], eax
cmp dword [ebp + 0xc], 0
je 0x40d5e7
push dword [ebp + 8]
call fcn.0040aee0
inc eax
inc eax
push eax
call fcn.0040826a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40d5e7
push dword [ebp + 8]
push esi
call fcn.0040d710
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 0x40d5e0
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004081c0
pop ecx
cmp dword [ebp - 4], 0
je 0x40d5f6
push dword [ebp + 8]
call fcn.004081c0
pop ecx
mov eax, dword [ebp - 8]
jmp 0x40d4c5
push esi
call fcn.004081c0
pop ecx
xor eax, eax
jmp 0x40d4c5
Function at 0x40d60c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x415544], ebx
push esi
push edi
jne 0x40d68c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d6c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40fbd0
push edi
call esi
test eax, eax
mov dword [0x415544], eax
je 0x40d6c7
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x415548], eax
call esi
cmp dword [0x4153a8], 2
mov dword [0x41554c], eax
jne 0x40d68c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x415554], eax
je 0x40d68c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x415550], eax
mov eax, dword [0x415550]
test eax, eax
je 0x40d6d1
call eax
test eax, eax
je 0x40d6b8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x415554]
test eax, eax
je 0x40d6b8
test byte [ebp - 8], 1
jne 0x40d6d1
cmp dword [0x4153b4], 4
jb 0x40d6cb
or byte [ebp + 0x12], 0x20
jmp 0x40d6f0
xor eax, eax
jmp 0x40d700
or byte [ebp + 0x12], 4
jmp 0x40d6f0
mov eax, dword [0x415548]
test eax, eax
je 0x40d6f0
call eax
mov ebx, eax
test ebx, ebx
je 0x40d6f0
mov eax, dword [0x41554c]
test eax, eax
je 0x40d6f0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x415544]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dc6f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00407fd0
mov eax, dword [0x415178]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x415560]
mov dword [ebp - 4], eax
jae 0x40ddaf
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x415580]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40ddaf
push 1
push esi
push ebx
call fcn.00409cad
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40ddb9
push 2
push esi
push ebx
call fcn.00409cad
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ddb9
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40dd5c
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.0040af70
push 0x8000
push ebx
call fcn.0040e236
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40dd1b
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.0040a182
add esp, 0xc
cmp eax, 0xffffffff
je 0x40dd39
sub edi, eax
test edi, edi
jg 0x40dd10
jmp 0x40dd4f
cmp dword [0x4153a0], 5
jne 0x40dd4c
mov dword [0x41539c], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040e236
pop ecx
pop ecx
jmp 0x40dd9c
jge 0x40dd9c
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00409cad
push ebx
call fcn.0040c343
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, 0xffffffff
jne 0x40dd9c
mov dword [0x41539c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4153a0], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00409cad
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40ddbc
mov dword [0x41539c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040c106
leave
ret
Function at 0x40dfe3
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.00407fd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e078
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 [0x4153a8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40e078
cmp eax, 1
je 0x40e090
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 0x40e078
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40e04d
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40e074
xor eax, eax
inc eax
jmp 0x40e0ac
cmp esi, ebx
jae 0x40e07c
xor eax, eax
jmp 0x40e0ac
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4153a8]
jmp 0x40e092
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 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x61854a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x618551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x6198af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x636348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x636348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x635178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6198b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219