joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b760
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40b78c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x423420]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x40b7c7
push 2
push ebp
push ecx
call fcn.0040b9f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b929
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40b871
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40b822
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40b80f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40b7f2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b91a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40b86d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40b7ee
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b909
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b8c5
cmp eax, 5
jne 0x40b8ae
call fcn.00403050
mov dword [eax], 9
call fcn.00403060
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00402fd0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40b8e5
cmp byte [ebp], 0x1a
jne 0x40b8e5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00403050
mov dword [eax], 0x1c
call fcn.00403060
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40b86d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b95a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40b871
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40b871
Function at 0x40dc60
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x423410]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x40dca8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40dc8c
mov eax, 1
jmp 0x40dca3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x40dd88
mov eax, 2
mov dword [0x423410], eax
cmp eax, 2
jne 0x40dcc8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x40dd9a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40dce3
mov ecx, dword [0x423298]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40dd02
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402580
mov esi, eax
add esp, 4
test esi, esi
jne 0x40dd19
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40dd7f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40dd60
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40dd7f
push esi
call fcn.00402650
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40dd8f
push esi
call fcn.00402650
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402650
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4125f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x412610
cmp dword [0x422df4], edi
jne 0x412762
cmp word [0x422e00], di
mov dword [0x422df4], 1
jne 0x412642
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x422dfc], eax
mov word [0x422e00], cx
cmp word [0x422e00], 2
jne 0x41267e
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x41267e
mov ecx, dword [0x422dfc]
cmp ecx, edi
je 0x41267e
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x422df8], eax
jmp 0x412767
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00402850
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x422df8], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x412762
cmp dword [ebp - 0x8c], 1
je 0x4126d2
cmp dword [ebp - 0x8c], 2
jne 0x412762
cmp dword [ebp - 0x98], 4
jae 0x412741
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412762
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412736
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00402fb0
add esp, 0xc
mov dword [0x422df8], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412762
cmp dword [ebp - 0x8c], 2
jne 0x412762
cmp dword [ebp - 0x98], 4
jb 0x412762
push edi
push 0x422df8
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x422df8]
pop edi
leave
ret

Function at 0x415598
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41632a
call fcn.00402488
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0040dfce
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040dfce
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0040de4b
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x40e4e4
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x415a65
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x415a93
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jl 0x415b35
cmp dword [esp + 0x10], 0
je 0x415b35
test esi, esi
jne 0x415acf
push 0x10
call fcn.00415882
test eax, eax
je 0x415aa8
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x415aaa
xor esi, esi
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [edi + 0x14]
call fcn.00415824
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x415ae7
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x415af7
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x415b03
call fcn.0040de30
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call fcn.00402850
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax + edx*4], ecx
pop esi
ret 8
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468063

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40122f
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x20
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x1f
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x74
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x3c
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x51
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x64
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x83
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x51
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xe0
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x3d
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xed
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xe1
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xaf
push str.dHJdvghcgyhushgjdshgj
push 0x46ce60
call fcn.00401ce0
add esp, 8
push eax
call fcn.004021d0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x2e
inc ebx
cmp esi, ebx
jne 0x401020
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebp, eax
jb 0x401258
mov ebp, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, edi
cmp edi, 4
jae 0x401267
mov ecx, edi
jmp 0x4012c3
mov dword [esp], edi
shr edi, 2
cmp edi, 2
mov eax, 1
cmovae eax, edi
mov dword [esp + 4], eax
xor ebx, ebx
nop
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, 0x46ce60
push edi
call fcn.004022b0
imul eax, dword [ebp + ebx*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebx
cmp dword [esp + 4], ebx
jne 0x401280
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x4012ec
cmp ecx, 2
je 0x4012e2
cmp ecx, 3
jne 0x4012fb
movsx eax, byte [ebp + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebp + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebp + edi]
xor ecx, eax
imul eax, ecx, 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
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d1c0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, edi
push 0
call fcn.00410257
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov word [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
test esi, esi
mov dword [ebp - 0x20], edi
je 0x40361f
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.00410552
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.00410204
add esp, 4
nop word cs:[eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x40365c
push eax
call fcn.00415f58
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x403675
push eax
call fcn.00415f58
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40368e
push eax
call fcn.00415f58
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4036a7
push eax
call fcn.00415f58
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4036c0
push eax
call fcn.00415f58
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4036d9
push eax
call fcn.00415f58
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.004102af
add esp, 8
pop ebp
ret
Function at 0x40e206
Capabilities:
Parse pe header

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

Function at 0x420476
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46bb84]
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 0x4204c1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00420615
test al, al
jne 0x4204bb
sub edx, 2
cmp edx, edi
jne 0x4204a1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4204e3
lea eax, [edi + 2]
cmp edx, eax
je 0x4204e3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004203c2
add esp, 0x10
jmp 0x4205dd
push esi
lea ecx, [ebp - 0x255]
call fcn.00420615
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 0x420526
push dword [ebp - 0x25c]
jmp 0x4204d3
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 0x420563
cmp word [ebp - 0x226], 0
je 0x420584
cmp word [ebp - 0x226], ax
jne 0x420563
cmp word [ebp - 0x224], 0
je 0x420584
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004203c2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4205d0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42053d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4205b8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4205dd
push 0x4201f2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042a060
add esp, 0x10
jmp 0x4205ad
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.0040e646
leave
ret

Function at 0x42150b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433728
push 0x433720
push str.FlsAlloc
push 0x1e
call fcn.004213f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42153f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e190]
call esi
jmp 0x421545
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x421589
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433738
push 0x433730
push str.FlsGetValue
push 0x20
call fcn.004213f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4215c0
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e190]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x424a48
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004246ea

Function at 0x424a53
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424879
Function at 0x4260be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042ce30
mov eax, dword [0x46bb84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041fb0b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x426100
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42625c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042ce60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46d7b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004264e4
mov ecx, dword [esi*4 + 0x46d7b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x426255
cmp eax, dword [edi + ecx + 0x24]
jne 0x426255
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426255
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004264e4
add esp, 0x14
test edx, edx
jl 0x426255
jg 0x4261cb
test eax, eax
jb 0x426255
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x426255
jl 0x4261e5
cmp dword [ebp - 0x1008], eax
ja 0x426255
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x426203
test ebx, ebx
je 0x42623c
cmp ecx, edi
jae 0x42623c
mov al, byte [ecx]
cmp al, 0xd
jne 0x42621d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x426229
cmp byte [ecx + 1], 0xa
jne 0x426229
inc ecx
jmp 0x426229
movzx eax, al
movsx eax, byte [eax + 0x46c580]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x426203
cmp edx, ebx
jne 0x426203
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42625a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e646
leave
ret
Function at 0x42aa77
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 + 0x46d7b0]
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 0x42aab7
cmp byte [ebx], 0xa
jne 0x42aab7
or byte [eax + edi + 0x28], 4
jmp 0x42aabc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42abba
mov al, byte [edx]
cmp al, 0x1a
je 0x42ab9c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42aaeb
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42ab10
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42ab1a
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 0x42aacd
jmp 0x42abba
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 0x42ab97
cmp dword [ebp - 0xc], 0
je 0x42ab97
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46d7b0]
test byte [eax + edi + 0x28], 0x48
je 0x42ab71
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42ab5c
mov byte [esi], dl
jmp 0x42ab6d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46d7b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42abba
cmp byte [ebp - 1], 0xa
jne 0x42ab80
cmp esi, ebx
jne 0x42ab80
mov byte [esi], 0xa
jmp 0x42abb9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426502
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42abba
mov byte [esi], 0xd
jmp 0x42abb9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46d7b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42abb6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42abba
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret