joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aa2d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4620c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43aa73
cmp word [ebx], dx
jne 0x43aa73
or byte [eax + edi + 0x28], 4
jmp 0x43aa78
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43abdb
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43abbb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43aab9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43aaef
cmp eax, edx
jae 0x43aafd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43aa94
jmp 0x43abdb
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43abb6
cmp dword [ebp - 0x18], 0
je 0x43abb6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4620c0]
test byte [eax + edi + 0x28], 0x48
je 0x43ab8c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43ab50
mov word [esi], cx
jmp 0x43ab87
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4620c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4620c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4620c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43abdb
pop eax
cmp word [ebp - 4], ax
jne 0x43ab9c
cmp esi, ebx
jne 0x43ab9c
mov word [esi], ax
jmp 0x43abd8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043b466
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43abdb
push 0xd
pop eax
jmp 0x43ab97
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4620c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43abd5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43abdb
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43e9c9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x460080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43ea14
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043eb64
test al, al
jne 0x43ea0e
sub edx, 2
cmp edx, edi
jne 0x43e9f4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43ea36
lea eax, [edi + 2]
cmp edx, eax
je 0x43ea36
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043e915
add esp, 0x10
jmp 0x43eb30
push esi
lea ecx, [ebp - 0x255]
call fcn.0043eb64
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43ea79
push dword [ebp - 0x25c]
jmp 0x43ea26
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43eab6
cmp word [ebp - 0x226], 0
je 0x43ead7
cmp word [ebp - 0x226], ax
jne 0x43eab6
cmp word [ebp - 0x224], 0
je 0x43ead7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043e915
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43eb23
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43ea90
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43eb0b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43eb30
push 0x43e745
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00445060
add esp, 0x10
jmp 0x43eb00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004281a9
leave
ret

Function at 0x441a1d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00437f00
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x441a8c
cmp esi, dword [ebp - 4]
je 0x441a87
cmp dword [ebp + 0xc], 0
je 0x441a87
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x441a64
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044156f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x441a8e
xor eax, eax
inc eax
jmp 0x441a8e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x441af3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x460080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00437f00
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00437f00
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x441b6a
cmp word [ecx], dx
je 0x441b6a
mov eax, dword [0x44f93c]
push edi
dec eax
push eax
push 0x44f828
call fcn.00441a92
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x441bdd
cmp word [eax], dx
je 0x441bdd
mov eax, dword [edi]
test eax, eax
je 0x441b8e
cmp word [eax], dx
je 0x441b8e
lea eax, [ebp - 0x10]
push eax
call fcn.00441475
jmp 0x441b97
lea eax, [ebp - 0x10]
push eax
call fcn.00441510
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x441c07
mov eax, dword [0x44f824]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44f518
call fcn.00441a92
add esp, 0xc
test al, al
je 0x441c07
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x441bd2
cmp word [eax], di
je 0x441bd2
lea eax, [ebp - 0x10]
push eax
call fcn.00441475
pop ecx
jmp 0x441c09
lea eax, [ebp - 0x10]
push eax
call fcn.00441510
jmp 0x441bcf
mov eax, dword [edi]
test eax, eax
je 0x441bf4
cmp word [eax], dx
je 0x441bf4
lea eax, [ebp - 0x10]
push eax
call fcn.0044142a
pop ecx
jmp 0x441c07
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x441cd2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00441917
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x441cd2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x441cd2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x441cd2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x441c5f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043887d
test ebx, ebx
je 0x441ccd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043887d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x441cd2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x441cd2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00445700
add esp, 0x10
xor eax, eax
inc eax
jmp 0x441cd4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004281a9
leave
ret
Function at 0x445e45
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00445dc1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x445fb4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x445fb4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x445f69
jg 0x445ea1
test eax, eax
je 0x445f5f
push 1
push 0x1000
call fcn.004381eb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x445ec4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x445f56
push 0x8000
push ebx
call fcn.004361e4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x445eed
jg 0x445ee8
cmp ecx, 0x1000
jb 0x445eed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043991a
add esp, 0x10
cmp eax, 0xffffffff
je 0x445f32
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x445ee8
jl 0x445f19
test ecx, ecx
jne 0x445eda
push dword [ebp - 0xc]
push ebx
call fcn.004361e4
push esi
call fcn.00438248
add esp, 0xc
xor ebx, ebx
jmp 0x445fc2
cmp byte [edi + 0x24], 0
je 0x445f49
cmp dword [edi + 0x20], 5
jne 0x445f49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x445f54
mov ebx, dword [edi + 0x18]
jmp 0x445f56
xor ebx, ebx
push esi
call fcn.00438248
pop ecx
jmp 0x445fc2
test ecx, ecx
jg 0x445f2b
jl 0x445f69
test eax, eax
jae 0x445f2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043b466
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x445f89
cmp byte [edi + 0x1c], 0
je 0x445f2b
jmp 0x445fba
push ebx
call fcn.0043f9ee
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x445f2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x445fc2
cmp byte [edi + 0x1c], 0
je 0x445fbf
mov ebx, dword [edi + 0x18]
jmp 0x445fc2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043b466
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x447040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44706d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44706d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4157c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4157e4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415600
add esp, 4
jmp 0x4157e6
xor eax, eax
pop ebp
ret

Function at 0x4157f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4a57cc]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x254], 0
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004031d0
add esp, 0xc
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x25d], cl
inc dword [ebp - 0x25c]
cmp byte [ebp - 0x25d], 0
jne 0x415837
mov edi, dword [ebp - 0x25c]
mov edx, dword [str..]
mov dword [edi], edx
mov al, byte [0x48ad14]
mov byte [edi + 4], al
mov ecx, 0x50
xor eax, eax
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x4158a1
xor eax, eax
jmp 0x41590f
lea eax, [ebp - 0x224]
push eax
push 0x48ad18
call fcn.00403210
add esp, 8
test eax, eax
je 0x4158dd
lea ecx, [ebp - 0x224]
push ecx
push 0x48ad1c
call fcn.00403210
add esp, 8
test eax, eax
je 0x4158dd
mov dword [ebp - 0x254], 1
jmp 0x4158f6
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4158a1
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 0x254], 0
sete al
mov ecx, dword [ebp - 4]
call fcn.004635af
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x480d60
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x480d8e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480dac
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00480cca
jmp 0x480dac
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480dac
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00480cca
test edi, edi
mov eax, edi
jne 0x480d96
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4aac94]
test ecx, ecx
je 0x480e5f
jmp 0x480d5f
ret 8

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.00401a1c
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x40473d]
lea edx, [fcn.00401a80]
sub eax, edx
push eax
push fcn.00401a80
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401329
push edi
call fcn.00401905
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401953
mov eax, edi
add eax, 0x1c800
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
xor eax, edi
push eax
lea eax, [0x4060e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a80
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x401a1c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
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 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x45fd0189
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x581c793c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x4562c0]
shl eax, 2
mov dword [0x4562c4], eax
push edi
push ecx
xor eax, eax
mov edi, 0x45c390
mov ecx, 0x460480
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00447668
pop edx
call fcn.004475cc
call fcn.004476a8
push 0
call fcn.00448a54
pop ecx
push 0x456288
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4562c8], eax
push 0
jmp fcn.00450b88

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

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

Function at 0x406e80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x406ea1
mov eax, 0xff
call fcn.00402480
xor byte [esi], al
inc esi
dec ebx
jne 0x406e91
pop esi
pop ebx
ret

Function at 0x40bfd8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00445684
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40c039
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40c039
cmp byte [ebp - 0x102], 0
je 0x40c039
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004458b0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4113bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4113c2
ret

Function at 0x413818
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x413869
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413850
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x413840
jmp 0x413869
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x413851
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419f48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45c478
cmp dword [edi], 0
jne 0x419fc4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x45c474]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45866c
mov ecx, 2
call fcn.00444888
mov edx, 0x419f20
lea eax, [esi + 5]
call fcn.00419f40
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00419f40
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x419f99
mov dword [0x45c474], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41a0e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41a130]
test si, 4
je 0x41a0f4
or bl, 1
test si, 8
je 0x41a0fe
or bl, 4
test si, 1
je 0x41a108
or bl, 8
test si, 2
je 0x41a112
or bl, 0x10
test si, 0x10
je 0x41a11c
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41a12b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41a134
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41a16c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41a14d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41a15c
or bl, 4
test esi, 0x20000000
je 0x41a167
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret