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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x10004839
xor eax, esi
pop esi
pop ebp
ret 4

Function at 0x10004850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x10004859
xor eax, esi
pop esi
pop ebp
ret 4

Function at 0x100055a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055a9
pop esi
pop ebp
ret 8

Function at 0x100055c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055c9
pop esi
pop ebp
ret 4

Function at 0x100055e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055e9
pop esi
pop ebp
ret 8

Function at 0x100186b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1018092c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101837c8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x60], ebx
test eax, eax
jne 0x10018788
push esi
push 0x55
pop esi
push esi
push 0x101837d0
push 0x5c
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x10018772
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.100a9420
add esp, 0xc
mov eax, ebx
cmp word [eax*2 + 0x101837d0], 0x5f
mov cl, 0x2d
je 0x10018712
mov cl, byte [eax*2 + 0x101837d0]
mov byte [ebp + eax - 0x5c], cl
test cl, cl
je 0x1001871f
inc eax
cmp eax, esi
jl 0x100186fe
cmp eax, esi
push 0x41
sbb al, al
and byte [ebp - 8], al
call fcn.1008a833
mov esi, eax
pop ecx
test esi, esi
je 0x10018772
lea eax, [ebp - 0x60]
push eax
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.1008a833
add esp, 0x10
cmp dword [ebp - 0x60], ebx
jg 0x1001876b
push 0x10017f70
push 0x17
mov byte [eax + esi], bl
mov dword [0x101837c8], esi
mov byte [0x101837cc], 1
call fcn.1008a833
pop ecx
jmp 0x10018771
push esi
call fcn.1008a833
pop ecx
mov ecx, dword [0x101837c8]
mov eax, 0x100fef10
test ecx, ecx
pop esi
cmovne eax, ecx
mov dword [0x101837c8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10084499
leave
ret
Function at 0x1008a833
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1008a842
pop dword [ebp - 0x10]
mov eax, 0x1d558433
add eax, 0xf2b3240f
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x71924
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x6f9e08e
add ecx, 0xf9066675
xor ebx, ebx
add ebx, eax
mov edx, 0x10191000
add edx, dword [ebp - 0x10]
mov edi, 0xe527bdee
add dword [ebp - 0xc], ecx
mov esi, dword [edx]
sub dword [ebp - 0xc], 0xc8d4c34b
xor esi, edi
add dword [ebp - 0xc], esi
mov dword [ebx], esi
mov dword [ebp - 8], 0xcc054a30
add ebx, 4
add edx, 0xaed4c6f3
add edx, 0x512b3911
loop 0x1008a892
add eax, 0x9c68b8c5
add eax, 0x6398561a
mov ebx, eax
add eax, 0x63f5cc4b
add eax, 0x9c0a33ba
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x1003255d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1003256c
pop dword [ebp - 0x34]
mov eax, 0xcaa891c9
sub eax, 0xbaa56c5d
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xca31135c
add dword [ebp - 0x44], 0x842131ef
mov dword [ebp - 0x40], 0xddbfc114
add dword [ebp - 0x40], 0x54738b31
mov dword [ebp - 0x3c], 0x25e1b672
sub dword [ebp - 0x3c], 0xd9957244
mov dword [ebp - 0x38], 0xb9c2bdf0
add dword [ebp - 0x38], 0x463d4210
lea eax, [ebp - 0x44]
push eax
mov eax, 0xd3a96307
sub eax, 0xc3a3d1fb
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x5707bfab
sub dword [ebp - 0x44], 0xe2955655
mov dword [ebp - 0x40], 0x5e31bb37
sub dword [ebp - 0x40], 0x1cc559c2
mov dword [ebp - 0x3c], 0xb9c1678
add dword [ebp - 0x3c], 0x57d355f4
mov dword [ebp - 0x38], 0x64256725
sub dword [ebp - 0x38], 0x64256725
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x8ae0b534
add eax, 0x8524db0c
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x5f3ac
push 0
call eax
mov ecx, 0x4eb0
xor ebx, ebx
add ebx, eax
mov edx, 0x10069400
add edx, dword [ebp - 0x34]
mov edi, 0xd4b97de5
sub edi, 0xb5ec02f
add dword [ebp - 0xc], 0x3ac64a23
mov esi, dword [edx]
sub dword [ebp - 0x18], ebx
add esi, edi
sub dword [ebp - 0x1c], edi
mov dword [ebx], esi
xor dword [ebp - 0x30], 0x7a767ad5
add ebx, 0x77123ba7
sub ebx, 0x77123ba3
add edx, 4
loop 0x10032684
add eax, 0xd9a100ad
sub eax, 0xd99fd31a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6a748ce1
add ecx, 0xa58b731f
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x42fb71
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43757a
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c770
mov dword [esi + 4], 0x43c758
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c73c
mov dword [esi + 4], 0x43c724
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x430a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x430a1f
pop dword [ebp - 0x1c]
mov eax, 0xf66d3a1d
add eax, 0x9d5d002
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3adcb
push 0
mov eax, 0xd03ffa7e
add eax, 0x300385b2
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xb3520722
sub ecx, 0xb351be79
xor edx, edx
add edx, eax
mov ebx, 0xb405196f
sub ebx, 0xb3c0536f
add ebx, dword [ebp - 0x1c]
mov edi, 0x43b5d345
sub edi, 0x179fd924
mov dword [ebp - 0xc], 0x916d91e7
mov esi, dword [ebx]
xor dword [ebp - 4], 0x93fb8b7e
xor esi, edi
mov dword [edx], esi
mov dword [ebp - 0x18], 0x2d6e5a60
add edx, 4
add ebx, 0x9aa90b37
add ebx, 0x6556f4cd
loop 0x430a80
add eax, 0x11577
xor ebx, ebx
add ebx, eax
add eax, 0xef9f95b0
sub eax, 0xef9f95ab
mov ecx, 0x884e48f7
sub ecx, 0x880e48f7
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4
Function at 0x403247
Capabilities:
Terminate process

Disassembly:
jmp 0x4ad71b
push 0x17
call dword [sym.imp.kernel32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4ad72c
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004051f0
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 0x403341
Capabilities:
Query environment variable

Disassembly:
jmp 0x4c44f6
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c4507
pop esi
ret
push ebx
push edi
push esi
call fcn.004c43dd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403aee
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c452f
push ebx
push esi
push edi
call fcn.0040501a
add esp, 0xc
push 0
call fcn.00405a38
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403643
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
jmp 0x430a40
push 1
push 0x1a
push 0x504d98
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jns 0x430a6e
mov eax, dword [0x5049b4]
push str.Could_not_get_Application_Data.
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 8
mov eax, 0x4e6538
ret
push str.Oleg_Sereda
push 0x504d98
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathAppendA]
push 0x504d98
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathFileExistsA]
test eax, eax
jne 0x430abb
push eax
push 0x504d98
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x430abb
push str.Oleg_Sereda
mov eax, dword [0x5049b4]
push str.Could_not_create_directory__s.
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
mov eax, 0x4e6538
ret
push edi
push str.Nonograms_PC
push 0x504d98
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathAppendA]
mov edi, 0x504d98
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x430ad2
mov ax, word [0x4e814c]
push 0x504d98
mov word [edi], ax
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathFileExistsA]
pop edi
test eax, eax
jne 0x430b0c
push eax
push 0x504d98
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x430b0c
push str.Nonograms_PC
jmp 0x430aa2
mov eax, 0x504d98
ret
Function at 0x403a26
Capabilities:
Parse credit card information

Disassembly:
jmp 0x41ef80
mov edx, dword [ecx + 0x7104]
push esi
push edi
lea esi, [ecx + 0x7178]
lea edi, [ecx + 0x717c]
add ecx, 0x713c
lea eax, [edx - 1]
cmp eax, 2
ja 0x41efb4
mov dword [esi], 0xa
mov dword [edi], 0xa
mov dword [ecx], 1
lea eax, [edx - 4]
cmp eax, 2
ja 0x41efce
mov dword [esi], 0xf
mov dword [edi], 0xf
mov dword [ecx], 2
lea eax, [edx - 7]
cmp eax, 5
ja 0x41efe8
mov dword [esi], 0x14
mov dword [edi], 0x14
mov dword [ecx], 3
lea eax, [edx - 0xd]
cmp eax, 2
ja 0x41f002
mov dword [esi], 0x19
mov dword [edi], 0x19
mov dword [ecx], 4
lea eax, [edx - 0x10]
cmp eax, 2
ja 0x41f01c
mov dword [esi], 0x1e
mov dword [edi], 0x1e
mov dword [ecx], 5
lea eax, [edx - 0x13]
cmp eax, 1
ja 0x41f036
mov dword [esi], 0x23
mov dword [edi], 0x23
mov dword [ecx], 6
cmp edx, 0x15
jl 0x41f040
cmp edx, 0x1a
jle 0x41f066
cmp edx, 0x29
jl 0x41f04a
cmp edx, 0x2e
jle 0x41f066
cmp edx, 0x3d
jl 0x41f054
cmp edx, 0x42
jle 0x41f066
cmp edx, 0x51
jl 0x41f05e
cmp edx, 0x56
jle 0x41f066
lea eax, [edx - 0x65]
cmp eax, 5
ja 0x41f078
mov dword [esi], 0x14
mov dword [edi], 0x14
mov dword [ecx], 3
cmp edx, 0x1b
jl 0x41f082
cmp edx, 0x20
jle 0x41f0a8
cmp edx, 0x2f
jl 0x41f08c
cmp edx, 0x34
jle 0x41f0a8
cmp edx, 0x43
jl 0x41f096
cmp edx, 0x48
jle 0x41f0a8
cmp edx, 0x57
jl 0x41f0a0
cmp edx, 0x5c
jle 0x41f0a8
lea eax, [edx - 0x6b]
cmp eax, 5
ja 0x41f0ba
mov dword [esi], 0x19
mov dword [edi], 0x19
mov dword [ecx], 4
cmp edx, 0x21
jl 0x41f0c4
cmp edx, 0x26
jle 0x41f0ea
cmp edx, 0x35
jl 0x41f0ce
cmp edx, 0x3a
jle 0x41f0ea
cmp edx, 0x49
jl 0x41f0d8
cmp edx, 0x4e
jle 0x41f0ea
cmp edx, 0x5d
jl 0x41f0e2
cmp edx, 0x62
jle 0x41f0ea
lea eax, [edx - 0x71]
cmp eax, 5
ja 0x41f0fc
mov dword [esi], 0x1e
mov dword [edi], 0x1e
mov dword [ecx], 5
cmp edx, 0x27
jl 0x41f106
cmp edx, 0x28
jle 0x41f12c
cmp edx, 0x3b
jl 0x41f110
cmp edx, 0x3c
jle 0x41f12c
cmp edx, 0x4f
jl 0x41f11a
cmp edx, 0x50
jle 0x41f12c
cmp edx, 0x63
jl 0x41f124
cmp edx, 0x64
jle 0x41f12c
lea eax, [edx - 0x77]
cmp eax, 1
ja 0x41f13e
mov dword [esi], 0x23
mov dword [edi], 0x23
mov dword [ecx], 6
pop edi
pop esi
ret

Function at 0x4050bf
Capabilities:
Parse pe header

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

Function at 0x4050d3
Capabilities:
Print debug messages

Disassembly:
jmp 0x467c6f
push esi
mov esi, ecx
call fcn.004054f7
mov eax, 0x400000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x4ed548
call fcn.00402bc6
test eax, eax
jns 0x467cbe
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
je 0x467cb7
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov byte [0x5051d4], 1
mov eax, esi
pop esi
ret
Function at 0x4bb45b
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 + 0x506350]
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 0x4bb49b
cmp byte [ebx], 0xa
jne 0x4bb49b
or byte [eax + edi + 0x28], 4
jmp 0x4bb4a0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4bb59e
mov al, byte [edx]
cmp al, 0x1a
je 0x4bb580
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4bb4cf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4bb4f4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4bb4fe
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 0x4bb4b1
jmp 0x4bb59e
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 0x4bb57b
cmp dword [ebp - 0xc], 0
je 0x4bb57b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x506350]
test byte [eax + edi + 0x28], 0x48
je 0x4bb555
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bb540
mov byte [esi], dl
jmp 0x4bb551
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x506350]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bb59e
cmp byte [ebp - 1], 0xa
jne 0x4bb564
cmp esi, ebx
jne 0x4bb564
mov byte [esi], 0xa
jmp 0x4bb59d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401834
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bb59e
mov byte [esi], 0xd
jmp 0x4bb59d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x506350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bb59a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bb59e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bb5fa
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 + 0x506350]
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 0x4bb63d
cmp word [esi], dx
jne 0x4bb63d
or byte [edi + eax + 0x28], 4
jmp 0x4bb642
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 0x4bb795
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 0x4bb775
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4bb684
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bb6ba
cmp eax, edx
jae 0x4bb6c6
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 0x4bb65c
jmp 0x4bb795
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 0x4bb771
cmp dword [ebp - 0x14], 0
je 0x4bb771
mov eax, dword [ebx*4 + 0x506350]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4bb749
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4bb712
mov word [esi], cx
jmp 0x4bb745
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x506350]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x506350]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x506350]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4bb795
pop ebx
cmp word [ebp - 4], bx
jne 0x4bb75a
cmp esi, dword [ebp + 0xc]
jne 0x4bb75a
mov word [esi], bx
jmp 0x4bb792
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401834
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4bb795
push 0xd
jmp 0x4bb78e
mov ecx, dword [ebx*4 + 0x506350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bb78c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bb795
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 0x4c256c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x503070]
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 0x4c25b7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004c2a2e
test al, al
jne 0x4c25b1
sub edx, 2
cmp edx, edi
jne 0x4c2597
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4c25d9
lea eax, [edi + 2]
cmp edx, eax
je 0x4c25d9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004c2165
add esp, 0x10
jmp 0x4c26d3
push esi
lea ecx, [ebp - 0x255]
call fcn.004c2a2e
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 0x4c261c
push dword [ebp - 0x25c]
jmp 0x4c25c9
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 0x4c2659
cmp word [ebp - 0x226], 0
je 0x4c267a
cmp word [ebp - 0x226], ax
jne 0x4c2659
cmp word [ebp - 0x224], 0
je 0x4c267a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004c2165
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4c26c6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4c2633
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4c26ae
push esi
call dword [sym.imp.kernel32.dll_FindClose]
xor eax, eax
jmp 0x4c26d3
push 0x4c1b4d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00404e9e
add esp, 0x10
jmp 0x4c26a3
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.00402d1a
leave
ret
Function at 0x541900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x54196c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x5419b3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00596b28
add esp, 8
test eax, eax
jne 0x5419b1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x5419b5
jmp 0x541963
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x571870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8147
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5f5f3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00570760
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00570760
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00570760
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00571170
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00571170
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00571170
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4