joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [0x100ab018]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
mov esi, dword [0x100ae168]
mov ebp, edx
push edi
mov edi, ecx
test esi, esi
je 0x10049f25
mov esi, dword [esi + 0x78]
jmp 0x10049f27
xor esi, esi
push 0xbe2
call dword [0x100ae1d8]
push 0x8006
call dword [0x100ae188]
push 0x303
push 1
push 0x303
push 0x302
call dword [0x100ae190]
push 0xb44
call dword [0x100ae1c8]
push 0xb71
call dword [0x100ae1c8]
push 0xb90
call dword [0x100ae1c8]
push 0xc11
call dword [0x100ae1d8]
cmp dword [esi], 0x136
jb 0x10049f93
push 0x8f9d
call dword [0x100ae1c8]
push 0x1b02
push 0x408
call dword [0x100ae230]
cmp byte [esi + 0x58], 0
mov bl, 1
je 0x10049fd3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x935c
call dword [0x100ae1f8]
xor eax, eax
movzx ebx, bl
cmp dword [esp + 0x10], 0x8ca2
cmove ebx, eax
push dword [esp + 0x5c]
push ebp
push 0
push 0
call dword [0x100ae258]
movss xmm6, dword [edi + 0x1c]
movss xmm4, dword [edi + 0x20]
movaps xmm5, xmm6
movaps xmm3, xmm4
addss xmm5, dword [edi + 0x24]
addss xmm3, dword [edi + 0x28]
test bl, bl
jne 0x1004a009
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm2, dword [0x100a0ee0]
movaps xmm1, xmm5
subss xmm1, xmm6
mov dword [esp + 0x3c], 0xbf800000
movaps xmm0, xmm2
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x3f800000
divss xmm0, xmm1
movss dword [esp + 0x14], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
movaps xmm0, xmm4
subss xmm0, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
movaps xmm0, xmm5
movss dword [esp + 0x28], xmm2
addss xmm0, xmm6
subss xmm6, xmm5
divss xmm0, xmm6
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm3
addss xmm0, xmm4
subss xmm3, xmm4
divss xmm0, xmm3
movss dword [esp + 0x48], xmm0
push dword [esi + 0x30]
call dword [0x100ae250]
push 0
push dword [esi + 0x34]
call dword [0x100ae248]
lea eax, [esp + 0x14]
push eax
push 0
push 1
push dword [esi + 0x38]
call dword [0x100ae24c]
cmp dword [esi], 0x14a
jae 0x1004a0c4
cmp byte [esi + 0x25], 0
je 0x1004a0ce
push 0
push 0
call dword [0x100ae17c]
push dword [esp + 0x60]
call dword [0x100ae184]
push dword [esi + 0x48]
push 0x8892
call dword [0x100ae178]
push dword [esi + 0x4c]
push 0x8893
call dword [0x100ae178]
push dword [esi + 0x3c]
call dword [0x100ae1dc]
push dword [esi + 0x40]
call dword [0x100ae1dc]
push dword [esi + 0x44]
call dword [0x100ae1dc]
push 0
push 0x14
push 0
push 0x1406
push 2
push dword [esi + 0x3c]
call dword [0x100ae254]
push 8
push 0x14
push 0
push 0x1406
push 2
push dword [esi + 0x40]
call dword [0x100ae254]
push 0x10
push 0x14
push 1
push 0x1401
push 4
push dword [esi + 0x44]
call dword [0x100ae254]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004d2bc
add esp, 0x48
ret
Function at 0x1004ace0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, dword [0x100ae168]
push esi
test eax, eax
je 0x1004acef
mov esi, dword [eax + 0x74]
jmp 0x1004acf1
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1004ad14
mov dword [esi], eax
pop esi
ret
Function at 0x1005146c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100514ab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100514ab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100514ab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100514ab
cmp dword [ecx + 0x74], 0xe
jbe 0x100514ab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10056871
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10067dd0
mov eax, dword [0x100ab018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1005c953
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100568b3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10056a0f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10067be0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100ac908]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1005ce83
mov ecx, dword [esi*4 + 0x100ac908]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10056a08
cmp eax, dword [ecx + edi + 0x24]
jne 0x10056a08
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10056a08
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005ce83
add esp, 0x14
test edx, edx
jl 0x10056a08
jg 0x1005697e
test eax, eax
jb 0x10056a08
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10056a08
jl 0x10056998
cmp dword [ebp - 0x1008], eax
ja 0x10056a08
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100569b6
test ebx, ebx
je 0x100569ef
cmp ecx, edi
jae 0x100569ef
mov al, byte [ecx]
cmp al, 0xd
jne 0x100569d0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100569dc
cmp byte [ecx + 1], 0xa
jne 0x100569dc
inc ecx
jmp 0x100569dc
movzx eax, al
movsx eax, byte [eax + 0x100ab218]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100569b6
cmp edx, ebx
jne 0x100569b6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10056a0d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004d2bc
leave
ret
Function at 0x1005bd67
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007010c
push 0x10070104
push str.FlsAlloc
push 0x1f
call fcn.1005bc43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005bd9b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006d25c]
call esi
jmp 0x1005bda1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005bde5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007011c
push 0x10070114
push str.FlsGetValue
push 0x21
call fcn.1005bc43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005be1c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006d25c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005be24
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10070124
push 0x1007011c
push str.FlsSetValue
push 0x22
call fcn.1005bc43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005be5e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006d25c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005ceff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100ac908]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005cf3f
cmp byte [ebx], 0xa
jne 0x1005cf3f
or byte [edi + eax + 0x28], 4
jmp 0x1005cf44
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1005d043
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005d026
inc eax
cmp dl, 0xd
je 0x1005cf70
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005cf96
cmp eax, ecx
jae 0x1005cfa4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1005cf58
jmp 0x1005d043
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005d021
cmp dword [ebp - 0x10], 0
je 0x1005d021
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100ac908]
test byte [eax + edi + 0x28], 0x48
je 0x1005cffb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005cfe6
mov byte [esi], dl
jmp 0x1005cff7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ac908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005d043
cmp byte [ebp - 1], 0xa
jne 0x1005d00a
cmp esi, ebx
jne 0x1005d00a
mov byte [esi], 0xa
jmp 0x1005d042
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005cea1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005d043
mov byte [esi], 0xd
jmp 0x1005d042
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100ac908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005d040
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005d043
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005d04c
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 + 0x100ac908]
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 0x1005d092
cmp word [ebx], dx
jne 0x1005d092
or byte [eax + edi + 0x28], 4
jmp 0x1005d097
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 0x1005d1fa
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 0x1005d1da
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005d0d8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005d10e
cmp eax, edx
jae 0x1005d11c
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 0x1005d0b3
jmp 0x1005d1fa
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 0x1005d1d5
cmp dword [ebp - 0x18], 0
je 0x1005d1d5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100ac908]
test byte [eax + edi + 0x28], 0x48
je 0x1005d1ab
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 0x1005d16f
mov word [esi], cx
jmp 0x1005d1a6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100ac908]
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 + 0x100ac908]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100ac908]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005d1fa
pop eax
cmp word [ebp - 4], ax
jne 0x1005d1bb
cmp esi, ebx
jne 0x1005d1bb
mov word [esi], ax
jmp 0x1005d1f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005cea1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005d1fa
push 0xd
pop eax
jmp 0x1005d1b6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100ac908]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005d1f4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005d1fa
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 0x100614b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10061554
push ebx
push esi
call fcn.10061480
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10061414
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10061501
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10061553
push edi
push eax
call fcn.1005cb79
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10061521
call fcn.1005baf0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10061552
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10061414
add esp, 0x20
test eax, eax
jne 0x10061540
push edi
call fcn.1005baf0
jmp 0x10061548
push ebx
call fcn.1005baf0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10065731
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.100656ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100658a0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100658a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10065855
jg 0x1006578d
test eax, eax
je 0x1006584b
push 1
push 0x1000
call fcn.1005ba93
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100657b0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10065842
push 0x8000
push ebx
call fcn.100655de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100657d9
jg 0x100657d4
cmp ecx, 0x1000
jb 0x100657d9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005e373
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006581e
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 0x100657d4
jl 0x10065805
test ecx, ecx
jne 0x100657c6
push dword [ebp - 0xc]
push ebx
call fcn.100655de
push esi
call fcn.1005baf0
add esp, 0xc
xor ebx, ebx
jmp 0x100658ae
cmp byte [edi + 0x24], 0
je 0x10065835
cmp dword [edi + 0x20], 5
jne 0x10065835
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10065840
mov ebx, dword [edi + 0x18]
jmp 0x10065842
xor ebx, ebx
push esi
call fcn.1005baf0
pop ecx
jmp 0x100658ae
test ecx, ecx
jg 0x10065817
jl 0x10065855
test eax, eax
jae 0x10065817
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005cea1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10065875
cmp byte [edi + 0x1c], 0
je 0x10065817
jmp 0x100658a6
push ebx
call fcn.10062ac5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10065817
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 0x100658ae
cmp byte [edi + 0x1c], 0
je 0x100658ab
mov ebx, dword [edi + 0x18]
jmp 0x100658ae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1005cea1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10067ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10067bcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10067bcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x59d530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x152000]
push edi
or ebp, 0xffffffff
jmp 0x59d552
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59d559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59d548
mov eax, 1
add ebx, ebx
jne 0x59d56b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59d57c
jne 0x59d59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59d59b
dec eax
add ebx, ebx
jne 0x59d588
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59d560
add ebx, ebx
jne 0x59d597
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59d5ed
xor ecx, ecx
sub eax, 3
jb 0x59d5b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59d622
sar eax, 1
mov ebp, eax
jmp 0x59d5be
add ebx, ebx
jne 0x59d5be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59d58c
inc ecx
add ebx, ebx
jne 0x59d5cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59d58c
add ebx, ebx
jne 0x59d5d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59d5ce
jne 0x59d5ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59d5ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59d60c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59d5fe
jmp 0x59d54e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59d60c
add edi, ecx
jmp 0x59d54e
pop esi
mov edi, esi
mov ecx, 0x90f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59d62a
cmp byte [edi], 7
jne 0x59d62a
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 0x59d62f
lea edi, [esi + 0x19b000]
mov eax, dword [edi]
or eax, eax
je 0x59d6a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19d9d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19da10]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59d65c
mov ecx, edi
jns 0x59d68b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19da14]
or eax, eax
je 0x59d6a1
mov dword [ebx], eax
add ebx, 4
jmp 0x59d679
call dword [esi + 0x19da1c]
mov ebp, dword [esi + 0x19da18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x59d6db
sub esp, 0xffffff80
jmp 0x4045a8
Function at 0x7c1bdc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7c1be6
pushal
call 0x7c1bec
pop ebp
sub ebp, 0x10
sub ebp, 0x3c1bdc
jmp 0x7c1c02
mov eax, 0x3c1bdc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b4
mov edx, 0x8f4ed141
xor byte [eax], dl
inc eax
dec ecx
jne 0x7c1c19
jmp 0x7c1c2c
retf 0xca8c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, 0x5bfe
mov eax, ecx
mov dword [0x4b4752], eax
mov dword [0x4b4739], 0
mov eax, dword [0x4b4739]
mov dword [0x4b48ef], eax
mov dword [0x4b49c1], 0
mov eax, dword [0x4b49c1]
mov eax, ebx
xor ebx, eax
test dword [0x4b428b], eax
jne 0x401045
mov ebx, 0x19c2
sub eax, ebx
dec eax
shl eax, 1
ror eax, 1
or eax, dword [0x4b43b9]
je 0x401077
sub eax, dword [0x4b47dd]
dec eax
mov ebx, 0x11e8
add eax, ebx
dec eax
or eax, ebx
mov ebx, 0x1dd0
sub eax, ebx
add eax, dword [0x4b4a1d]
xor ebx, eax
sub eax, dword [0x4b46db]
shr eax, 1
add dword [0x4b42db], eax
jmp fcn.00402754
Function at 0x4021a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x4021c0
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4
Function at 0x4079c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4079f2
jl 0x4079e5
test ecx, ecx
jne 0x4079f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x407ab2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00409b40
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x407a5e
jg 0x407a1d
test esi, esi
je 0x407a5e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x407a35
mov eax, dword [esp + 0x10]
jl 0x407a2f
cmp eax, esi
jae 0x407a35
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0042a370
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x407a7f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x407a9b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x407a04
jl 0x407a9b
test ecx, ecx
jne 0x407a04
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x407af6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x407af6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0042a370
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x407b67
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x407b1c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x407b52
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00438981
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x407b67
cmp edi, eax
ja 0x407b30
test edi, edi
je 0x407b67
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00438981
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc