joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413284
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push ebp
push dword [esp + 0x1c]
call fcn.0040f5b5
lea ecx, [esi + 0x24]
call fcn.00404f47
lea ecx, [esi + 0x30]
call fcn.00404f47
lea ecx, [esi + 0x3c]
lea ebx, [esi + 0x60]
call fcn.00404f47
lea ecx, [esi + 0x48]
call fcn.00404f47
lea ecx, [esi + 0x54]
call fcn.00404f47
mov ecx, ebx
call fcn.0040b967
mov eax, 1
push 0x9c8
mov dword [esi], 0x41c6b0
mov dword [ebx], eax
mov dword [esi + 0x64], eax
call fcn.004188d0
add esp, 4
test eax, eax
je 0x413306
mov ecx, dword [esp + 0x18]
lea edi, [esi + 0x98]
push ecx
mov dword [esi + 0xa0], ecx
push dword [esp + 0x18]
mov ecx, eax
call fcn.0040d005
mov dword [edi], eax
jmp 0x413312
lea edi, [esi + 0x98]
mov dword [edi], 0
push 0x8c
lea ebp, [esi + 0x8c]
call fcn.004188d0
add esp, 4
test eax, eax
je 0x413341
push dword [edi]
push dword [esi + 0xa0]
push dword [esp + 0x1c]
mov ecx, eax
call fcn.00408122
mov dword [ebp], eax
jmp 0x413348
mov dword [ebp], 0
mov eax, dword [ebp]
cmp dword [eax + 8], 0
jne 0x41335e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [edi]
call fcn.0040d088
push 0x38
call fcn.004188d0
add esp, 4
test eax, eax
je 0x413384
push 0
mov ecx, eax
push ebx
push dword [edi]
call fcn.00409090
mov dword [esi + 0x7c], eax
jmp 0x41338b
mov dword [esi + 0x7c], 0
push 0x30
call fcn.004188d0
add esp, 4
test eax, eax
je 0x4133aa
push 0
mov ecx, eax
call fcn.00409dc4
mov dword [esi + 0x80], eax
jmp 0x4133b4
mov dword [esi + 0x80], 0
push 0x40
call fcn.004188d0
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x4133d4
push esi
push dword [edi]
call fcn.0040a399
mov dword [esi + 0x88], eax
jmp 0x4133de
mov dword [esi + 0x88], 0
push 4
call fcn.004188d0
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x4133fd
push dword [edi]
call fcn.00405070
mov dword [esi + 0x90], eax
jmp 0x413407
mov dword [esi + 0x90], 0
push 0x1c
call fcn.004188d0
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x413428
push 0x10
push 0x64
call fcn.00404fc9
mov dword [esi + 0x9c], eax
jmp 0x413432
mov dword [esi + 0x9c], 0
push 0x14
lea ebx, [esi + 0x94]
call fcn.004188d0
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x413453
push dword [edi]
call fcn.00410988
mov dword [ebx], eax
jmp 0x413459
mov dword [ebx], 0
push 0x168
call fcn.004188d0
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x41347f
push 0
push dword [edi]
push dword [ebx]
call fcn.004119f8
mov dword [esi + 0x84], eax
jmp 0x413489
mov dword [esi + 0x84], 0
xor edi, edi
push 0xc0
push edi
lea eax, [esi + 0xc8]
push eax
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
call fcn.00418610
add esp, 0xc
mov dword [esi + 0x188], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov ecx, esi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xc4], 1
mov dword [esi + 0xc0], edi
call fcn.00417248
push 0x7c
mov eax, dword [0x41d074]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [esi + 0x14], eax
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x414987
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0x10], ecx
push esi
push edi
mov esi, dword [ebp + 0xc]
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
je 0x414aa3
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov cl, 0x20
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.004192b0
or eax, ebx
or edx, edi
lea ecx, [esi + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp edx, edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
jne 0x4149fa
cmp eax, edi
jne 0x4149fa
mov eax, 1
jmp 0x414aaa
push 0
push ebx
push dword [ebp - 0xc]
push 2
push 0
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x38], eax
mov ebx, dword [ecx + 0x98]
lea ecx, [esi + 0x20]
add ebx, 0x314
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebx]
cdq
cmp edx, dword [ecx + 4]
jg 0x414a3a
jl 0x414a36
cmp eax, dword [ebp - 8]
jae 0x414a3a
mov edi, eax
jmp 0x414a3d
mov edi, dword [ebp - 8]
mov edx, dword [esi + 0x2c]
lea eax, [esi + 0x28]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov cl, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
call fcn.004192d0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov eax, dword [ebx]
cdq
push edx
push eax
push dword [ebp - 4]
push ecx
call fcn.00419080
imul eax, dword [ebx]
push edi
push eax
push dword [ebp - 0xc]
push 4
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
test eax, eax
je 0x414aa3
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x414aa3
push esi
mov ecx, dword [ebp - 0x10]
call fcn.00414ab3
xor eax, eax
jmp 0x414aaa
cmp dword [esi + 0x30], 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415dd8
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x10]
push ebp
test edi, edi
je 0x415e2e
lea ebx, [esi + 0x24]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea ebp, [eax - 0x30]
test eax, eax
jne 0x415df9
xor ebp, ebp
test ebp, ebp
je 0x415e2e
cmp dword [ebp + 0x44], edi
jne 0x415e0e
mov ecx, ebp
call fcn.00404578
cmp eax, 1
jne 0x415e6b
test ebp, ebp
je 0x415e17
add ebp, 0x30
jmp 0x415e19
xor ebp, ebp
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax + 8]
lea ebp, [eax - 0x30]
test eax, eax
jne 0x415e2a
xor ebp, ebp
test ebp, ebp
jne 0x415dfd
push 0x8304
call fcn.004188d0
add esp, 4
test eax, eax
je 0x415e77
push dword [esp + 0x18]
push edi
lea ebx, [esi + 0x60]
mov ecx, eax
push dword [esi + 0x90]
push dword [esi + 0x98]
push ebx
push dword [esi + 0x94]
push dword [esi + 0x8c]
call fcn.004013b7
mov edi, eax
jmp 0x415e79
push 1
mov ecx, esi
push ebp
call fcn.00417355
jmp 0x415ee0
xor edi, edi
test edi, edi
jne 0x415e81
xor eax, eax
jmp 0x415ee5
lea eax, [edi + 0x30]
lea ecx, [esi + 0x24]
push eax
mov ebx, dword [ecx]
call dword [ebx]
mov ebp, dword [edi]
xor ebx, ebx
push ebx
mov ecx, edi
call dword [ebp + 0xe4]
push 0xa
mov ecx, edi
call dword [ebp + 4]
push 1
mov ecx, esi
push edi
call fcn.004182b4
cmp dword [esi + 0x6c], ebx
jne 0x415ee0
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x390], ebx
jne 0x415ee0
push 1
push dword [esi + 0xa0]
call sub.WSOCK32.dll_htons
movzx eax, ax
push eax
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
push eax
mov ecx, esi
call fcn.00416cb6
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret 8
Function at 0x416f36
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
lea eax, [ebp - 4]
push esi
push edi
mov esi, ecx
push eax
push 7
mov eax, dword [ebp + 8]
add eax, 0x84
push eax
call fcn.0040c957
add esp, 0xc
test eax, eax
je 0x417145
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 7
push 0
call fcn.0040c957
add esp, 0xc
test eax, eax
je 0x417145
push eax
xor edi, edi
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
mov ebx, 7
push eax
push ebx
push edi
call fcn.0040c957
add esp, 0xc
test eax, eax
je 0x4170cd
push 0x32
lea ecx, [ebp - 0x84]
push eax
push ecx
call fcn.0040b640
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
call fcn.0040c957
add esp, 0xc
test eax, eax
je 0x4170cd
push 0x32
lea ecx, [ebp - 0x52]
push eax
push ecx
call fcn.0040b640
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
call fcn.0040c957
add esp, 0xc
test eax, eax
je 0x4170cd
push eax
call fcn.00419130
add esp, 4
and al, 0
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], eax
push ecx
push ebx
push edi
call fcn.0040c957
add esp, 0xc
test eax, eax
je 0x4170cd
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call fcn.0040c957
add esp, 0xc
test eax, eax
je 0x4170cd
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call fcn.0040c957
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4170cd
push 0x41fc28
push ebx
call fcn.004188e0
add esp, 8
test eax, eax
jne 0x41707e
mov ebx, 0x41d23c
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c957
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4170cd
push 0x41fc28
push eax
call fcn.004188e0
add esp, 8
test eax, eax
jne 0x4170ad
mov dword [ebp - 8], 0x41d23c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x84]
push dword [ebp - 8]
push ebx
or al, 1
push eax
push ecx
mov ecx, esi
call fcn.00416408
inc dword [ebp - 0xc]
jmp 0x416f9c
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jne 0x4170fb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4170fb
mov eax, dword [esi + 0x98]
mov dword [esi + 0xac], ecx
cmp dword [eax + 0x390], ecx
je 0x417145
push 1
mov ecx, esi
call fcn.00416b2e
jmp 0x417145
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
call fcn.00418c90
add esp, 4
mov ecx, dword [esi + 0x8c]
push eax
push 0x12
push dword [ebp + 8]
call fcn.00408527
push 0
mov ecx, dword [esi + 0x98]
mov edi, 0x105
push dword [ecx + 0x394]
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x417145
mov dword [esi + 0xb0], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41714e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
lea eax, [ebp - 0x3c]
push edi
mov esi, ecx
push 0x3c
xor edi, edi
push edi
push eax
call fcn.00418610
add esp, 0xc
mov eax, dword [esi + 0x98]
add eax, 0x68
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], 1
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4171a1
cmp dword [ebp - 0x1c], 0x1f
jg 0x4171d2
mov eax, dword [ebp - 0x1c]
cmp eax, 0x1b
je 0x4171bc
cmp eax, 0x1f
je 0x4171bc
push 0
push 0x41d268
push str.Cant_open_log_file
jmp 0x4171c8
push 0
push 0x41d268
push str.Invalid_file_extention_link
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419460
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c798
push 0x41a72c
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4201ac], eax
xor eax, eax
mov al, byte [0x4201ad]
mov dword [0x4201b8], eax
mov eax, dword [0x4201ac]
shr dword [0x4201ac], 0x10
and eax, 0xff
mov dword [0x4201b4], eax
shl eax, 8
add eax, dword [0x4201b8]
mov dword [0x4201b0], eax
call fcn.00419620
mov dword [ebp - 4], 0
call fcn.0041a550
call fcn.0041a540
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4208e4], eax
call fcn.0041a0e0
mov dword [0x41ff40], eax
test eax, eax
je 0x4194f9
cmp dword [0x4208e4], 0
jne 0x419503
push 0xffffffffffffffff
call fcn.00419990
add esp, 4
call fcn.00419e60
call fcn.00419d80
call fcn.00419960
mov esi, dword [0x4208e4]
mov al, byte [esi]
cmp al, 0x22
je 0x41952a
cmp al, 0x20
jbe 0x419557
inc esi
cmp byte [esi], 0x20
ja 0x419522
jmp 0x419557
inc esi
cmp byte [esi], 0x22
je 0x419556
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x419551
xor eax, eax
mov al, bl
push eax
call fcn.00419d20
add esp, 4
test eax, eax
je 0x41954b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x419533
cmp byte [esi], 0x22
jne 0x419557
inc esi
cmp byte [esi], 0
je 0x419567
cmp byte [esi], 0x20
ja 0x419567
inc esi
cmp byte [esi], 0
jne 0x41955c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x41958b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00419990
jmp 0x4195cc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4199d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4201e8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4199ee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4201e4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4201e0], bl
jne 0x419a48
cmp dword [0x4208d8], 0
je 0x419a36
mov edi, dword [0x4208d4]
sub edi, 4
cmp dword [0x4208d8], edi
ja 0x419a36
mov eax, dword [edi]
test eax, eax
je 0x419a2b
call eax
sub edi, 4
cmp dword [0x4208d8], edi
jbe 0x419a23
push 0x41d014
push 0x41d010
call fcn.00419a80
add esp, 8
push 0x41d01c
push 0x41d018
call fcn.00419a80
add esp, 8
test ebx, ebx
jne 0x419a6f
mov dword [0x4201e8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x41a0e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x420290], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x41a12c
call esi
mov edi, eax
test edi, edi
je 0x41a10a
mov dword [0x420290], 1
jmp 0x41a130
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x41a122
mov dword [0x420290], 2
jmp 0x41a134
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x420290], 1
jne 0x41a1e3
test edi, edi
jne 0x41a157
call esi
mov edi, eax
test edi, edi
jne 0x41a157
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41a171
add esi, 2
cmp word [esi], 0
jne 0x41a15f
add esi, 2
cmp word [esi], 0
jne 0x41a15f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x41a1d2
push ebp
call fcn.00419300
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41a1d2
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41a1c1
push ebx
call fcn.004188b0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x420290], 2
jne 0x41a267
test ebx, ebx
jne 0x41a206
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x41a206
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x41a21b
inc ebp
cmp byte [ebp], 0
jne 0x41a20d
inc ebp
cmp byte [ebp], 0
jne 0x41a20d
sub ebp, ebx
inc ebp
push ebp
call fcn.00419300
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x41a240
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x41a850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4204b8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x41a877
add eax, 8
inc ecx
cmp eax, 0x420540
jb 0x41a868
cmp dword [ecx*8 + 0x4204b8], edx
lea ebx, [ecx*8]
jne 0x41aa32
cmp dword [0x41ff4c], 1
je 0x41a9f7
cmp dword [0x41ff4c], 0
jne 0x41a8ae
cmp dword [0x41ff50], 1
je 0x41a9f7
cmp edx, 0xfc
je 0x41aa32
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x41a8eb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x41a92f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x41ca54
push ebp
call fcn.004189f0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41ca34
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4204bc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0041ab70
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4207d0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x41aa0e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4204bc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4f3540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x3bd000
lea edi, [esi - 0x9c000]
push edi
jmp 0x4f355a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f3561
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3550
mov eax, 1
add ebx, ebx
jne 0x4f3573
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f3584
jne 0x4f35a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f35a3
dec eax
add ebx, ebx
jne 0x4f3590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f3568
add ebx, ebx
jne 0x4f359f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f35f5
xor ecx, ecx
sub eax, 3
jb 0x4f35bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f362a
sar eax, 1
mov ebp, eax
jmp 0x4f35c6
add ebx, ebx
jne 0x4f35c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3594
inc ecx
add ebx, ebx
jne 0x4f35d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3594
add ebx, ebx
jne 0x4f35e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f35d6
jne 0x4f35f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f35d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f3614
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f3606
jmp 0x4f3556
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f3614
add edi, ecx
jmp 0x4f3556
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f3632
cmp byte [edi], 0x11
jne 0x4f3632
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f3637
lea edi, [esi + 0xec000]
mov eax, dword [edi]
or eax, eax
je 0x4f36af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10c76c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10c8e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f3664
mov ecx, edi
jns 0x4f3693
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10c8ec]
or eax, eax
je 0x4f36a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4f3681
call dword [esi + 0x10c8fc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f36e0
cmp al, 0xef
ja 0x4f36d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f36b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f36c2
mov ebp, dword [esi + 0x10c8f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f3714
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x47f1c0]
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.0040607a
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 0x403e46
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 [0x4800f0], eax
push 0x27
push 0x47ec20
push 0x547
mov esi, 0x47ec48
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x4800f0]
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 0x403ea6
call fcn.00403d5c
xor eax, eax
pop ecx
ret 0x10