joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463400
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, edx
je 0x463491
test dword [ecx + 0xc], 0x100000
jne 0x463431
push 0x1cdd
push str.C:UserskilldelayDesktopCSExternal_mainimguiimgui_widgets.cpp
push str.tab_bar__Flags__ImGuiTabBarFlags_DockNode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov cl, byte [esi]
or eax, 0xffffffff
inc esi
test cl, cl
je 0x463469
push edi
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x46344f
cmp byte [esi], cl
jne 0x46344f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x471190]
test cl, cl
jne 0x463440
pop edi
mov ecx, dword [0x484c18]
not eax
cmp dword [ecx + 0x1c84], eax
jne 0x46347f
mov dword [ecx + 0x1c88], eax
cmp dword [ecx + 0x1cbc], eax
jne 0x4634a3
mov byte [ecx + 0x1cc0], 1
pop esi
pop ebp
ret
mov eax, dword [0x484c18]
push ecx
push esi
mov ecx, dword [eax + 0x1c48]
call fcn.004215f0
pop esi
pop ebp
ret
Function at 0x468570
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x484040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x124
mov ebx, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x468630
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [0x484c80], 0xf
mov eax, 0x484c6c
cmova eax, dword [0x484c6c]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
add esp, 8
test eax, eax
je 0x468606
lea eax, [ebp - 0x130]
push eax
push ebx
call esi
cmp eax, 1
je 0x4685d1
jmp 0x468630
push dword [ebp - 0x128]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x4a
mov dword [0x484c68], eax
lea esi, [ebp - 0x130]
mov edi, 0x484c84
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x484c68], 0
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00469676
mov esp, ebp
pop ebp
ret
Function at 0x46a3a7
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x4030be
mov eax, esi
je 0x40308a
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esi + 0xb], 0
js 0x4030d8
mov word [esi], 0
mov byte [esi + 0xb], 0
cmp esi, edi
je 0x4030a8
cmp byte [esi + 0xb], 0
movzx eax, byte [edi + 0xb]
js 0x4030e8
test al, al
jns 0x4030c8
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00410340
cmp byte [edi + 0xb], 0
jns 0x4030b8
push dword [edi]
call fcn.00411540
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
cmp dword [esi + 4], 0
je 0x40308a
mov eax, dword [esi]
jmp 0x403074
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x4030a8
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
jmp 0x40308a
mov edx, edi
test al, al
jns 0x4030f3
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, esi
push eax
push edx
call fcn.00410270
jmp 0x4030a8
Function at 0x408cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x40f670
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x408d31
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [0x451b2c]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x2c]
push esi
call fcn.00410a00
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x457ef8
call fcn.00411030
mov esi, eax
mov edi, dword [ebp - 0x2c]
cmp edi, 0x457e08
je 0x408d84
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x408d84
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
call dword [0x451b2c]
mov ecx, edi
call ebx
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi]
mov dl, byte [ebp + 0x18]
xor dl, 1
movzx edx, dl
mov edi, dword [ecx + edx*4 + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, edi
call dword [0x451b2c]
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
call edi
movzx eax, byte [ebp - 0x21]
mov edx, eax
test al, al
jns 0x408dbf
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
test edx, edx
je 0x408e58
test al, al
lea eax, [ebp - 0x2c]
cmovns ecx, eax
mov dword [ebp - 0x30], ecx
jmp 0x408e35
movzx edi, al
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x451b2c]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x408e07
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x408e13
mov dword [ebp - 0x20], 0
movzx eax, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
mov esi, eax
test al, al
jns 0x408e28
mov esi, dword [ebp - 0x28]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x30]
inc esi
mov dword [ebp - 0x30], esi
cmp esi, edx
je 0x408e58
cmp dword [ebp - 0x20], 0
je 0x408e0c
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x408dd7
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ecx], al
jmp 0x408e13
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x408e70
push ecx
call fcn.00411540
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x408d27
Function at 0x411a78
Capabilities:
Parse pe header

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

Function at 0x426b60
Capabilities:
Parse pe header

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

Function at 0x427c95
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a4a4
push 0x44a49c
push 0x44a4a4
push 0x1f
call fcn.00428148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427cc9
push dword [ebp + 8]
mov ecx, esi
call dword [0x451b2c]
call esi
jmp 0x427ccf
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x427d13
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a4c8
push 0x44a4c0
push 0x44a4c8
push 0x21
call fcn.00428148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427d4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x451b2c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x427d52
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a4dc
push 0x44a4d4
push 0x44a4dc
push 0x22
call fcn.00428148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427d8c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x451b2c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x42c29f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004274dc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004274dc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42c316
cmp word [ecx], dx
je 0x42c316
mov eax, dword [0x44ae94]
push edi
dec eax
push eax
push 0x44ad80
call fcn.0042c48f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42c389
cmp word [eax], dx
je 0x42c389
mov eax, dword [edi]
test eax, eax
je 0x42c33a
cmp word [eax], dx
je 0x42c33a
lea eax, [ebp - 0x10]
push eax
call fcn.0042c4f0
jmp 0x42c343
lea eax, [ebp - 0x10]
push eax
call fcn.0042c7de
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42c3b3
mov eax, dword [0x44ad7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44aa70
call fcn.0042c48f
add esp, 0xc
test al, al
je 0x42c3b3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42c37e
cmp word [eax], di
je 0x42c37e
lea eax, [ebp - 0x10]
push eax
call fcn.0042c4f0
pop ecx
jmp 0x42c3b5
lea eax, [ebp - 0x10]
push eax
call fcn.0042c7de
jmp 0x42c37b
mov eax, dword [edi]
test eax, eax
je 0x42c3a0
cmp word [eax], dx
je 0x42c3a0
lea eax, [ebp - 0x10]
push eax
call fcn.0042c912
pop ecx
jmp 0x42c3b3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42c47e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042ca04
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42c47e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x42c47e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x42c47e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42c40b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00427f8b
test ebx, ebx
je 0x42c479
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00427f8b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x42c47e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x42c47e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00421a0b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42c480
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411e79
leave
ret
Function at 0x42cb0a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004274dc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x42cb79
cmp esi, dword [ebp - 4]
je 0x42cb74
cmp dword [ebp + 0xc], 0
je 0x42cb74
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42cb51
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042cbd3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42cb7b
xor eax, eax
inc eax
jmp 0x42cb7b
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x42cf22
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x455010]
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 0x42cf6d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042d098
test al, al
jne 0x42cf67
sub edx, 2
cmp edx, edi
jne 0x42cf4d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42cf8f
lea eax, [edi + 2]
cmp edx, eax
je 0x42cf8f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042ce6e
add esp, 0x10
jmp 0x42d089
push esi
lea ecx, [ebp - 0x255]
call fcn.0042d098
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 0x42cfd2
push dword [ebp - 0x25c]
jmp 0x42cf7f
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 0x42d00f
cmp word [ebp - 0x226], 0
je 0x42d030
cmp word [ebp - 0x226], ax
jne 0x42d00f
cmp word [ebp - 0x224], 0
je 0x42d030
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042ce6e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42d07c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42cfe9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42d064
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x42d089
push 0x42d0bc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004342d0
add esp, 0x10
jmp 0x42d059
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.00411e79
leave
ret
Function at 0x42d9cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42d9e0
pop esi
ret
push ebx
push edi
push esi
call fcn.0042da1d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00429666
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42da08
push ebx
push esi
push edi
call fcn.00414b20
add esp, 0xc
push 0
call fcn.00426e74
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42da54
Capabilities:
Set environment variable

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4575c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43037f
cmp byte [ebx], 0xa
jne 0x43037f
or byte [edi + eax + 0x28], 4
jmp 0x430384
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x430483
mov dl, byte [eax]
cmp dl, 0x1a
je 0x430466
inc eax
cmp dl, 0xd
je 0x4303b0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4303d6
cmp eax, ecx
jae 0x4303e4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x430398
jmp 0x430483
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x430461
cmp dword [ebp - 0x10], 0
je 0x430461
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4575c8]
test byte [eax + edi + 0x28], 0x48
je 0x43043b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x430426
mov byte [esi], dl
jmp 0x430437
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4575c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x430483
cmp byte [ebp - 1], 0xa
jne 0x43044a
cmp esi, ebx
jne 0x43044a
mov byte [esi], 0xa
jmp 0x430482
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00430686
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x430483
mov byte [esi], 0xd
jmp 0x430482
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4575c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x430480
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x430483
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43048c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4575c8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4304d2
cmp word [ebx], dx
jne 0x4304d2
or byte [eax + edi + 0x28], 4
jmp 0x4304d7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43063a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43061a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x430518
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43054e
cmp eax, edx
jae 0x43055c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4304f3
jmp 0x43063a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x430615
cmp dword [ebp - 0x18], 0
je 0x430615
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4575c8]
test byte [eax + edi + 0x28], 0x48
je 0x4305eb
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4305af
mov word [esi], cx
jmp 0x4305e6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4575c8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4575c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4575c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43063a
pop eax
cmp word [ebp - 4], ax
jne 0x4305fb
cmp esi, ebx
jne 0x4305fb
mov word [esi], ax
jmp 0x430637
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00430686
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43063a
push 0xd
pop eax
jmp 0x4305f6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4575c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x430634
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43063a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10003d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041f5c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100591e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov al, byte [edi]
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
mov byte [esi], al
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [edi + 8]
push edx
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
fld qword [edi + 0x20]
fstp qword [esi + 0x20]
mov eax, esi
fld qword [edi + 0x28]
fstp qword [esi + 0x28]
fld qword [edi + 0x30]
fstp qword [esi + 0x30]
fld qword [edi + 0x38]
fstp qword [esi + 0x38]
mov cl, byte [edi + 0x40]
mov byte [esi + 0x40], cl
mov dl, byte [edi + 0x41]
mov byte [esi + 0x41], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4