joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402060
Capabilities:
Encode data using xor

Disassembly:
call [ebx]
pop edi
rol dword [eax + 0x1c], 0x56
call fcn.00403a2e
add esp, 8
pop edi
dec ebp
mov cs, word [ebx - 0x743ca21b]
sbb eax, 0x4102bc
imul edi, dword [esp + edx*8 - 0x24bcffc0], 0x5302bc1d
add bh, bh
adc eax, 0xd840c164
push esi
out 0x42, al
test dword [eax], 0x8c41b00
pop edi
or bl, byte [ebx - 0x75]
in eax, 0x5d
iretd
push ebp
mov ebp, esp
and dword [ebx - 0x44], 0x8b000000
inc ebp
or byte [ebp - 0x17ed8bb3], al
mov ecx, dword [ecx]
add byte [ebx - 0x37bebab0], ah
mov dword [0xff1b0ba4], edx
jmp 0x40208d
jle 0x40201a
sbb eax, 0x410bc0
push esi
push edi
mov edi, dword [0xd0410bc4]
sub eax, ebx
sbb edx, edi
mov dword [ebp - 0x28], eax
mov dword [esi - 0x24], edi
mov esi, dword [0x6040c164]
fisttp word [esi - 0x414b97d0]
inc eax
add byte [esi], bl
or eax, 0xd5c2bc
pop ebp
sar bh, 1
xor eax, 0x41138c68
add byte [eax + 0x40df57], dl
mov edx, 0x1800a1af
nop
add byte [eax + 0x68], dl
jl 0x4020b3
inc eax
add bh, bh
salc
xor ecx, ecx
mov bp, bp
hlt
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x714e0bf4
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x35c36a11
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x405f20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42641b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4041f4
call fcn.00406b81
push 4
mov dword [esp + 0x18], 0
call fcn.0040783b
mov edi, eax
add esp, 4
test edi, edi
je 0x405f94
push ebx
call fcn.00406a59
mov dword [edi], eax
call fcn.00406818
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406b42
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405f88
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406b6a
pop ebx
jmp 0x405f96
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4082b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429648]
jne 0x4082bb
repz ret
jmp fcn.0040cb3c
Function at 0x411f7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b6ad
and dword [ebp - 0x14], 0
cmp dword [0x42bf8c], 0
mov dword [ebp - 0x18], eax
jne 0x41202f
push 0x403f00
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4120d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ef4
push ebx
call edi
test eax, eax
je 0x4120d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403ee4
push ebx
mov dword [0x42bf8c], eax
call edi
push eax
call esi
push 0x403ed0
push ebx
mov dword [0x42bf90], eax
call edi
push eax
call esi
push 0x403eb4
push ebx
mov dword [0x42bf94], eax
call edi
push eax
call esi
mov dword [0x42bf9c], eax
test eax, eax
je 0x41202f
push 0x403e9c
push ebx
call edi
push eax
call esi
mov dword [0x42bf98], eax
mov eax, dword [0x42bf98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412088
cmp dword [0x42bf9c], ecx
je 0x412088
push eax
call esi
push dword [0x42bf9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412088
test ebx, ebx
je 0x412088
call edi
test eax, eax
je 0x41207f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41207f
test byte [ebp - 8], 1
jne 0x412088
or dword [ebp + 0x10], 0x200000
jmp 0x4120bb
mov eax, dword [0x42bf90]
cmp eax, dword [ebp - 0x18]
je 0x4120bb
push eax
call esi
test eax, eax
je 0x4120bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4120bb
mov eax, dword [0x42bf94]
cmp eax, dword [ebp - 0x18]
je 0x4120bb
push eax
call esi
test eax, eax
je 0x4120bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42bf8c]
call esi
test eax, eax
je 0x4120d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4120d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082b1
leave
ret

Function at 0x424d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x7afce8], ax
mov word [0x7afcec], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x7afce8
mov dword [0x7afcf4], 0x320033
mov dword [0x7afcfc], 0x6c006c
mov word [0x7afcee], cx
mov dword [0x7afcf0], 0x6c0065
mov dword [0x7afcf8], 0x64002e
mov word [0x7afcea], dx
mov word [0x7afd00], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x7afce4]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x7afce0], eax
mov eax, dword [0x430d34]
push edx
push eax
mov byte [0x42bfab], 0x65
mov dword [0x42bfa1], 0x75747269
mov word [0x42bfa5], 0x6c61
mov byte [0x42bfa0], 0x56
mov word [0x42bfac], 0x7463
mov byte [0x42bfae], 0
mov dword [0x42bfa7], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x424e80
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x7afce4], 0x37
jne 0x424f1b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea ecx, [esp + 0x410]
push ecx
push 0
push 0x403f80
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x7b0cd8]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x430d34]
mov byte [edx + esi], cl
add esp, 0x80c
ret
Function at 0x4250c0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7afce4]
sub esp, 0x9cc
push ebx
push ebp
push esi
mov esi, dword [0x430d34]
shr eax, 3
push edi
test eax, eax
je 0x42526a
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x4250f4
mov esi, dword [esp + 0x18]
cmp dword [0x7afce4], 0x1c
jne 0x425111
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x42a2d0]
mov eax, dword [0x42a2d4]
mov ecx, dword [0x42a2d8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x42a2dc]
mov ebp, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x30]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x7afc54], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x7afce4], 0x1be
jne 0x42519d
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x34]
cmp dword [0x7afce4], 0x979
mov dword [0x7afc58], 0xff6b3619
mov dword [0x7afc5c], 0xffffffff
jne 0x4251ef
mov edx, dword [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea eax, [esp + 0x1dc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x42514a
cmp dword [0x7afce4], 0x8d4
jne 0x425227
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x7afce4], 0x17
jne 0x425259
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x98]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x4250f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9cc
ret
Function at 0x40a2d0
Capabilities:
Write file on windows

Disassembly:
cmp ah, 0xa
add byte [ebp - 6], bh
jge 0x40a2c3
ret
lcall 0x8b08, 0x628bec8b
dec eax
add al, 0x85
leave
jne 0x40a2ed
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, dword [ebx + 0x4c25d]
mov eax, dword [eax + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a2c7
cmp eax, 0x17
je 0x40a2e7
cmp eax, 0x2e02
push esi
jne 0x40a316
mov eax, 0x11089
pop esi
pop ebp
pop esp
add al, 0
mov eax, dword [edi - 0x68]
rol byte [eax], 0xff
dec edi
test eax, eax
jne 0x40a327
pop esi
pop ebp
ret 0xc104
call esi
add eax, 0xa8280
mov dword [0x94c215], eax
nop
nop
cdq
nop
nop
add dl, 0x72
inc edi
push 0xffffffffffffffe8
xchg edx, eax
nop
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0xf546ce4
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42f314
mov ecx, 0x34b52d4c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4012af
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403d14], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403d10], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403d10]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d18], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401379
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401360
mov eax, dword [0x403d14]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x401499
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x10
mov edx, esi
mov eax, 4
mov esi, 0x401116
mov edi, 0x4035f5
dec ecx
call fcn.00401cc6
mov eax, ecx
push edi
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call fcn.004013a1
call fcn.00401c72
mov eax, 0x14
mov ecx, 0x78f
mov esi, 0x401192
mov edi, 0x4014e3
call fcn.00401cc6
xor eax, eax
xor eax, 0x17cf0b66
sub eax, 0x4a88926a
fisttp qword [edi - 0x2d]
sbb al, 0xa9
invalid
Function at 0x43b642
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
or edx, edx
call fcn.0043b673
or ecx, edx
dec ecx
xor dword [edi], eax
add edx, 0xa67bcca9
inc ecx
inc edi
add ecx, edx
or edx, edx
cmp edi, ebx
jne fcn.0043b642
push 0xc52e590f
pop edx
add edx, 1
ret

Function at 0x438cab
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
and eax, edi
push 0x9d6ccc82
mov eax, dword [esp]
add esp, 4
or edi, edi
call fcn.00438ceb
and eax, edi
xor dword [ebx], ecx
add edi, 1
mov eax, 0xfcd5eca3
mov edi, edi
inc ebx
and edi, edi
sub edi, eax
dec eax
cmp ebx, edx
jne fcn.00438cab
push eax
mov eax, dword [esp]
add esp, 4
ret

Function at 0x4116c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x4116e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4116e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4116d8
mov eax, 1
add ebx, ebx
jne 0x4116fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4116f0
jne 0x41170c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4116f0
xor ecx, ecx
sub eax, 3
jb 0x411720
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411792
mov ebp, eax
add ebx, ebx
jne 0x41172b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411738
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41175c
inc ecx
add ebx, ebx
jne 0x411748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41173d
jne 0x411759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41173d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41177c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41176d
jmp 0x4116de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41177c
add edi, ecx
jmp 0x4116de
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41179a
cmp byte [edi], 5
jne 0x41179a
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 0x41179f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x41180e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11b1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11be0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4117cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11be8]
or eax, eax
je 0x411808
mov dword [ebx], eax
add ebx, 4
jmp 0x4117e9
call dword [esi + 0x11be4]
mov ebp, dword [esi + 0x11bec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x411842
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4029f4
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 0x402a31
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
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a51
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b10
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c18
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.004048a8
test esi, esi
jne 0x402c4e
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.00404998
jmp 0x402c6c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402acc
mov edi, eax
test esi, esi
je 0x402c6c
cmp dword [ebx], 0
je 0x402c6c
dec esi
jmp 0x402c55
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4038cc
Capabilities:
Query or enumerate registry value

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

Function at 0x40472c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62304c], 0
je 0x40478d
cmp word [0x623220], 0xd7b2
jne 0x404755
cmp dword [0x623228], 0
jbe 0x404755
mov eax, 0x62321c
call dword [0x623238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x61d058
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 0x4047b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x61d020], 0
jne 0x4047a9
push 0
push 0x61d078
push 0x61d058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409c48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409c61
test al, 0x10
jne 0x409c65
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d034
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 0x40d06d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404998
jmp 0x40d076
mov eax, ebx
mov edx, esi
call fcn.004048fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d080
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 0x40d0a1
mov al, byte [esp]
jmp 0x40d0a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d728
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d5a0
mov eax, dword [0x621f34]
cmp byte [eax], 0
je 0x40d790
mov eax, dword [0x621904]
call fcn.0040307c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a020
push eax
lea eax, [esp + 0x50]
push eax
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 0x40d7d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d7c6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x62180c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x623718]
call fcn.004063f4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e6cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e730
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404b10
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409958
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e737
lea eax, [ebp - 0xc]
call fcn.004048a8
ret