joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419b90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x4242b4]
and dword [ebp - 0x848], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x844], eax
call fcn.0040dcd4
test eax, eax
jne 0x419e19
call fcn.0040ddf3
test eax, eax
jne 0x419e19
call fcn.004199d3
test eax, eax
je 0x419e1c
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x3ec]
push eax
push ebx
mov dword [ebp - 0x3ec], 0xdc
mov dword [ebp - 0x840], 0x454
call dword [0x4250a4]
test eax, eax
je 0x419c2b
push ebx
call dword [0x4250a0]
test eax, eax
jne 0x419c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40a828
jmp 0x419c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x419c43
push eax
push 0x40a7d8
call fcn.0040be00
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x3e8]
push ebx
push eax
call fcn.0041b9d0
push 0x40
lea eax, [ebp - 0x3d8]
push edi
push eax
call fcn.0041b97f
and word [ebp - 0x354], 0
add esp, 0x18
push ebx
lea edi, [esi + 0x280]
lea ebx, [ebp - 0x310]
mov word [ebp - 0x358], 4
mov word [ebp - 0x356], 9
mov word [ebp - 0x352], 0x388
call fcn.00419aeb
test eax, eax
jne 0x419cad
push 0x40a79c
call fcn.0040be00
pop ecx
jmp 0x419e0c
push dword [ebp - 0x844]
lea eax, [ebp - 0x310]
push 0x401354
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2fe
test eax, eax
jne 0x419cd6
push 0x40a768
jmp 0x419ca2
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, 0x104
push edi
lea eax, [ebp - 0x83c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call ebx
test eax, eax
jne 0x419d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40a720
jmp 0x419ddd
push dword [ebp - 0x844]
add esi, 0x74
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2ca
test eax, eax
jne 0x419d31
push 0x40a6e8
jmp 0x419ca2
lea eax, [ebp - 0x108]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x40368c
push 0x40672c
push 0x403678
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x419d63
push 0x40a6b4
jmp 0x419ca2
lea eax, [ebp - 0x20c]
push eax
push 0x401354
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2fe
test eax, eax
jne 0x419d90
push 0x40a680
jmp 0x419ca2
push edi
lea eax, [ebp - 0x634]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call ebx
test eax, eax
jne 0x419db9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40a638
jmp 0x419ddd
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x3ec]
push eax
call dword [0x42509c]
test eax, eax
jne 0x419de8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40a5f0
call fcn.0040be00
pop ecx
jmp 0x419ca7
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x844]
push 0x40a598
call fcn.0040be00
add esp, 0xc
mov dword [ebp - 0x848], 1
call fcn.00419aab
mov eax, dword [ebp - 0x848]
jmp 0x419e1c
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041a84f
leave
ret 0xc
Function at 0x419e82
Capabilities:
Check if file exists
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x419ec7
cmp eax, 3
je 0x419ec7
cmp eax, edi
je 0x419ec7
push eax
push 0x40a8e0
call fcn.0040be00
pop ecx
pop ecx
xor eax, eax
jmp 0x419ef5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x419ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40a8ac
call fcn.0040be00
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x41a0c6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4242b4]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xab8]
push edi
xor edi, edi
cmp eax, edi
jne 0x41a2dd
cmp dword [ebp + 0xc], edi
push ebx
je 0x41a2aa
mov ebx, dword [esi + 0xab4]
push 0x40422c
lea eax, [esi + 0x17c]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x24c], edi
call fcn.0040c2ca
test eax, eax
jne 0x41a131
push 0x40a9d4
call fcn.0040be00
pop ecx
xor eax, eax
jmp 0x41a2dc
mov eax, dword [esi + 0x30]
mov dword [esi + 0x34], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x250], eax
je 0x41a2d4
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push eax
call fcn.0041bd0a
lea eax, [ebp - 0x108]
mov dword [esp], 0x404200
push eax
call fcn.0041b470
test eax, eax
pop ecx
pop ecx
jne 0x41a242
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x228]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add edi, eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x254], edi
call fcn.00419e30
test eax, eax
jne 0x41a1eb
lea eax, [esi + 0xadc]
push eax
call fcn.0040e1c6
test eax, eax
je 0x41a1e8
lea eax, [ebp - 0x21c]
push eax
call fcn.0040ca14
test eax, eax
jne 0x41a1eb
inc dword [esi + 0x30]
push 0x10c
call fcn.0041af8c
mov edi, eax
test edi, edi
pop ecx
je 0x41a235
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x228]
mov dword [edi + 0x104], eax
mov eax, dword [esi + 0xab4]
mov dword [edi + 0x108], eax
mov dword [esi + 0xab4], edi
mov edi, dword [ebp - 0x254]
jmp 0x41a24c
push 0x40a998
call fcn.0040be00
pop ecx
jmp 0x41a22d
mov dword [ebp - 0x24c], 1
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41a15a
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x24c], 0
je 0x41a2d4
jmp 0x41a29e
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [esi + 0xac0], eax
mov ebx, dword [ebx + 0x108]
test ebx, ebx
jne 0x41a27e
add edi, dword [esi + 0xac0]
jmp 0x41a2d4
mov ecx, dword [esi + 0xab4]
cmp ecx, edi
je 0x41a2d4
mov ebx, dword [ebp + 8]
mov eax, dword [ecx + 0x104]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
mov ecx, dword [ecx + 0x108]
imul eax, ebx
add edi, eax
test ecx, ecx
jne 0x41a2b7
mov dword [esi + 0xab8], edi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
pop esi
call fcn.0041a84f
leave
ret 8
Function at 0x41a587
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 1
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a5fa
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41a5e5
push eax
push 0x40ab50
call fcn.0040be00
and dword [ebp - 4], 0
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41a60d
push eax
push 0x40ab1c
jmp 0x41a606
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40aae8
call fcn.0040be00
pop ecx
pop ecx
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x41a9a9
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x41aa93
mov eax, 0x94
call fcn.0041cac0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41ab08
mov ecx, dword [esi + 0x10]
mov dword [0x4250c0], ecx
mov eax, dword [esi + 4]
mov dword [0x4250cc], eax
mov edx, dword [esi + 8]
mov dword [0x4250d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x4250c4], esi
je 0x41aa16
or esi, 0x8000
mov dword [0x4250c4], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x4250c8], eax
call fcn.0041c9ca
test eax, eax
pop ecx
je 0x41ab08
call fcn.0041c1d2
test eax, eax
jne 0x41aa43
call fcn.0041ca26
jmp 0x41ab08
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4268f4], eax
call fcn.0041c87e
mov dword [0x4250ac], eax
call fcn.0041c325
test eax, eax
jl 0x41aa8c
call fcn.0041c7d5
test eax, eax
jl 0x41aa87
call fcn.0041c57b
test eax, eax
jl 0x41aa87
call fcn.0041be83
test eax, eax
jne 0x41aa87
inc dword [0x4250a8]
jmp 0x41ab19
call fcn.0041c528
call fcn.0041bfa8
jmp 0x41aa39
test eax, eax
jne 0x41aac3
cmp dword [0x4250a8], eax
jle 0x41ab08
dec dword [0x4250a8]
cmp dword [0x4250fc], eax
jne 0x41aab2
call fcn.0041bf90
call fcn.0041c528
call fcn.0041bfa8
call fcn.0041ca26
jmp 0x41ab19
cmp eax, 2
jne 0x41ab0c
push 0x88
push 1
call fcn.0041c241
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41ab08
push esi
push dword [0x4242d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x41ab02
call fcn.0041bfcb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41ab19
call fcn.0041afa4
pop ecx
xor eax, eax
jmp 0x41ab1c
cmp eax, 3
jne 0x41ab19
push 0
call fcn.0041c05b
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x41bfe8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x4242d0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41c04a
push 0x88
push 1
call fcn.0041c241
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41c042
push esi
push dword [0x4242d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c042
push esi
call fcn.0041bfcb
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41c04a
push 0x10
call fcn.0041abcd
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret

Function at 0x41c1d2
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.0041e366
test eax, eax
je 0x41c1eb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4242d0], eax
jne 0x41c1f3
call fcn.0041bfa8
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.0041c241
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41c233
push esi
push dword [0x4242d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c233
push esi
call fcn.0041bfcb
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.0041bfa8
xor eax, eax
pop esi
ret
Function at 0x41c87e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x425210]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x41c8ca
call esi
mov edi, eax
cmp edi, ebx
je 0x41c8b0
mov dword [0x425210], 1
jmp 0x41c8cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41c8c5
push 2
pop eax
mov dword [0x425210], eax
jmp 0x41c8ca
mov eax, dword [0x425210]
cmp eax, 1
jne 0x41c947
cmp edi, ebx
jne 0x41c8db
call esi
mov edi, eax
cmp edi, ebx
je 0x41c950
cmp word [edi], bx
mov eax, edi
je 0x41c8f0
inc eax
inc eax
cmp word [eax], bx
jne 0x41c8e2
inc eax
inc eax
cmp word [eax], bx
jne 0x41c8e2
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41c93e
push eax
call fcn.0041e34a
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x41c93e
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x41c93b
push dword [ebp - 4]
call fcn.0041afa4
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x41c99f
cmp eax, 2
je 0x41c954
cmp eax, ebx
je 0x41c954
xor eax, eax
jmp 0x41c9a1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41c950
cmp byte [esi], bl
je 0x41c971
inc eax
cmp byte [eax], bl
jne 0x41c967
inc eax
cmp byte [eax], bl
jne 0x41c967
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0041e34a
cmp eax, ebx
pop ecx
je 0x41c998
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cb02
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4242b4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x424300]
je 0x41cb2c
inc eax
cmp eax, 0x12
jb 0x41cb1d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x424300]
mov dword [ebp - 0x110], esi
jne 0x41ccd7
mov eax, dword [0x4250b4]
cmp eax, 1
je 0x41cca5
test eax, eax
jne 0x41cb62
cmp dword [0x4250b8], 1
je 0x41cca5
cmp ecx, 0xfc
je 0x41ccd7
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41cb9d
push 5
pop ecx
mov esi, 0x40b324
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cba8
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x41cbe0
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cbc0
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x40b320
push ebx
call fcn.00420640
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cbe5
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x424304]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41cbff
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0041cac0
mov edx, esp
push 6
pop ecx
mov esi, 0x40b304
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cc2b
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41cc37
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41cc50
mov eax, dword [ebp - 0x110]
mov esi, 0x40b300
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x424304]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cc6e
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41cc7a
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x40b2d8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00420534
add esp, 0xc
jmp 0x41ccd7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x41ccd7
mov esi, dword [esi + 0x424304]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x41ccbc
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0041a84f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f4ff
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4242b4]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x41f536
xor eax, eax
jmp 0x41f6e9
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4267e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41f56b
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.00421d31
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41f639
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x41f6b7
jmp 0x41f592
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x41f5e8
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41f5d3
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x41f5aa
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f666
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x41f672
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x41f590
jmp 0x41f672
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f666
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x41f672
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x41f6e1
cmp dword [ebp - 0x40c], eax
je 0x41f6b1
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x41f6a3
call fcn.0041d53a
mov dword [eax], 9
call fcn.0041d548
mov dword [eax], esi
jmp 0x41f6dc
push dword [ebp - 0x40c]
call fcn.0041d556
pop ecx
jmp 0x41f6dc
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41f6c9
cmp byte [edi], 0x1a
jne 0x41f6c9
xor eax, eax
jmp 0x41f6e7
call fcn.0041d53a
mov dword [eax], 0x1c
call fcn.0041d548
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41f6e7
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0041a84f
leave
ret
Function at 0x41f894
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41fa6a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4267e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41fa6a
test cl, 0x48
je 0x41f901
cmp byte [eax + 5], 0xa
je 0x41f901
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f953
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41f93b
call fcn.0041d53a
mov dword [eax], 9
call fcn.0041d548
mov dword [eax], esi
jmp 0x41f94b
cmp eax, 0x6d
je 0x41fa6a
push eax
call fcn.0041d556
pop ecx
or eax, 0xffffffff
jmp 0x41fa6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41fa65
test eax, eax
je 0x41f97a
cmp byte [ebx], 0xa
jne 0x41f97a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41f983
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41fa5f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41fa4f
cmp al, 0xd
je 0x41f9b5
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41fa41
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41f9cf
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41f9ca
add dword [ebp + 0x10], 2
jmp 0x41fa23
mov dword [ebp + 0x10], eax
jmp 0x41fa3d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41fa3d
cmp dword [ebp - 0xc], 0
je 0x41fa3d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41fa18
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41fa23
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41fa40
cmp ebx, dword [ebp + 0xc]
jne 0x41fa28
cmp byte [ebp - 1], 0xa
jne 0x41fa28
mov byte [ebx], 0xa
jmp 0x41fa40
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004212c4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41fa41
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41f999
jmp 0x41fa5f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41fa5f
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41fa6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fb26
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041cac0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41fb8c
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4250c0]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x41fb90
xor eax, eax
jmp 0x41fb9d
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420534
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425398], ebx
push esi
push edi
jne 0x4205b6
push 0x40b680
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4205f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b674
push edi
call esi
test eax, eax
mov dword [0x425398], eax
je 0x4205f1
push 0x40b664
push edi
call esi
push 0x40b650
push edi
mov dword [0x42539c], eax
call esi
cmp dword [0x4250c0], 2
mov dword [0x4253a0], eax
jne 0x4205b6
push 0x40b634
push edi
call esi
test eax, eax
mov dword [0x4253a8], eax
je 0x4205b6
push 0x40b61c
push edi
call esi
mov dword [0x4253a4], eax
mov eax, dword [0x4253a4]
test eax, eax
je 0x4205fb
call eax
test eax, eax
je 0x4205e2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4253a8]
test eax, eax
je 0x4205e2
test byte [ebp - 8], 1
jne 0x4205fb
cmp dword [0x4250cc], 4
jb 0x4205f5
or byte [ebp + 0x12], 0x20
jmp 0x42061a
xor eax, eax
jmp 0x42062a
or byte [ebp + 0x12], 4
jmp 0x42061a
mov eax, dword [0x42539c]
test eax, eax
je 0x42061a
call eax
mov ebx, eax
test ebx, ebx
je 0x42061a
mov eax, dword [0x4253a0]
test eax, eax
je 0x42061a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425398]
pop edi
pop esi
pop ebx
leave
ret