joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f55f8
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.crash_controller::request_constact_support
lea ecx, [ebp - 0x43c]
call fcn.0040fa90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00411400
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
jne 0x4112bd
xor bl, bl
jmp 0x411306
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esi + 8]
add ecx, 0x14
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 8]
push 0
push 0
push 0x10
lea ecx, [eax + 0x14]
mov dword [eax + 0x250], 0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.004033a0
lea ecx, [ebp - 0x43c]
call fcn.0040fcc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret

Function at 0x416720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41677c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41677c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x416768
cmp esi, edx
jae 0x41677c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x416756
cmp esi, edx
jae 0x41677c
cmp word [esi], 0
je 0x41677c
pop edi
mov eax, esi
pop esi
lfence
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4170c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5cfd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046a3c0
mov edx, dword [ebx + 0x4ac]
lea ecx, [ebp - 0x2c]
push str.IDS_PRODUCT_NAME
call fcn.00409330
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x417145
push eax
push 0xfffffffffffffff2
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetClassLongW]
mov esi, dword [ebx + 0x4ac]
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x417159
mov eax, dword [eax]
cmp ecx, 3
jne 0x4171dd
push ecx
push 0x5163b0
push eax
call fcn.0040c240
add esp, 0xc
test eax, eax
jne 0x4171dd
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x30], eax
call fcn.00404140
lea ecx, [ebp - 0x30]
push ecx
push esi
mov eax, dword [eax + 0x84]
call eax
mov edi, dword [ebp - 0x30]
call fcn.00404140
push edi
mov eax, dword [eax + 0x7c]
call eax
xor esi, esi
test eax, eax
cmove esi, edi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
call fcn.00404140
push 0x5163b0
push 0x516980
push esi
mov eax, dword [eax + 0xb8]
call eax
mov byte [ebp - 4], 2
test esi, esi
je 0x4171d3
call fcn.00404140
push esi
mov eax, dword [eax + 0x80]
call eax
mov byte [ebp - 4], 0
mov esi, dword [ebx + 0x4ac]
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4171e8
mov esi, dword [esi]
cmp eax, 5
jne 0x417277
push eax
push 0x516984
push esi
call fcn.0040c240
add esp, 0xc
test eax, eax
jne 0x417277
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
call dword [eax]
mov esi, eax
mov dword [ebp - 0x30], 0
call fcn.00404140
mov ecx, dword [eax + 0x84]
lea eax, [ebp - 0x30]
push eax
push esi
call ecx
mov edi, dword [ebp - 0x30]
call fcn.00404140
push edi
mov eax, dword [eax + 0x7c]
call eax
xor esi, esi
test eax, eax
cmove esi, edi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x417273
call fcn.00404140
push 0x516990
push str.lang
push esi
mov eax, dword [eax + 0xb8]
call eax
mov byte [ebp - 4], 4
call fcn.00404140
push esi
mov eax, dword [eax + 0x80]
call eax
jmp 0x417273
mov byte [ebp - 4], 0
mov ecx, ebx
call fcn.004174a0
cmp byte [ebx + 0x4c8], 0
je 0x4172a2
push 0
push 0x222e0
push 0x11645
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x4cc], eax
lea ecx, [ebp - 0x2c]
call fcn.004033a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret
Function at 0x41f490
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
mov eax, edx
mov dword [ebp - 0xc], esi
push 0
push 1
mov dword [ebp - 0x10], eax
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x41f4f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
mov dword [esi + 4], 0x53ed5c
mov byte [esi + 0xc], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
test edi, edi
jne 0x41f506
mov dword [esi], edi
mov dword [esi + 4], edi
jmp 0x41f57f
push edi
call fcn.004987ea
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push 0
push 0
push eax
mov eax, dword [ebp - 0x10]
push ebx
push 1
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x41f560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x53ed5c
push ebx
mov byte [esi + 0xc], 1
call fcn.004987f3
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], edi
je 0x41f577
push ebx
mov dword [ebp - 0xc], 0
xor edi, edi
call fcn.004987f3
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [esi + 4], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
mov byte [esi + 0xc], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.0049852a
mov esp, ebp
pop ebp
ret
Function at 0x42a9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x42aaa8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x42aa97
jg 0x42aa00
test edx, edx
je 0x42aa97
nop dword [eax]
call fcn.00412b00
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x42aa54
jg 0x42aa17
test esi, esi
je 0x42aa54
cmp ebx, eax
jg 0x42aa27
jl 0x42aa21
cmp edi, esi
jae 0x42aa27
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004cd990
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x42aa7b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x42aa91
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x42aa00
jl 0x42aa91
test edi, edi
jne 0x42aa00
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x42aaca
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x42aacc
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x42ab4a
jg 0x42aadf
test esi, esi
je 0x42ab4a
test eax, eax
jl 0x42ab2e
jg 0x42aae9
test ebx, ebx
je 0x42ab2e
cmp edi, eax
jg 0x42aaf9
jl 0x42aaf3
cmp esi, ebx
jae 0x42aaf9
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004cd990
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x42ab4a
jg 0x42ab31
test esi, esi
je 0x42ab4a
jmp 0x42ab31
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x42ab4a
push eax
push esi
push 1
push edx
call fcn.004dab0e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42ab60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x42ab92
jl 0x42ab85
test ecx, ecx
jne 0x42ab92
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x42ac52
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00412b20
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x42abfe
jg 0x42abbd
test esi, esi
je 0x42abfe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x42abd5
mov eax, dword [esp + 0x10]
jl 0x42abcf
cmp eax, esi
jae 0x42abd5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004cd990
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x42ac1f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x42ac3b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x42aba4
jl 0x42ac3b
test ecx, ecx
jne 0x42aba4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x42ac91
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x42ac91
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004cd990
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], 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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x42ad00
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x42acb7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x42ace9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004dad57
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x42ad14
cmp edi, eax
ja 0x42acc5
test ecx, ecx
je 0x42ad00
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004dad57
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x42b050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42b080
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42b0bc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42b0bc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x42b1a9
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x42b0e4
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 0x42b117
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004d9bef
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
sub eax, 0
je 0x42b179
sub eax, 1
je 0x42b179
sub eax, 2
jne 0x42b1a9
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004d9bef
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42b199
lfence
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004dab0e
add esp, 0x10
cmp edi, eax
jne 0x42b1a9
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x42b0a7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049852a
mov esp, ebp
pop ebp
ret 4
Function at 0x42c8b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7fa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53d058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00498569
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004850b3
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cc80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x42cd3f
cmp byte [esi + 0x3d], 0
je 0x42cd3f
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x42cd2d
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
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 edx
sub eax, 0
je 0x42ccf2
sub eax, 1
je 0x42ccf6
sub eax, 2
jne 0x42cd2d
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42cd16
lfence
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004dab0e
add esp, 0x10
cmp edi, eax
jne 0x42cd2d
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0049852a
mov esp, ebp
pop ebp
ret
Function at 0x437a60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8cd8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53d058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
lea edi, [ecx + 0xc]
movq xmm0, qword [ebx]
lea esi, [ebx + 0xc]
movq qword [ecx], xmm0
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov ecx, edi
push esi
call fcn.00412650
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
movzx eax, byte [esi + 0x1c]
mov byte [edi + 0x1c], al
movzx eax, byte [esi + 0x1e]
mov byte [edi + 0x1e], al
mov dword [ebp - 4], 0
add ebx, 0x30
mov esi, dword [ebp - 0x10]
lea edi, [esi + 0x30]
mov byte [edi + 0x10], 0
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
cmp byte [ebx + 0x10], 0
je 0x437ae9
push ebx
mov ecx, edi
call fcn.004269b0
mov byte [edi + 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43bda0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9304
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x60], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x18], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43be00
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.004034d0
mov ecx, esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43be41
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.004034d0
test ebx, ebx
mov byte [ebp - 4], 1
mov edx, 0x516ad0
mov dword [ebp - 0x30], 0
cmovne edx, ebx
mov dword [ebp - 0x20], 0
mov ecx, edx
mov dword [ebp - 0x1c], 7
xor eax, eax
mov word [ebp - 0x30], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43be90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004034d0
push 0x50
mov byte [ebp - 4], 2
call fcn.00498569
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.0040bca0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
lea ecx, [esi + 0x18]
push eax
call fcn.0040bca0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x30]
push eax
call fcn.0040bca0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0x43c090
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
push 0
push esi
push 0x43c730
push 0
push 0
call fcn.004d0958
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x43bf64
cmp dword [edi + 0xc], 0
jne 0x43bf72
mov eax, dword [ebp - 0x64]
mov dword [edi + 8], ecx
lea ecx, [ebp - 0x30]
mov dword [edi + 0xc], eax
call fcn.004033a0
lea ecx, [ebp - 0x48]
call fcn.004033a0
lea ecx, [ebp - 0x60]
call fcn.004033a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 0xc
push 6
mov dword [ebp - 0x64], 0
call fcn.00484c0c
call fcn.004d07c0
int3
Function at 0x43bf80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9340
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xfffffffffffffff5
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
test ebx, ebx
je 0x43c06c
cmp ebx, 0xffffffff
je 0x43c06c
xor esi, esi
test edi, edi
je 0x43c01c
lfence
nop
mov eax, dword [ebp - 0x18]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43c01c
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x1c]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c01c
add esi, dword [ebp - 0x14]
cmp esi, edi
jb 0x43bfe0
push str.login2::comm::write
mov edx, 0x10
lea ecx, [ebp - 0xc4]
call fcn.0040fef0
add esp, 4
mov dword [ebp - 4], 0
cmp byte [eax + 0x48], 0
je 0x43c05a
mov edx, str.fail_write
cmp esi, edi
mov ecx, str.success_write
cmovne ecx, edx
push ecx
push eax
call fcn.00414f60
add esp, 8
lea ecx, [ebp - 0xc4]
call fcn.0040fdc0
cmp esi, edi
sete al
jmp 0x43c06e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 8