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

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x9c], eax
cmp dword [0x40c278], 0
je 0x4045ca
mov eax, dword [0x40c274]
jmp 0x404626
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x404619
cmp dword [ebp - 0x7c], 6
jne 0x404619
cmp dword [ebp - 0x78], 0
jne 0x404619
cmp byte [ebp + 0x9a], cl
jne 0x404619
cmp word [ebp + 0x94], 0
jne 0x404619
mov eax, ecx
jmp 0x40461b
xor eax, eax
mov dword [0x40c274], eax
mov dword [0x40c278], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00406bd0
add ebp, 0xa0
leave
ret

Function at 0x404c7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.00406cb0
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call sub.MSVCR100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x404d12
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x404d81
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x409e94
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x404d40
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404d83
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404d75
test dx, dx
je 0x404d71
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404d75
add eax, 4
add ecx, 4
test dx, dx
jne 0x404d4f
xor eax, eax
jmp 0x404d7a
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.00406bd0
add ebp, 0xf8c
leave
ret

Function at 0x404f97
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x404fb8
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x409fac
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404fb8
inc esi
mov eax, esi
pop esi
ret
Function at 0x405ef1
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x407d39
call fcn.00406bdf
push 0x40a044
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR100.dll__wdupenv_s]
add esp, 0xc
test eax, eax
jne 0x405fcf
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR100.dll_free]
cmp dword [0x40c258], 0
pop ecx
je 0x405f4e
xor eax, eax
inc eax
jmp 0x405fd1
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x405fcf
test eax, eax
je 0x405fcf
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fcd
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.00401fcd
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00404161
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x405f9f
call fcn.004039c2
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x405faa
mov eax, dword [esi]
jmp 0x405fac
xor eax, eax
push 0x40a0f0
push eax
push 0x40c258
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x405ff4
test esi, esi
je 0x405fcf
mov ecx, esi
call fcn.004039c2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00406bd0
add ebp, 0x20c
leave
ret
test esi, esi
je 0x405f46
mov ecx, esi
call fcn.004039c2
jmp 0x405f46

Function at 0x4062a5
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x407d61
call fcn.00406c12
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.00407871
test eax, eax
je 0x4062d0
call fcn.00406296
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x4089bc
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40632b
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040698a
pop ecx
pop ecx
push edi
push esi
call fcn.00407871
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.0040669a
push eax
push esi
push 0x40902c
call fcn.0040698a
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x406324
ret
cmp ebx, edi
je 0x406336
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x4063e7
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x406393
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x4062ef
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x4063e7
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x4063e7
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x4062ef
mov eax, esi
call fcn.00406c7e
ret
Function at 0x406bd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c148]
jne 0x406bda
repz ret
jmp fcn.0040711e

Function at 0x40708f
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40ae10
call fcn.004070a0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x40c630], ebx
jne 0x406e31
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40c62c
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x406e6b
cmp eax, esi
jne 0x406e5e
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406e6e
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x406e45
xor esi, esi
inc esi
mov eax, dword [0x40c628]
cmp eax, esi
jne 0x406e81
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x406ebc
mov eax, dword [0x40c628]
test eax, eax
jne 0x406eb6
mov dword [0x40c628], esi
push 0x408260
push 0x408254
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x406ebc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406fce
mov dword [0x40c2a8], esi
mov eax, dword [0x40c628]
cmp eax, esi
jne 0x406ee0
push 0x408250
push 0x408238
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x40c628], 2
cmp dword [ebp - 0x20], ebx
jne 0x406eed
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40c634], ebx
je 0x406f0e
push 0x40c634
call fcn.00407871
pop ecx
test eax, eax
je 0x406f0e
push ebx
push 2
push ebx
call dword [0x40c634]
mov eax, dword [sym.imp.MSVCR100.dll__wcmdln]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x406f6f
cmp cx, bx
je 0x406f2a
cmp dword [ebp - 0x1c], ebx
jne 0x406f6f
movzx ecx, word [eax]
cmp cx, bx
je 0x406f3f
cmp ecx, 0x20
ja 0x406f3f
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x406f2a
test byte [ebp - 0x40], 1
je 0x406f4b
movzx ecx, word [ebp - 0x3c]
jmp 0x406f4e
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40c2a4], eax
cmp dword [0x40c298], ebx
jne 0x406fb4
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp ecx, 0x22
jne 0x406f7f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x406f15
cmp dword [0x40c2a8], ebx
jne 0x406fc2
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2a4]
call fcn.004070e5
ret
call fcn.00407871
jmp 0x406e03
Function at 0x407871
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x407880
pop dword [ebp - 0x18]
mov eax, 0xfa53a4fd
add eax, 0x5ecd383
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xe743de79
sub dword [ebp - 0x28], 0x98f1992e
mov dword [ebp - 0x24], 0xb70a86a3
sub dword [ebp - 0x24], 0x84d73a5e
mov dword [ebp - 0x20], 0x76e5de18
sub dword [ebp - 0x20], 0x2a9999ea
mov dword [ebp - 0x1c], 0x80a99c99
add dword [ebp - 0x1c], 0x7f566367
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe7f58ebc
add eax, 0x184af200
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xdfdcec95
sub dword [ebp - 0x28], 0x6b6a833f
mov dword [ebp - 0x24], 0xb33b75a4
sub dword [ebp - 0x24], 0x71cf142f
mov dword [ebp - 0x20], 0x314a84cd
sub dword [ebp - 0x20], 0xcddb1861
mov dword [ebp - 0x1c], 0x12d93af9
sub dword [ebp - 0x1c], 0x12d93af9
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x1a260ddb
sub eax, 0x19e58dcb
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39548
push 0
call eax
mov ecx, 0x698e6e69
sub ecx, 0x698e1d12
xor edx, edx
add edx, eax
mov ebx, 0x1774585
sub ebx, 0x1365985
add ebx, dword [ebp - 0x18]
mov edi, 0xb179183d
sub edi, 0xd730faed
sub dword [ebp - 0xc], 0x8981cee1
mov esi, dword [ebx]
sub dword [ebp - 0xc], 0x31b2c8e8
sub esi, edi
xor dword [ebp - 0x14], edi
mov dword [edx], esi
xor dword [ebp - 8], edi
add edx, 0x1b62d390
sub edx, 0x1b62d38c
add ebx, 0x191ca87
sub ebx, 0x191ca83
loop 0x4079a4
add eax, 0x1382f
mov ebx, eax
add eax, 0x161f0f0c
add eax, 0xe9e0f0f9
mov ecx, 0xa307e814
sub ecx, 0xa2c7e814
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401443
pop dword [ebp - 0x30]
mov eax, 0x401443
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x51d19e77
add dword [ebp - 0x40], 0xfc80a6d4
mov dword [ebp - 0x3c], 0x543bb003
add dword [ebp - 0x3c], 0xddf79c42
mov dword [ebp - 0x38], 0x4ece0663
add dword [ebp - 0x38], 0xfd7e3dcb
mov dword [ebp - 0x34], 0x87ba94c3
sub dword [ebp - 0x34], 0x87ba94c3
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x47208d20
add dword [ebp - 0x40], 0x2d51dc36
mov dword [ebp - 0x3c], 0x35d12158
add dword [ebp - 0x3c], 0xb9b401d
mov dword [ebp - 0x38], 0xacbe319
add dword [ebp - 0x38], 0x58a38953
mov dword [ebp - 0x34], 0x307a5bb5
add dword [ebp - 0x34], 0xcf85a44b
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xb82537c7
add eax, 0x481b4939
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3526a
push 0
call eax
mov ecx, 0x81778921
add ecx, 0x7e88b250
mov edx, eax
mov esi, 0x80bfafaa
add esi, 0x7f873456
add esi, dword [ebp - 0x30]
mov ebx, 0xd60199d6
xor dword [ebp - 0x2c], esi
mov edi, dword [esi]
xor dword [ebp - 0x2c], edx
add edi, ebx
add dword [ebp - 0x28], 0x1ec3a79b
mov dword [edx], edi
sub dword [ebp - 0x28], eax
add edx, 0x9c07da91
add edx, 0x63f82573
add esi, 0x9f3a9e41
sub esi, 0x9f3a9e3d
loop 0x401555
add eax, 0xe097
xor ebx, ebx
add ebx, eax
add eax, 0xed17cbf6
add eax, 0x12e8340f
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4022e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40230c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402334
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40233a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4023a2
jg 0x402351
test esi, esi
je 0x4023a2
test ecx, ecx
jl 0x40239d
jg 0x40235b
test eax, eax
je 0x40239d
cmp edi, ecx
jg 0x40236f
jl 0x402365
cmp esi, eax
jae 0x40236f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4023a5
mov ecx, dword [ebp + 8]
jmp 0x4023af
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4023c9
jg 0x4023af
test esi, esi
je 0x4023c9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4023c9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4023e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40240c
jl 0x402400
test ecx, ecx
jne 0x40240c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402425
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x402473
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402479
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x402479
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x4024e6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4024a2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x4024d4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4024e6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4024b0
test edi, edi
je 0x4024e6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402890
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cda
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4028cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4028cc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cda
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4029a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4028f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402900
movsx eax, bl
jmp 0x402938
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402962
sub eax, 1
je 0x402962
sub eax, 2
jne 0x4029a3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cda
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402980
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4029a3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cda
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404cda
mov esp, ebp
pop ebp
ret 4
Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403d8c
cmp byte [esi + 0x3d], 0
je 0x403d8c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403d7a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403d41
sub eax, 1
je 0x403d45
sub eax, 2
jne 0x403d7a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cda
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403d63
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403d7a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cda
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cda
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00404cda
mov esp, ebp
pop ebp
ret

Function at 0x40557a
Capabilities:
Parse pe header

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

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
mov edx, dword [ebx + 0xd]
lea esi, [edx]
add esi, 0xc
mov ebx, dword [esi]
push edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x4ad082e2
mov edx, ebx
add edx, 0x30
mov edx, dword [edx]
mov edi, dword [edx]
and edi, 0xdf00df
mov edx, dword [edx + 0xb]
add edx, edi
shr edx, 1
sub edx, 0x192299a5
cmp edx, 0
je 0x4ad082e8
mov edx, dword [ebx]
lea ebx, [edx]
jmp 0x4ad082b5
call fcn.4ad083eb
call fcn.4ad083ac
push eax
call fcn.4ad083a1
mov ebx, edi
mov eax, dword [ebx]
add eax, esi
mov ebx, dword [eax + 0xb]
add ebx, ebx
sub ebx, 0xe8c6ca
cmp ebx, 0
jne 0x4ad08310
jmp 0x4ad08315
add edi, 4
jmp 0x4ad082f8
mov ebx, edx
add ebx, 0x20
mov ebx, dword [ebx]
sub edi, esi
sub edi, ebx
shr edi, 1
mov ebx, dword [edx + 0x24]
add ebx, edi
add ebx, esi
mov edi, dword [ebx]
shl edi, 0x10
shr edi, 0xe
mov ebx, dword [edx + 0x1c]
add ebx, esi
add ebx, edi
mov edi, dword [ebx]
add edi, esi
mov ebx, 0x95000
push esi
mov edx, 0xaf000
lea eax, [0x40]
push ecx
add edx, ecx
push ebx
push esp
push eax
push ebx
push edx
call edi
pop ebx
pop ecx
push eax
mov esi, 0x673c0
lea ebx, [0xcd000]
add esi, ecx
add ebx, ecx
mov edx, 0x2854
call fcn.4ad083b7
lea esi, [0x69ed]
mov edx, 0x1b0a4
mov ebx, 0xaf000
add ebx, ecx
lea edi, [0xb]
imul esi, edi
add esi, 0x3491
add esi, ecx
call fcn.4ad083b7
jmp 0x4ad083f1
nop
ret
lea edx, [0x6d]
mov esi, 0x10000000
lea ebx, [0xaf000]
add ebx, ecx
mov edi, 0x25
imul edx, edi
add edx, 0x3f
sub ebx, edx
lea edx, [ebx]
sub edx, esi
lea esi, [0x6a1c0]
add esi, ecx
mov edi, dword [esi]
xor edi, 0x64725d01
dec edi
test edi, edi
je 0x4ad0843a
add edi, ebx
mov eax, dword [edi]
add eax, edx
mov dword [edi], eax
add esi, 4
jmp 0x4ad08420
lea ebx, [0x1e45]
lea esi, [0x24f2]
add esi, ecx
add esi, 0xafc64
add esi, ebx
push esi
lea edx, [edi]
test edi, edi
jmp 0x4ad083db