joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d1a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41d1d0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41d2a0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x41d2d0
cmp eax, 3
jne 0x41d1bb
mov eax, dword [0x4e2098]
cmp eax, 0xffffffff
je 0x41d1bb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41d1bb
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x41d300
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41d219
call fcn.0041cee0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41d24b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41d23d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.0041c360
mov dword [esp], edi
call fcn.0041c520
cmp eax, 1
je 0x41d3c6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41d3ba
mov eax, dword [0x4e2098]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41d1bb
mov eax, dword [0x540bb0]
test eax, eax
je 0x41d1bb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x540bb0], 0
sub esp, 4
jmp 0x41d1bb
mov dword [esp + 4], 0x41c590
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x540bb0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41d370
test eax, eax
je 0x41d31a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x41d337
call fcn.0041cee0
test byte [ebx + 0x24], 4
je 0x41d3b0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41d24b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041c360
jmp 0x41d253
test eax, eax
je 0x41d3b0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041c360
mov dword [esp], edi
call fcn.0041c520
cmp eax, 1
je 0x41d3c6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41d1bb
mov dword [esp], esi
call fcn.0041c360
jmp 0x41d38f
mov eax, ebx
call fcn.0041cae0
jmp 0x41d279
call fcn.0041c840
lea esi, [esi]
nop
Function at 0x41d660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x41d780
cmp eax, 1
je 0x41d6b4
mov eax, ebx
call fcn.0041c620
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.0041bea0
mov ebp, dword [ebx]
test ebp, ebp
je 0x41d6c0
cmp ebp, 1
jne 0x41d750
mov dword [esp], edi
call fcn.0041c1e0
test esi, esi
je 0x41d6b4
mov eax, esi
call fcn.0041c930
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x41c9f0
mov dword [esp + 0x18], esi
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41d7b8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41d7a0
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41d790
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x41d6a1
mov dword [esp], 2
call dword [0x4e2084]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41d6a1
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041cd60
test eax, eax
jne 0x41d738
jmp 0x4db0e9
call fcn.0041cd60
test eax, eax
jne 0x41d712
jmp 0x4db0fb
call fcn.0041cd60
test eax, eax
jne 0x41d6ec
jmp 0x4db0f4
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x41da10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41da88
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0041c530
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x41da64
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x41da64
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0041c580
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041cd60
mov ebx, eax
jmp 0x41da3b
Function at 0x41daa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41dbc0
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0041c530
cmp esi, dword [ebx + 0x28]
jae 0x41db20
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0041c580
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x41dbcc
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x41dbcc
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x41dae8
call fcn.0041cd60
mov ebx, eax
jmp 0x41dad5
mov dword [esp], edi
call fcn.0041c580
mov eax, 0xc
jmp 0x41db10

Function at 0x41dc50
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41dc78
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.0041cd60
test eax, eax
jne 0x41dc6d
add esp, 0x1c
ret

Function at 0x41dce0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41dd08
add eax, 0xc
add esp, 0x1c
ret
call fcn.0041cd60
test eax, eax
jne 0x41dcfd
jmp 0x41dd00
Function at 0x41dd40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0041ceb0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41dd62
call fcn.0041cee0
test byte [ebx + 0x20], 0x30
jne 0x41dd7c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x41ddbd
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41ddfd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41ddb2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x41ddc6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0041cc80
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41ddbd
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41de11
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x41ddde

Function at 0x41de20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x540bdc]
test eax, eax
jne 0x41de30
xor eax, eax
ret
sub esp, 0x1c
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41de70
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x41de60
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x41de54
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x41de56
call fcn.0041cd60
test eax, eax
jne 0x41de4d
jmp 0x41de54

Function at 0x41de80
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41dec0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x41deb0
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.0041cd60
test eax, eax
jne 0x41de9d
add esp, 0x1c
ret
Function at 0x41dfc0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41e030
test byte [ebx + 0x20], 0xc
jne 0x41dff0
mov eax, dword [0x540bdc]
test eax, eax
jne 0x41e000
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0041bea0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x41e022
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x41e022
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x41e041
mov dword [esp], esi
call fcn.0041c1e0
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0041cd60
mov ebx, eax
test eax, eax
jne 0x41dfe1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41e061
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0041c1e0
call fcn.0041ded0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41e0f0
mov dword [esp], eax
call fcn.0041bbe0
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x41e130
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41e190
test edi, edi
je 0x41e10a
call fcn.0041dfc0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41e168
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041bcf0
call fcn.0041dfc0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41e180
call fcn.0041dfc0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.0041dfc0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x41e0c2
call fcn.0041cd60
mov ebx, eax
jmp 0x41e0c2
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x41e0de
call fcn.0041cd60
jmp 0x41e10a
call fcn.0041cd60
mov ebx, eax
jmp 0x41e0be
Function at 0x4210ec
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004214bc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jne 0x421141
mov eax, dword [ebp - 0xc]
jmp 0x421311
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
lea eax, [ebp - 0x11c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x421197
mov eax, 5
jmp 0x421311
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4211f2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 6
jmp 0x421311
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xb7
sete al
test al, al
je 0x42121f
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 7
jmp 0x421311
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x421282
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 8
jmp 0x421311
call fcn.00421558
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00422210
mov dword [ebp - 0xc], eax
call fcn.00421390
cmp dword [ebp - 0xc], 0
je 0x4212dc
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x421311
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
leave
ret
Function at 0x421314
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 5
call sub.ntdll.dll_NtQuerySystemInformation
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, 0
leave
ret 8

Function at 0x422210
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov word [ebp - 0xa], 0
jmp 0x42233d
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0x14]
lea ecx, [edx + eax]
movzx edx, word [ebp - 0xa]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
add eax, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22]
mov dword [esp], eax
call fcn.004d5104
lea eax, [ebp - 0x22]
mov ecx, eax
call fcn.00430f60
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
test al, al
je 0x422332
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
add edx, ecx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00421354
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4222c7
mov eax, 9
jmp 0x422353
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp + 0xc]
add edx, ecx
mov ebx, edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
add edx, ecx
mov ecx, edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00421354
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42232b
mov eax, 0xa
jmp 0x422353
mov eax, 0
jmp 0x422353
movzx eax, word [ebp - 0xa]
add eax, 1
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
cmp word [ebp - 0xa], ax
jb 0x422238
mov eax, 0xb
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x425948
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
jmp 0x425a5e
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4d]
mov dword [ebp - 0x2c], eax
nop
nop
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x4d]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [esp], edx
mov ecx, eax
call fcn.004bfe60
sub esp, 8
lea eax, [ebp - 0x31]
mov dword [ebp - 0x30], eax
nop
nop
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x31]
mov dword [esp + 4], edx
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
mov ecx, eax
call fcn.004bfe60
sub esp, 8
lea eax, [ebp - 0x68]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00426604
mov ebx, eax
lea eax, [ebp - 0x4c]
mov ecx, eax
call fcn.004c06c0
nop
lea eax, [ebp - 0x68]
mov ecx, eax
call fcn.004c06c0
nop
test bl, bl
je 0x425a5a
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x24]
add eax, ecx
movzx eax, word [eax]
movzx eax, ax
lea ecx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov eax, dword [eax]
add eax, edx
jmp 0x425a8d
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 0xc], eax
jb 0x4259a9
mov eax, 0
jmp 0x425a8d
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x426790
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x4267c8
call fcn.004b66a0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
cmp edi, 0x11
je 0x4267f0
call fcn.004b66b0
mov dword [ebx], edi
mov dword [ebx + 4], eax
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0048b720
cmp al, 2
jne 0x4267d5
xor eax, eax
jmp 0x4267e1
Function at 0x427ee4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x427ef7
mov eax, 0
jmp 0x427f51
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x427f10
mov eax, 0
jmp 0x427f51
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x400
jle 0x427f30
mov eax, 0
jmp 0x427f51
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x427f4e
mov eax, 0
jmp 0x427f51
mov eax, dword [ebp - 0x10]
leave
ret