joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056b6
Capabilities:
Check os version

Disassembly:
push 0x128
mov eax, 0x417940
call fcn.004071a0
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
test byte [0x4217b8], 1
mov dword [ebp - 0x134], eax
mov esi, 0x421768
jne 0x405704
or dword [0x4217b8], 1
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00405589
push 0x41814a
call fcn.0040663a
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x421764], bl
jne 0x4058a6
mov edi, 0x11c
push edi
lea eax, [ebp - 0x12c]
push ebx
push eax
mov byte [0x421764], 1
call fcn.00409630
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405819
mov ecx, dword [ebp - 0x128]
cmp ecx, 4
mov eax, dword [ebp - 0x124]
mov dword [0x4217a8], ecx
mov dword [0x4217ac], eax
jne 0x405779
cmp eax, ebx
jne 0x405819
push 0xffffffffffffffff
push ebx
push 0x42186c
jmp 0x405821
cmp ecx, 5
jne 0x4057cb
cmp eax, ebx
jne 0x40578f
push 0xffffffffffffffff
push ebx
push 0x42182c
jmp 0x405821
cmp eax, 1
jne 0x4057a1
push 0xffffffffffffffff
push ebx
push 0x42183c
jmp 0x405821
cmp eax, 2
jne 0x405819
cmp byte [ebp - 0x12], 1
je 0x405794
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
push 0xffffffffffffffff
mov ecx, esi
push ebx
jne 0x4057c4
push 0x42185c
jmp 0x405823
push 0x4217fc
jmp 0x405823
cmp ecx, 6
jne 0x405819
cmp eax, ebx
jne 0x4057ed
cmp byte [ebp - 0x12], 1
push 0xffffffffffffffff
mov ecx, esi
push ebx
jne 0x4057e6
push 0x42180c
jmp 0x405823
push 0x4217cc
jmp 0x405823
cmp eax, 1
jne 0x40580a
cmp byte [ebp - 0x12], al
push 0xffffffffffffffff
mov ecx, esi
push ebx
jne 0x405803
push 0x42181c
jmp 0x405823
push 0x4217ec
jmp 0x405823
cmp eax, 2
jne 0x405819
push 0xffffffffffffffff
push ebx
push 0x42187c
jmp 0x405821
push 0xffffffffffffffff
push ebx
push 0x42184c
mov ecx, esi
call fcn.00401dc0
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
mov dword [ebp - 0x130], ebx
je 0x405871
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40585f
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x130], ebx
je 0x405871
push 0xffffffffffffffff
push ebx
push 0x4217dc
jmp 0x405879
push 0xffffffffffffffff
push ebx
push 0x4217bc
mov ecx, 0x421778
call fcn.00401dc0
movzx eax, word [ebp - 0x18]
mov dword [0x4217b0], eax
movzx eax, word [ebp - 0x16]
mov dword [0x4217b4], eax
lea eax, [ebp - 0x118]
push eax
mov ecx, 0x421788
call fcn.00401b10
mov ecx, dword [ebp - 0x134]
push esi
call fcn.00405666
mov eax, dword [ebp - 0x134]
call fcn.004071ea
ret
Function at 0x4058be
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push ebx
xor ecx, ecx
cmp eax, ecx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, 0x41ab98
jne 0x4058db
mov eax, edi
push ecx
push 0x80
push 2
push ecx
push dword [ebp + 0x10]
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40592c
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
mov eax, dword [eax + 4]
add esi, esi
test eax, eax
jne 0x40590b
mov eax, edi
push 0
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40592c
cmp dword [ebp + 0xc], esi
je 0x405935
mov dword [ebp - 4], 0x3e4
jmp 0x405935
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x405940
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, 2
mov edi, 6
mov dword [ebp - 0x14], 0x5b2e
pop ebx
add byte [eax], al
and dword [ebp - 0x1c], 0
add dword [ebp - 0x14], 0x4216b7
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 1]
shl edx, 0xc
add dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 2]
shl edx, 9
add dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
xor eax, 0x4d
mov byte [ebp - 0x21], al
mov dword [ebp - 4], 3
jmp 0x406982
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x21]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 4], eax
jb 0x40696e
mov dword [ebp - 0x28], 0x4275e5
mov dword [ebp - 0x20], 0x442000
mov eax, esi
add eax, edi
sub eax, 8
mov dword [ebp - 8], eax
jmp 0x4069b6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x123bc
jb 0x4069a4
mov dword [ebp - 0x2c], 0x461000
mov dword [ebp - 0x30], 0x4399e5
mov eax, edi
sub eax, 6
mov dword [ebp - 0xc], eax
jmp 0x4069e9
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x5974
jb 0x4069d7
mov ebx, 0x43f7e5
mov dword [ebp - 0x34], 0x10000000
mov dword [ebp - 0x3c], 0x20000
mov dword [ebp - 0x38], 0x1000
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, esi
add eax, esi
sub eax, 4
mov dword [ebp - 0x10], eax
jmp 0x406ada
mov eax, dword [ebp - 0x10]
mov edx, edi
add edx, esi
add eax, edx
add eax, ebx
mov dword [ebp - 0x44], eax
mov ax, word [eax]
mov word [ebp - 0x40], ax
movzx edx, word [ebp - 0x40]
mov ecx, edi
add ecx, edi
sar edx, cl
mov word [ebp - 0x46], dx
movzx eax, word [ebp - 0x40]
mov edx, edi
add edx, esi
sub edx, 8
cmp eax, edx
je 0x406ae6
movzx edx, word [ebp - 0x40]
mov ecx, edi
sub ecx, 2
shl edx, cl
mov word [ebp - 0x3e], dx
movzx edx, word [ebp - 0x3e]
mov ecx, esi
add ecx, esi
sar edx, cl
mov word [ebp - 0x3e], dx
mov eax, edi
add eax, esi
sub eax, 8
cmp dword [ebp - 0x10], eax
je 0x406a92
movzx eax, word [ebp - 0x3e]
mov edx, edi
add edx, edi
sub edx, 0xc
cmp eax, edx
je 0x406ae6
movzx eax, word [ebp - 0x3e]
add eax, dword [ebx]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
movzx eax, word [ebp - 0x3e]
add eax, dword [ebp - 0x18]
add eax, dword [ebx]
mov dword [ebp - 0x50], eax
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, esi
add eax, edi
sub eax, 5
movzx edx, word [ebp - 0x46]
cmp eax, edx
jne 0x406ad0
movzx eax, word [ebp - 0x3e]
add eax, dword [ebx]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x54]
add dword [eax], edx
mov eax, esi
add eax, edi
sub eax, 6
add dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x10], eax
jb 0x406a24
add ebx, dword [ebx + 4]
cmp ebx, 0x4412f9
jb 0x4069fe
pop edi
pop esi
pop ebx
leave
jmp 0x44d70a
Function at 0x40c49c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x4204c8]
je 0x40c4c2
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x40c4b0
cmp esi, 0x17
jae 0x40c61c
push 3
call fcn.00413372
pop ecx
cmp eax, 1
je 0x40c5e6
push 3
call fcn.00413372
pop ecx
test eax, eax
jne 0x40c4f5
cmp dword [0x420098], 1
je 0x40c5e6
cmp edi, 0xfc
je 0x40c61c
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x421c38
push esi
call fcn.0041330a
add esp, 0xc
test eax, eax
je 0x40c52b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a81e
add esp, 0x14
mov byte [0x421d55], bl
push 0x104
mov ebx, 0x421c51
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c56e
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.0041330a
add esp, 0xc
test eax, eax
je 0x40c56e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a81e
add esp, 0x14
push ebx
push edi
push esi
call fcn.00413296
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x40c58c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a81e
add esp, 0x14
push 0x41c280
push edi
push esi
call fcn.00413296
add esp, 0xc
test eax, eax
je 0x40c5ac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a81e
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x4204cc]
push edi
push esi
call fcn.00413296
add esp, 0xc
test eax, eax
je 0x40c5d1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a81e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.004130f4
add esp, 0xc
jmp 0x40c61c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x40c61c
cmp edi, 0xffffffff
je 0x40c61c
mov edx, dword [esi*8 + 0x4204cc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c605
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cbb8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42215c]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x40cc07
call edi
mov esi, eax
cmp esi, ebx
je 0x40cbed
mov dword [0x42215c], 1
jmp 0x40cc0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40cc02
push 2
pop eax
mov dword [0x42215c], eax
jmp 0x40cc07
mov eax, dword [0x42215c]
cmp eax, 1
jne 0x40cc67
cmp esi, ebx
jne 0x40cc1f
call edi
mov esi, eax
cmp esi, ebx
jne 0x40cc1f
xor eax, eax
jmp 0x40cd38
mov eax, esi
cmp word [esi], bx
je 0x40cc34
inc eax
inc eax
cmp word [eax], bx
jne 0x40cc26
inc eax
inc eax
cmp word [eax], bx
jne 0x40cc26
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.0040955e
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40cc58
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40cd38
push dword [ebp - 4]
push esi
push edi
call fcn.00406930
add esp, 0xc
jmp 0x40cc4a
cmp eax, 2
je 0x40cc70
cmp eax, ebx
jne 0x40cc18
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x40cc18
cmp byte [esi], bl
je 0x40ccb1
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40cc18
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40cc9d
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x40cc83
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.0040c40b
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x40ccd5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40cc18
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x40cd27
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40cd3d
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40ccff
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40cd11
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp byte [esi], bl
jne 0x40ccdc
push dword [ebp - 8]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.004096aa
pop ecx
push dword [ebp - 8]
jmp 0x40ccca
Function at 0x40cd4e
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x422160]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x40cd92
call esi
test eax, eax
je 0x40cd77
mov dword [0x422160], 1
jmp 0x40cd97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40cd8e
mov dword [0x422160], 2
jmp 0x40cda0
xor eax, eax
jmp 0x40cdf6
cmp eax, 1
jne 0x40cd9b
call esi
jmp 0x40cdf6
cmp eax, 2
jne 0x40cd8e
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x40cdf3
push 2
push edi
call fcn.0040c40b
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40cdf3
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x40cdea
mov eax, dword [ebp - 4]
jmp 0x40cdf5
push dword [ebp - 4]
call fcn.004096aa
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4130f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b936
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x4223e8], ebx
jne 0x4131cd
push ebx
push ebx
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x413138
xor eax, eax
jmp 0x413291
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x413131
push eax
call fcn.0040b8c3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4223e8], eax
call esi
push eax
call fcn.0040b8c3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4223ec], eax
call esi
push eax
call fcn.0040b8c3
mov dword [0x4223f0], eax
lea eax, [ebp - 8]
push eax
call fcn.0040c08e
pop ecx
pop ecx
test eax, eax
je 0x41319b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a81e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4131cd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b8c3
pop ecx
mov dword [0x4223f8], eax
cmp eax, ebx
je 0x4131cd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b8c3
pop ecx
mov dword [0x4223f4], eax
mov eax, dword [0x4223f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x413246
cmp dword [0x4223f8], esi
je 0x413246
push eax
call fcn.0040b93f
pop ecx
call eax
cmp eax, ebx
je 0x413213
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4223f8]
call fcn.0040b93f
pop ecx
call eax
test eax, eax
je 0x413213
test byte [ebp - 0x18], 1
jne 0x413246
lea eax, [ebp - 0xc]
push eax
call fcn.0040c0ca
pop ecx
test eax, eax
je 0x41322e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a81e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41323d
or dword [ebp + 0x10], 0x200000
jmp 0x413277
or dword [ebp + 0x10], 0x40000
jmp 0x413277
mov eax, dword [0x4223ec]
cmp eax, esi
je 0x413277
push eax
call fcn.0040b93f
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x413277
mov eax, dword [0x4223f0]
cmp eax, esi
je 0x413277
push dword [ebp - 4]
push eax
call fcn.0040b93f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4223e8]
call fcn.0040b93f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414e76
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x420090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0040c08e
pop ecx
test eax, eax
je 0x414eab
push esi
push esi
push esi
push esi
push esi
call fcn.0040a81e
add esp, 0x14
push 4
pop eax
call fcn.00408730
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414fc7
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x414f40
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernelbase.dll
call esi
test eax, eax
jne 0x414f17
push str.kernel32.dll
call esi
test eax, eax
je 0x414f40
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414f40
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x414f40
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x414f40
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.0040c8f1
add esp, 0xc
test eax, eax
jl 0x414fc7
not esi
and dword [ebp - 8], esi
je 0x414f72
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0040c8f1
add esp, 0xc
test eax, eax
jl 0x414fc7
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x414f7d
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x414f91
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x414fc7
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x414fc7
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x414fc7
xor eax, eax
inc eax
jmp 0x414fc9
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004060e5
leave
ret
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x48c3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406114
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48d2f0], eax
push 0x27
push 0x48be18
push 0x547
mov esi, 0x48be40
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x48d2f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403f40
call fcn.00403de5
xor eax, eax
pop ecx
ret 0x10
Function at 0x418050
Capabilities:
Read file on windows

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

Function at 0x41844a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407010
mov eax, dword [0x48c3c0]
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.004161cb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41848c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4185e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004218d0
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 + 0x48dd90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419441
mov ecx, dword [esi*4 + 0x48dd90]
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 0x4185e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4185e1
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 0x4185e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419441
add esp, 0x14
test edx, edx
jl 0x4185e1
jg 0x418557
test eax, eax
jb 0x4185e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4185e1
jl 0x418571
cmp dword [ebp - 0x1008], eax
ja 0x4185e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41858f
test ebx, ebx
je 0x4185c8
cmp ecx, edi
jae 0x4185c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4185a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4185b5
cmp byte [ecx + 1], 0xa
jne 0x4185b5
inc ecx
jmp 0x4185b5
movzx eax, al
movsx eax, byte [eax + 0x48c698]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41858f
cmp edx, ebx
jne 0x41858f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4185e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406114
leave
ret
Function at 0x4188df
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 + 0x48dd90]
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 0x41891f
cmp byte [ebx], 0xa
jne 0x41891f
or byte [eax + edi + 0x28], 4
jmp 0x418924
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418a22
mov al, byte [edx]
cmp al, 0x1a
je 0x418a04
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418953
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x418978
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418982
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 0x418935
jmp 0x418a22
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 0x4189ff
cmp dword [ebp - 0xc], 0
je 0x4189ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48dd90]
test byte [eax + edi + 0x28], 0x48
je 0x4189d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4189c4
mov byte [esi], dl
jmp 0x4189d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48dd90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418a22
cmp byte [ebp - 1], 0xa
jne 0x4189e8
cmp esi, ebx
jne 0x4189e8
mov byte [esi], 0xa
jmp 0x418a21
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041945f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418a22
mov byte [esi], 0xd
jmp 0x418a21
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48dd90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a1e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a22
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret