joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409798
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4140c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040687d
mov dword [ebp - 0x14], eax
cmp dword [0x416308], edi
jne 0x409889
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x409816
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409969
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x409969
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409969
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x416308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41630c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x416310], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x416318], eax
test eax, eax
je 0x409886
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x416314], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4098ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4098a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4098c3
push 4
pop eax
jmp 0x40996b
cmp dword [ebp - 0x14], edi
je 0x4098c3
push dword [0x416308]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4098a8
mov eax, dword [0x416314]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x409921
cmp dword [0x416318], esi
je 0x409921
push eax
call ebx
push dword [0x416318]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x409921
test eax, eax
je 0x409921
call ecx
test eax, eax
je 0x409916
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x409916
test byte [ebp - 8], 1
jne 0x409921
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x409951
mov eax, dword [0x41630c]
cmp eax, esi
je 0x40994e
push eax
call ebx
test eax, eax
je 0x40994e
call eax
mov edi, eax
test edi, edi
je 0x40994e
mov eax, dword [0x416310]
cmp eax, esi
je 0x40994e
push eax
call ebx
test eax, eax
je 0x40994e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x416308]
call ebx
test eax, eax
je 0x409969
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40996b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403396
leave
ret
Function at 0x40a985
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4114f8
cmp edx, dword [eax]
je 0x40a9a7
add eax, 8
inc ecx
cmp eax, 0x411588
jl 0x40a998
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4114f8]
jne 0x40aad5
mov eax, dword [0x491f30]
cmp eax, 1
je 0x40aaaf
test eax, eax
jne 0x40a9d8
cmp dword [0x411124], 1
je 0x40aaaf
cmp edx, 0xfc
je 0x40aad5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004073c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004074b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa52
lea eax, [ebp - 0x1a4]
push eax
call fcn.004074b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040ac30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004073c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004073d0
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.004073d0
push dword [esi + 0x4114fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004073d0
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bd08
add esp, 0x2c
pop edi
jmp 0x40aad5
lea eax, [ebp + 8]
lea esi, [esi + 0x4114fc]
push 0
push eax
push dword [esi]
call fcn.004074b0
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]
pop esi
leave
ret

Function at 0x8ddf44
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8ddf4a
pop ebp
sub ebp, 6
sub ebp, 0x4ddf44
jmp 0x8ddfa8
jmp 0x8ddfb1
mov eax, 0x4ddf44
add eax, ebp
add eax, 0x93
mov ecx, 0x632
mov edx, 0x6780f1ae
xor byte [eax], dl
inc eax
dec ecx
jne 0x8ddfc8
jmp 0x8ddfdb
invalid

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x40fa4c91
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0x2f1b5666
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x7709ff05
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
call dword [0x74e3294]
push 0x40
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push 0x3000
push dword [eax + 0x50]
push 0
call dword [0x74e3114]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x7709ffdb
mov eax, dword [ebp - 0xc]
push dword [eax + 0x54]
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.770a0000
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 4], eax
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x7709ffb2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 8]
jbe 0x7709ff85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x7709ffab
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0xc]
push ecx
call fcn.770a0000
add esp, 0xc
inc dword [ebp - 0x14]
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + 6]
cmp ecx, eax
jb 0x7709ff68
push dword [ebp - 8]
call fcn.7709fe29
test eax, eax
jne 0x7709ffe1
push 0x8000
push eax
push dword [ebp - 8]
call dword [0x74e3118]
xor eax, eax
leave
ret 4
push dword [ebp - 8]
call fcn.7709fd5f
mov eax, dword [ebp - 8]
jmp 0x7709ffdd
Function at 0x4035d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403604
mov edx, dword [eax + 8]
test edx, edx
jne 0x4035f3
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403600
add edx, esi
cmp ebx, edx
jb 0x403611
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x4035e9
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x40364c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x403666
xor eax, eax
jmp 0x4037e6
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x40367a
xor eax, eax
jmp 0x4037e6
cmp word [ebx + 0x14], 0xe0
jne 0x40368a
cmp word [ebx + 0x18], 0x10b
je 0x403691
xor eax, eax
jmp 0x4037e6
mov dword [0x454500], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004035d0
add esp, 8
test eax, eax
jne 0x4036bc
xor eax, eax
jmp 0x4037e6
mov edx, dword [0x454500]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403618
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4036ee
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call fcn.0040f016
xor eax, eax
jmp 0x4037e6
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x4037b8
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x4037aa
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x4037a5
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x40379c
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403791
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403791
test cl, cl
je 0x403786
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403791
add eax, 2
add edx, 2
test cl, cl
jne 0x40376a
jne 0x403791
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4037e6
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403750
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403728
jmp 0x4037e4
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4037dc
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4037d8
cmp dword [eax], 0
je 0x4037d8
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4037e6
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4037bf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4039b4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x4039cd
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403cfc
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa4
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403daf
mov eax, 0x401734
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403daf
mov eax, 0x403f68
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403daf
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403daf
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403d77
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403dcc
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa4
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403e82
mov eax, 0x401734
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403e82
mov eax, fcn.00403dcc
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403e82
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403e82
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403e4a
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4040ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x4040c4
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x4040bb
pop ebp
ret
Function at 0x40d244
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040d26b
jae 0x40d1f6
xor ecx, ecx
call fcn.0040d26b
jae 0x40d225
xor eax, eax
call fcn.0040d26b
jae 0x40d235
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040d26b
adc al, al
jae 0x40d217
jne 0x40d261
stosb byte es:[edi], al
jmp 0x40d1f9
call fcn.0040d277
sub ecx, ebx
jne 0x40d23e
call fcn.0040d275
jmp 0x40d25d
lodsb al, byte [esi]
shr eax, 1
je 0x40d287
adc ecx, ecx
jmp 0x40d25a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040d275
cmp eax, 0x7d00
jae 0x40d25a
cmp ah, 5
jae 0x40d25b
cmp eax, 0x7f
ja 0x40d25c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40d1f9
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40d5b4
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40d623
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40d5eb
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45f236
Capabilities:
Encode data using xor

Disassembly:
call fcn.00465c4e
add byte [eax], al
scasd eax, dword es:[edi]
push ss
inc eax
xor byte [esi], 0xa8
in eax, 0xf4
in al, 0x9f
xor ebx, dword ds:[ecx]
imul bp, word [ecx - 0x25], 0xb984
pop eax
rcr byte [ebx + 0x16], cl
jl 0x45f239
pop edx
invalid

Function at 0x4609db
Capabilities:
Packed with generic packer

Disassembly:
push 0x73f0dd1a
pushal
push 0x3353ae1e
mov eax, dword [eax + 0x65058]
pushfd
call fcn.00470c8a
push 0x21a8ca2e
mov dword [esp + 4], eax
lea eax, [ecx - 0x14e9c68e]
pop eax
mov eax, 0x4076f5
je 0x4654f9
pushal
mov eax, dword [eax + 0x65058]
push ebp
pushal
jmp 0x47210e
jmp 0x4607e4

Function at 0x469bf4
Capabilities:
Encode data using xor

Disassembly:
sub byte [ebx], al
or dl, al
cli
and dl, byte [ebx + 0x31]
inc eax
ret
call fcn.0046c3fb
salc
sahf
jae 0x469be3
dec edi
sahf
push es
mov ebx, 0xc98d00aa
add byte [edx], al
movsb byte es:[edi], byte [esi]
invalid
Function at 0x474997
Capabilities:
Resolve function by parsing pe exports

Disassembly:
shld eax, edi, cl
shr al, 7
aas
test al, ch
push ebp
dec bp
mov ebp, esp
adc ax, 0x12d7
cmp dl, ch
bsf ax, dx
aaa
sub esp, 0x10
aad 0x2e
dec ah
push esi
btr ax, 0xa
push edi
shld ax, dx, cl
cmp dl, 0x1f
aas
aas
push ebx
add ah, ch
push edx
daa
ror ah, cl
or ah, al
mov eax, dword [ebp + 8]
cmc
stc
test eax, eax
push esp
jmp 0x4768ae
mov byte [esp], al
lea esp, [esp + 4]
je 0x474f5c
bt bp, 8
mov esi, dword [eax + 0x3c]
rol dx, cl
cmp bp, ax
add esi, eax
btc dx, bp
bsf edx, ebx
mov edx, dword [esi + 0x78]
push ecx
bt ebp, 0x1e
test edx, edx
push 0x7373dc51
lea esp, [esp + 8]
je 0x474f5c
shr cl, cl
add edx, eax
pushfd
dec cl
mov ecx, dword [esi + 0x7c]
clc
add ecx, edx
pushal
mov dword [ebp - 0x10], ecx
stc
mov ecx, dword [ebp + 0xc]
bt bx, bp
cmc
cmp ecx, 0xffff
pushfd
lea esp, [esp + 0x28]
jbe 0x47878d
or di, di
jmp 0x477331
jmp 0x476661
mov edi, dword [edx + 0x24]
shrd ebx, esp, cl
btr cx, 3
stc
push edx
add edi, eax
seta bl
mov ebx, dword [edx + 0x20]
call fcn.0047ac97
jmp 0x475c25
call 0x474d82
Function at 0x402b10
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.004042b0
test esi, esi
jne 0x402b46
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004043a0
jmp 0x402b64
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a24
mov edi, eax
test esi, esi
je 0x402b64
cmp dword [ebx], 0
je 0x402b64
dec esi
jmp 0x402b4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4032e8
Capabilities:
Query or enumerate registry value

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

Function at 0x40412c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d604c], 0
je 0x40418d
cmp word [0x4d6220], 0xd7b2
jne 0x404155
cmp dword [0x4d6228], 0
jbe 0x404155
mov eax, 0x4d621c
call dword [0x4d6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4cc070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cc034], 0
jne 0x4041a9
push 0
push 0x4cc068
push 0x4cc070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406858
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 0x4068be
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.00404530
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402eac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4068a8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068c5
lea eax, [ebp - 0x10]
call fcn.004042b0
ret

Function at 0x409a3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404780
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409a55
test al, 0x10
jne 0x409a59
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d37c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d3b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043a0
jmp 0x40d3be
mov eax, ebx
mov edx, esi
call fcn.00404304
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d3c8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d3e9
mov al, byte [esp]
jmp 0x40d3eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e3f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e4ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404348
lea eax, [ebp - 8]
call fcn.004047d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404780
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e4b4
mov eax, ebx
call fcn.004027e8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e4ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404780
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e497
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e4dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e497
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4b4
mov eax, dword [ebp - 0x10]
call fcn.00402808
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4d1
lea eax, [ebp - 8]
call fcn.004042b0
ret