joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402800
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
mov esi, 0x104
push ebx
sub esp, 0x26c
mov ebx, 0x104
mov dword [ebp - 0x244], ebx
mov ecx, dword [ebp + 8]
lea ebx, [ebp - 0x128]
mov dword [esp + 8], esi
mov edi, dword [ebp + 0x10]
lea esi, [ebp - 0x238]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x24c], edi
xor edi, edi
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [esp], esi
xor ecx, ecx
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memset
jmp 0x402898
mov dword [esp], esi
mov eax, 0x410760
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402943
mov eax, dword [0x410e60]
test eax, eax
jne 0x4029f0
mov eax, 0x104
mov dword [ebp - 0x244], eax
mov dword [esp + 4], edi
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x240]
mov dword [esp + 0x1c], eax
xor eax, eax
inc edi
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0x244]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
test eax, eax
jne 0x4029ff
mov dword [esp], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp byte [eax + ebx - 1], 0x5c
je 0x402904
mov word [eax + ebx], 0x5c
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov eax, dword [0x410e60]
test eax, eax
jne 0x4029d0
mov dword [esp], esi
mov ecx, 0x4107e0
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x402880
cmp byte [0x410760], 0
jne 0x402867
mov dword [esp], esi
mov edx, 0x4106e0
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402880
mov dword [esp], ebx
mov ecx, dword [ebp - 0x24c]
mov dword [esp + 4], ecx
call fcn.00402680
test eax, eax
je 0x402880
mov dword [esp + 4], esi
mov dword [esp], 0x4106e0
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], ebx
mov dword [esp], 0x4105c0
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x24c]
mov dword [0x410de0], eax
mov eax, dword [0x410e60]
test eax, eax
je 0x40288d
mov dword [esp + 8], esi
mov edx, str.Match:_t_t_s_n
mov dword [esp + 4], edx
nop
lea esi, [esi]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x40288d
mov dword [esp + 8], ebx
mov edx, str.Check:_t_t_s_n
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x40291d
mov dword [esp + 8], esi
mov ecx, str.Ignore:_t_t_s_n
mov dword [esp + 4], ecx
jmp 0x4029c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00405380
call fcn.00405310
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x405158
jmp 0x4051f6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x405157
cmp cl, 0x22
je 0x4051b0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x4051d0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4051d0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x405190
jmp 0x4051d0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x4051b0
cmp cl, 0x22
je 0x405232
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4051f0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x4051e0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x405214
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4051d0
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3b282827
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2e633fd8
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40b7c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412d78
cmp edx, dword [eax]
je 0x40b7e3
add eax, 8
inc ecx
cmp eax, 0x412e08
jl 0x40b7d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412d78]
jne 0x40b911
mov eax, dword [0x4133c0]
cmp eax, 1
je 0x40b8eb
test eax, eax
jne 0x40b814
cmp dword [0x412918], 1
je 0x40b8eb
cmp edx, 0xfc
je 0x40b911
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40b84b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004068b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b88e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004068b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4105e8
push edi
call section..text
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a4a0
lea eax, [ebp - 0xa0]
push 0x4105c8
push eax
call fcn.0040a4a0
push dword [esi + 0x412d7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a4a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d294
add esp, 0x2c
pop edi
jmp 0x40b911
lea eax, [ebp + 8]
lea esi, [esi + 0x412d7c]
push 0
push eax
push dword [esi]
call fcn.004068b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

Function at 0x401a80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4047f4], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047f8], 0x30
mov dword [0x4047fc], 2
mov dword [0x404804], 0
mov dword [0x404808], 0
mov dword [0x404800], 0x401fb0
mov eax, 0xffff0000
mov ebx, section..text
and ebx, eax
mov dword [0x404104], ebx
mov dword [0x40480c], ebx
jmp 0x401ae8
mov dword [0x404818], 0xf
mov dword [0x404820], 0x404769
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404810], eax
mov dword [0x404824], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404814], eax
push 0x4047f8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.fomy
push str.windcl
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4047ec], eax
xor eax, eax
jmp 0x401b76
push eax
push dword [0x4047ec]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4047ec]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x404828
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x401bbc
push 0x404828
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x404828
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x401b8f
mov eax, dword [0x404830]
jmp 0x401bc7
call 0x401358
ret
Function at 0x401311
Capabilities:
Encode data using xor

Disassembly:
jmp 0x417620
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x41776d
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
nop dword [eax]
call esi
add byte [edi + ebp], 0x26
call esi
add byte [edi + ebp], 0x28
call esi
xor byte [edi + ebp], 0x80
call esi
add byte [edi + ebp], 0xae
call esi
add byte [edi + ebp], 0xe0
call esi
add byte [edi + ebp], 0x75
call esi
add byte [edi + ebp], 0xaf
call esi
xor byte [edi + ebp], 0xb2
call esi
add byte [edi + ebp], 0xa6
call esi
add byte [edi + ebp], 2
call esi
xor byte [edi + ebp], 0xf4
call esi
add byte [edi + ebp], 0x6d
call esi
add byte [edi + ebp], 0x5e
call esi
add byte [edi + ebp], 0xf
call esi
add byte [edi + ebp], 0x26
call esi
add byte [edi + ebp], 0x82
call esi
xor byte [edi + ebp], 0xa3
call esi
add byte [edi + ebp], 0x4e
call esi
add byte [edi + ebp], 0xcc
call esi
add byte [edi + ebp], 0x38
call esi
add byte [edi + ebp], 0x17
call esi
add byte [edi + ebp], 0x4a
call esi
add byte [edi + ebp], 0x4f
call esi
add byte [edi + ebp], 0xcd
call esi
add byte [edi + ebp], 0x33
call esi
xor byte [edi + ebp], 0xda
call esi
add byte [edi + ebp], 0xa2
call esi
add byte [edi + ebp], 0x5d
call esi
add byte [edi + ebp], 0xd2
call esi
add byte [edi + ebp], 0x11
call esi
add byte [edi + ebp], 0xbe
call esi
xor byte [edi + ebp], 0x73
call esi
xor byte [edi + ebp], 0xa2
call esi
xor byte [edi + ebp], 0x77
call esi
add byte [edi + ebp], 0x4c
call esi
add byte [edi + ebp], 0x77
call esi
xor byte [edi + ebp], 0xf6
call esi
add byte [edi + ebp], 0xc6
call esi
add byte [edi + ebp], 0x76
call esi
xor byte [edi + ebp], 0xe2
call esi
add byte [edi + ebp], 0x65
call esi
xor byte [edi + ebp], 0xc4
call esi
add byte [edi + ebp], 0x26
call esi
xor byte [edi + ebp], 0x52
call esi
add byte [edi + ebp], 9
call esi
call esi
add byte [edi + ebp], 0x35
call esi
add byte [edi + ebp], 0x6f
call esi
add byte [edi + ebp], 5
inc edi
cmp edi, ebx
jb 0x417640
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x402e0a
Capabilities:
Terminate process

Disassembly:
jmp 0x42b239
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x42b24a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00404a11
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402f09
Capabilities:
Query environment variable

Disassembly:
jmp 0x45d7b9
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45d7ca
pop esi
ret
push ebx
push edi
push esi
call fcn.0045d6a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403666
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45d7f2
push ebx
push esi
push edi
call fcn.0040487c
add esp, 0xc
push 0
call fcn.0040514b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x404903
Capabilities:
Parse pe header

Disassembly:
jmp 0x41d921
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d960
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d960
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d960
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d960
cmp dword [ecx + 0x74], 0xe
jbe 0x41d960
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40542a
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x417a90
sub esp, 0x30
mov eax, dword [0x567238]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x417c6a
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417b01
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.004046c9
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00401e6f
add esp, 0xc
xor edx, edx
test edi, edi
je 0x417b71
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x417b50
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x417b9b
sub eax, 1
je 0x417b91
sub eax, 1
jne 0x417ba9
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x48]
je 0x417c19
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x417c08
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417bfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417c83
push ecx
push edx
call fcn.004017fd
mov eax, dword [esp + 0x18]
add esp, 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x417ae0
jmp 0x417c6a
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x417c6a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417c60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417c83
push ecx
push edx
call fcn.004017fd
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004029cd
add esp, 0x30
ret
call fcn.00403c6a
int3
Function at 0x45b5a6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x567238]
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 0x45b5f1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045bb67
test al, al
jne 0x45b5eb
sub edx, 2
cmp edx, edi
jne 0x45b5d1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45b613
lea eax, [edi + 2]
cmp edx, eax
je 0x45b613
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045b19f
add esp, 0x10
jmp 0x45b70d
push esi
lea ecx, [ebp - 0x255]
call fcn.0045bb67
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 0x45b656
push dword [ebp - 0x25c]
jmp 0x45b603
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 0x45b693
cmp word [ebp - 0x226], 0
je 0x45b6b4
cmp word [ebp - 0x226], ax
jne 0x45b693
cmp word [ebp - 0x224], 0
je 0x45b6b4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045b19f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45b700
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45b66d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45b6e8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45b70d
push 0x45aa85
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040473c
add esp, 0x10
jmp 0x45b6dd
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.004029cd
leave
ret
Function at 0x46d73b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x56b1d0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46d77b
cmp byte [ebx], 0xa
jne 0x46d77b
or byte [eax + edi + 0x28], 4
jmp 0x46d780
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46d87e
mov al, byte [edx]
cmp al, 0x1a
je 0x46d860
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46d7af
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46d7d4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46d7de
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46d791
jmp 0x46d87e
push 0
lea eax, [ebp - 0xc]
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 0x46d85b
cmp dword [ebp - 0xc], 0
je 0x46d85b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x56b1d0]
test byte [eax + edi + 0x28], 0x48
je 0x46d835
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46d820
mov byte [esi], dl
jmp 0x46d831
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x56b1d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46d87e
cmp byte [ebp - 1], 0xa
jne 0x46d844
cmp esi, ebx
jne 0x46d844
mov byte [esi], 0xa
jmp 0x46d87d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040175d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46d87e
mov byte [esi], 0xd
jmp 0x46d87d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x56b1d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46d87a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46d87e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d8da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x56b1d0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46d91d
cmp word [esi], dx
jne 0x46d91d
or byte [edi + eax + 0x28], 4
jmp 0x46d922
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46da75
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46da55
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46d964
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46d99a
cmp eax, edx
jae 0x46d9a6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46d93c
jmp 0x46da75
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46da51
cmp dword [ebp - 0x14], 0
je 0x46da51
mov eax, dword [ebx*4 + 0x56b1d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46da29
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46d9f2
mov word [esi], cx
jmp 0x46da25
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x56b1d0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x56b1d0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x56b1d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46da75
pop ebx
cmp word [ebp - 4], bx
jne 0x46da3a
cmp esi, dword [ebp + 0xc]
jne 0x46da3a
mov word [esi], bx
jmp 0x46da72
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040175d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46da75
push 0xd
jmp 0x46da6e
mov ecx, dword [ebx*4 + 0x56b1d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46da6c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46da75
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040c272
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040c272
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040c272
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040c272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040c272
mov dword [0x41203c], eax
call fcn.0040c272
test eax, eax
jge 0x402550
push 8
call fcn.0040c272
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040c272
pop ecx
push 1
call fcn.0040c272
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040c272
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040c272
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040c272
jmp 0x402495

Function at 0x40c272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40c281
pop dword [ebp - 0x14]
mov eax, 0xb24fe60a
sub eax, 0xb20f2389
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x385f6
push 0
mov eax, 0x3c906806
sub eax, 0x3c4f872e
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x488c2646
sub ecx, 0x488be2f9
xor edx, edx
add edx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x14]
mov esi, 0x8f75ab34
add esi, 0x61b7404f
xor dword [ebp - 4], ebx
mov ebx, dword [edi]
mov dword [ebp - 4], 0x44026ec5
add ebx, esi
sub dword [ebp - 8], 0x8e96444
mov dword [edx], ebx
add edx, 0x1440dd1a
add edx, 0xebbf22ea
add edi, 4
loop 0x40c2dc
add eax, 0xd5a711ca
add eax, 0x2a59ee3d
mov ebx, eax
add eax, 0xaf8f0504
add eax, 0x5070fb01
mov ecx, 0xdf863bf0
sub ecx, 0xdf463bf0
add ecx, dword [ebp - 0x14]
call ebx
leave
ret