joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404af4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x27c
mov eax, 0x420116
call fcn.00408f76
xor esi, esi
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x26c]
call fcn.004052f7
push str..
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.0040301e
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.00402670
test eax, eax
jne 0x404b5d
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x274]
call fcn.00403b21
jmp 0x404ba2
lea ecx, [ebp - 0x268]
call fcn.00402670
test eax, eax
jne 0x404b74
lea eax, [ebp - 0x26c]
jmp 0x404b4f
push ecx
push ecx
push esp
lea ecx, [ebp - 0x268]
call fcn.00404fa6
mov eax, dword [ebp - 0x26c]
push ecx
push ecx
mov edx, esp
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x274]
mov dword [edx], eax
call fcn.00405a9b
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x264]
add eax, 0xc
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x270], ebx
call fcn.0040264e
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.0040264e
cmp ebx, 0xffffffff
je 0x404cec
mov edi, esi
test byte [ebp - 0x264], 6
jne 0x404ccd
cmp word [ebp - 0x238], 0x2e
je 0x404ccd
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x238]
push ecx
add eax, 0xc
push eax
lea eax, [ebp - 0x268]
push 0x427ae4
push eax
call fcn.00404fc5
add esp, 0x10
mov byte [ebp - 4], 3
test byte [ebp - 0x264], 0x10
je 0x404c83
sub esp, 0x28
mov ebx, esp
mov dword [ebp - 0x288], ebx
mov dword [ebx + 0x24], esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x404c54
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x268]
push ecx
push ecx
mov edx, esp
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.00404af4
mov ebx, dword [ebp - 0x270]
add esp, 0x30
mov dword [ebp - 0x278], eax
jmp 0x404cb8
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [ebp - 0x280], ecx
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0x284], eax
test ecx, ecx
je 0x404d07
mov eax, dword [ecx]
lea edx, [ebp - 0x284]
push edx
call dword [eax + 8]
mov dword [ebp - 0x278], 1
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.0040264e
add edi, dword [ebp - 0x278]
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404be6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, edi
lea ecx, [ebp - 0x26c]
call fcn.0040264e
lea ecx, [ebp + 0x10]
call fcn.00404d58
mov eax, esi
call fcn.00408f34
ret
call fcn.00408450
int3
Function at 0x40941f
Capabilities:
Parse pe header

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

Function at 0x4159c2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4243d0
push 0x4243c8
push str.FlsAlloc
push 0x1f
call fcn.004158a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4159f6
push dword [ebp + 8]
mov ecx, esi
call dword [0x421160]
call esi
jmp 0x4159fc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415a40
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4243e0
push 0x4243d8
push str.FlsGetValue
push 0x21
call fcn.004158a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415a77
push dword [ebp + 8]
mov ecx, esi
call dword [0x421160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415a7f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4243e8
push 0x4243e0
push str.FlsSetValue
push 0x22
call fcn.004158a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ab9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x421160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4175ba
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.00417536
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x417729
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x417729
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4176de
jg 0x417616
test eax, eax
je 0x4176d4
push 1
push 0x1000
call fcn.00413c04
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x417639
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4176cb
push 0x8000
push ebx
call fcn.0041322e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x417662
jg 0x41765d
cmp ecx, 0x1000
jb 0x417662
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00416ee6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4176a7
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 0x41765d
jl 0x41768e
test ecx, ecx
jne 0x41764f
push dword [ebp - 0xc]
push ebx
call fcn.0041322e
push esi
call fcn.00413b7c
add esp, 0xc
xor ebx, ebx
jmp 0x417737
cmp byte [edi + 0x24], 0
je 0x4176be
cmp dword [edi + 0x20], 5
jne 0x4176be
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4176c9
mov ebx, dword [edi + 0x18]
jmp 0x4176cb
xor ebx, ebx
push esi
call fcn.00413b7c
pop ecx
jmp 0x417737
test ecx, ecx
jg 0x4176a0
jl 0x4176de
test eax, eax
jae 0x4176a0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004183a4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4176fe
cmp byte [edi + 0x1c], 0
je 0x4176a0
jmp 0x41772f
push ebx
call fcn.004174cc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4176a0
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 0x417737
cmp byte [edi + 0x1c], 0
je 0x417734
mov ebx, dword [edi + 0x18]
jmp 0x417737
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004183a4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417955
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 + 0x43a9a0]
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 0x417995
cmp byte [ebx], 0xa
jne 0x417995
or byte [edi + eax + 0x28], 4
jmp 0x41799a
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 0x417a99
mov dl, byte [eax]
cmp dl, 0x1a
je 0x417a7c
inc eax
cmp dl, 0xd
je 0x4179c6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4179ec
cmp eax, ecx
jae 0x4179fa
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 0x4179ae
jmp 0x417a99
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 0x417a77
cmp dword [ebp - 0x10], 0
je 0x417a77
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43a9a0]
test byte [eax + edi + 0x28], 0x48
je 0x417a51
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417a3c
mov byte [esi], dl
jmp 0x417a4d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43a9a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417a99
cmp byte [ebp - 1], 0xa
jne 0x417a60
cmp esi, ebx
jne 0x417a60
mov byte [esi], 0xa
jmp 0x417a98
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004183a4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417a99
mov byte [esi], 0xd
jmp 0x417a98
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43a9a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417a96
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417a99
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417aa2
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 + 0x43a9a0]
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 0x417ae8
cmp word [ebx], dx
jne 0x417ae8
or byte [eax + edi + 0x28], 4
jmp 0x417aed
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 0x417c50
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 0x417c30
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x417b2e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417b64
cmp eax, edx
jae 0x417b72
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 0x417b09
jmp 0x417c50
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 0x417c2b
cmp dword [ebp - 0x18], 0
je 0x417c2b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43a9a0]
test byte [eax + edi + 0x28], 0x48
je 0x417c01
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 0x417bc5
mov word [esi], cx
jmp 0x417bfc
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43a9a0]
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 + 0x43a9a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43a9a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x417c50
pop eax
cmp word [ebp - 4], ax
jne 0x417c11
cmp esi, ebx
jne 0x417c11
mov word [esi], ax
jmp 0x417c4d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004183a4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x417c50
push 0xd
pop eax
jmp 0x417c0c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43a9a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x417c4a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x417c50
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 0x418eac
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x439040]
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 0x418ef7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419047
test al, al
jne 0x418ef1
sub edx, 2
cmp edx, edi
jne 0x418ed7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x418f19
lea eax, [edi + 2]
cmp edx, eax
je 0x418f19
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00418df8
add esp, 0x10
jmp 0x419013
push esi
lea ecx, [ebp - 0x255]
call fcn.00419047
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 0x418f5c
push dword [ebp - 0x25c]
jmp 0x418f09
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 0x418f99
cmp word [ebp - 0x226], 0
je 0x418fba
cmp word [ebp - 0x226], ax
jne 0x418f99
cmp word [ebp - 0x224], 0
je 0x418fba
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00418df8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419006
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x418f73
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x418fee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419013
push 0x418c28
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041cf00
add esp, 0x10
jmp 0x418fe3
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.00408588
leave
ret

Function at 0x419974
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x419985
pop esi
ret
push ebx
push edi
push esi
call fcn.0041993d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00413bb6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4199ad
push ebx
push esi
push edi
call fcn.00409d50
add esp, 0xc
push 0
call fcn.00413b7c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x419d7d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004199c2
Function at 0x41f770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f79d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f79d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401431
Capabilities:
Read file on windows
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
mov dword [ebp - 0x28], ecx
call sym.___main
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax], 3
je 0x40145e
call sym._help
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
add eax, 4
mov eax, dword [eax]
sub esp, 8
push 0x403074
push eax
call sym._fopen
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4014a4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
add eax, 4
mov eax, dword [eax]
sub esp, 0xc
push eax
call sym._perror
add esp, 0x10
sub esp, 0xc
push 0
call sym._exit
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
add eax, 8
mov eax, dword [eax]
sub esp, 8
push 0x403076
push eax
call sym._fopen
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40153d
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
add eax, 8
mov eax, dword [eax]
sub esp, 0xc
push eax
call sym._perror
add esp, 0x10
sub esp, 0xc
push 0
call sym._exit
mov dword [ebp - 0xc], 0
jmp 0x401524
mov eax, dword [ebp - 0xc]
mov al, byte [ebp + eax - 0x18]
and eax, 0xff
lea edx, [ebp - 0x21]
sub esp, 8
push eax
push edx
call sym._c2b
add esp, 0x10
sub esp, 8
push dword [ebp - 0x10]
lea eax, [ebp - 0x21]
push eax
call sym._fputs
add esp, 0x10
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jle 0x4014f3
sub esp, 8
push dword [ebp - 0x10]
push 0xa
call sym._fputc
add esp, 0x10
inc dword [ebp - 8]
push dword [ebp - 0x14]
push 1
push 4
lea eax, [ebp - 0x18]
push eax
call sym._fread
add esp, 0x10
cmp eax, 1
je 0x4014ea
cmp dword [ebp - 8], 0x40
jle 0x401575
sub esp, 0xc
push str.Your_program_is_larger_than_64_instructions._Please_shorten_it_a_bit_
call sym._puts
add esp, 0x10
sub esp, 0xc
push 0
call sym._exit
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x401594
push dword [ebp - 0x10]
push 0x21
push 1
push str.00000000000000000000000000000000_n
call sym._fwrite
add esp, 0x10
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x3f
jle 0x40157d
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
add eax, 8
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
add eax, 4
mov eax, dword [eax]
sub esp, 4
push edx
push eax
push str.Converted__s_to__s_n
call sym._printf
add esp, 0x10
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x420162
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x42098c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c5283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.004246e6
pop ecx
push eax
call fcn.00424514
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x455d8f
lea ecx, [ebp - 0x18]
call fcn.00405ab8
mov ecx, edi
call fcn.00409837
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00405a15
push dword [ebp - 0x18]
push 0x491d28
push esi
call fcn.004248e5
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x455daf
lea ecx, [ebp - 0x18]
call fcn.00405904
mov edi, dword [ebp - 8]
push esi
call fcn.00424aaa
pop ecx
cmp ebx, 0xffffffff
je 0x420a2a
push ebx
push esi
call fcn.004246e6
pop ecx
push eax
call fcn.00424514
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x420a12
push esi
mov ecx, edi
call fcn.00468758
push eax
push 1
call fcn.00468715
push eax
call fcn.00424863
add esp, 0x10
mov edi, eax
jmp 0x420a05
mov ecx, edi
call fcn.00409837
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4209fa

Function at 0x433cbc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dword [eax], eax
add byte [eax - 0x6b75b], al
inc dword [eax]
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
Function at 0x43518d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec dword [ebx - 0xe]
inc esp
inc eax
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00432fc1
bound ecx, qword cs:[ecx + 0x49]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x4351ae
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4351ae
call fcn.00432fc1
cmp al, 0x8e
call 0x249ddd05
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00432fc1
mov dh, 0xf7
mov dh, 2
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
Function at 0x40d3d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418418]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408a8b
mov dword [ebp - 0x14], eax
cmp dword [0x4536a4], esi
jne 0x40d4cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d458
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4536a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4536a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4536ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4536b4], eax
test eax, eax
je 0x40d4c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4536b0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d505
push 4
pop eax
jmp 0x40d5ad
cmp dword [ebp - 0x14], esi
je 0x40d505
push dword [0x4536a4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4ea
mov eax, dword [0x4536b0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d563
cmp dword [0x4536b4], edi
je 0x40d563
push eax
call ebx
push dword [0x4536b4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d563
test eax, eax
je 0x40d563
call ecx
test eax, eax
je 0x40d558
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 0x40d558
test byte [ebp - 8], 1
jne 0x40d563
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d593
mov eax, dword [0x4536a8]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
call eax
mov esi, eax
test esi, esi
je 0x40d590
mov eax, dword [0x4536ac]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4536a4]
call ebx
test eax, eax
je 0x40d5ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f8b
mov esp, ebp
pop ebp
ret