joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7e2
Capabilities:
Encode data using xor

Disassembly:
aad 0x40
pop esi
out 0xf5, al
shr byte [ebx - 0x29f88b8], cl
pushal
std
mov ecx, 0x248db88f
aad 0xb1
push ds
leave
adc al, ah
add dword [eax], ecx
test dword [eax - 0x586aa663], ebp
in al, dx
dec ebx
jno 0x40a795
pop esi
cwde
or eax, 0xdbc8837a
or eax, 0xffffffdb
movsb byte es:[edi], byte [esi]
leave
invalid
out 0x1c, al
or dl, byte [eax - 0xbd43020]
sub eax, 0x259980d8
inc ebp
out dx, al
push esp
test eax, 0x24ad8985
mov ah, 0xa1
int3
lodsd eax, dword [esi]
and al, 0xb4
mov eax, dword [0xc2eca0cc]
sbb dword [eax + 0x30ec733b], esp
cmp esi, dword [ebx - 0x14]
xor byte [edi - 0xd], bh
cmp esi, dword [ebx - 0x14]
xor byte [edi - 0xd], bh
cwde
mov al, 0x75
inc ebx
aad 0x7b
pop edx
inc eax
insd dword es:[edi], dx
loopne 0x40a7c5
push cs
sub esp, esi
pushal
loope 0x40a78c
or dword [ebx + 0xb], 0xff00e789
pop esp
mov eax, dword [0xda5b3268]
pop esi
jl 0x40a7b2
cwde
dec ebp
mov byte [0xe090704d], al
and eax, 0xe854db49
jae 0x40a7d8
wait
popfd
invalid

Function at 0x43b902
Capabilities:
Encode data using xor

Disassembly:
adc dh, al
out 0xa3, al
fst st(2)
inc eax
cmp dword [ebx + 0x12], 0x30567f57
sahf
loop 0x43b889
in eax, 0x72
pmaxub mm1, qword [edi]
dec eax
add edi, dword [eax - 0x5bc1cee]
add eax, 0xea98628f
dec edi
mov esp, 0x76592698
lodsb al, byte ss:[esi]
mov byte [0x3aabdb77], al
push 0x1107b809
push esi
or dword [ebx + 0x1c], esi
xor dl, byte [edi + 0x40]
mov al, 7
daa
imul esp, eax, 0x44825cd
inc edx
inc edi
ja 0x43b89d
adc eax, 0xa713b683
loop 0x43b837
xchg ebp, eax
imul esp, ebx, 0x21
push es
retf 0xba2a
jp 0x43b8da
mov dh, byte [esi - 0xed9783d]
int1
test byte [ebp + edx*2 + 0x2a], bh
mov eax, dword [0x624ac66e]
mov edx, 0xb2242348
and esp, dword [edx + esi*4]
mov eax, eax
push ebp
loope 0x43b91b
and dword [eax + 0x356aa3e3], edi
adc byte [edx + 0x32], cl
sub bh, byte [esi]
xchg esp, eax
lcall 0xd189, 0xf77ae6df
invalid
and esp, dword [edi]
add esp, dword [edi + 0x39382eca]
cmp ch, byte [eax]
or esi, dword [edi + 0x63f8657]
sub byte [ebx], cl
mov bh, 0x57
xchg byte [edi], bh
push es
shl al, cl
sub al, 0x16
outsd dx, dword [esi]
cmp dh, dl
test byte [edi + 0x63], bh
add dl, al
and byte [edi], al
rcl bh, cl
mov byte [0x22442234], al
inc edi
add dword [ebp + 0x4e96f430], edi
pop ss
test byte [edi + 0x4f8fd], dh
add al, 0
push esp
test al, 0x9c
adc dword [ecx], 0x7e
dec eax
arpl dx, bx
adc byte [ebp + 0x45], 0x69
ficom dword [eax]
push ebx
leave
cmpsb byte [esi], byte es:[edi]
call 0x58b6396
clc
cmp byte [ebx + 0x5960d2f3], cl
add eax, 0x8b38f8f2
shl byte [eax + 0x59], cl
push edi
imul esi, dword [edi + 0x3a], 0xffffffb3
push ecx
cmpsd dword [esi], dword es:[edi]
mov ss, word [edx]
aaa
or dword [ebx + 0x3008df78], edx
xor esp, dword [ebx]
cmc
jae 0x43b8d1
jecxz 0x43b99c
jp 0x43b985
push ss
xchg edx, eax
test byte [ecx], 0x50
xchg esp, eax
shr dh, cl
sahf
ret 0x29a7
mov edi, 0x18c7df29
sahf
push es
mov eax, dword [0xf615efd7]
insd dword es:[edi], dx
push 0x7eaabf2b
push ds
cmp byte [esi], ch
cmp byte [esi], ch
out dx, eax
adc eax, 0x2b686df6
mov edi, 0x381e7eaa
cmp byte cs:[esi], ch
in al, dx
cmovs ebx, dword [ecx + ebx*8]
jl 0x43b98e
invalid
Function at 0x44a380
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.GetFirmwareEnvironmentVariableA
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x44a3c9
mov ecx, dword [0x4cf9f4]
push 0x4cf6fc
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test ebx, ebx
je 0x44a3ef
push 0
push 0
push str.E144E1B9_502C_44f9_B714_30DA320D0E8E
push 0x4d03d4
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
pop edi
neg eax
sbb eax, eax
pop esi
neg eax
pop ebx
pop ecx
ret
pop edi
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x48a6d2
Capabilities:
Encode data using xor

Disassembly:
or dword [edi + 0x22], 0xffffffcb
pop eax
popfd
or bh, byte [eax - 0x27]
mov esp, 0x426bb6fc
xor ecx, esp
loope 0x48a619
js 0x48a5bf
xchg esp, eax
xor byte [ecx + ebx - 0x7f2686fa], dl
dec ebp
mov esi, esi
inc ebp
inc eax
and eax, 0x1234c566
bound edi, qword [eax - 0x65]
mov eax, dword [0x5a9a76e5]
jecxz 0x48a636
xchg byte [edi - 0xe], ah
pop esi
fcom qword [edi]
jno 0x48a693
pop ss
cmc
out dx, al
test dword [ebx], edx
jb 0x48a658
emms
stc
vmovlps xmm5, xmm0, qword [esi]
int1
mov byte [esi + 0x78], al
je 0x48a6fb
push ebx
aad 0x47
dec eax
mov bl, 0x34
cmp dl, al
cmp eax, 0x88a3e4e4
inc esi
mov dword [0xf9e39a3b], eax
stc
stc
or dh, bh
add bh, dl
xchg ebx, eax
out dx, al
in al, dx
and al, 0xb5
call 0xa5b54635
sbb eax, 0xd330e1b5
cdq
mov eax, dword [0x20900884]
das
or al, 0xc8
mov ah, 0x1b
movsb byte es:[edi], byte [esi]
das
imul esi, dword [ecx + 0x70], 0x37aab275
jne 0x48a6aa
stosb byte es:[edi], al
aaa
mov esp, ds
push cs
fmul qword [esi]
add dh, ch
sub esi, dword [eax - 0x37bc99ff]
pop ss
or al, 0x27
pop edi
xchg ecx, eax
jae 0x48a711
loopne 0x48a72e
and dl, byte es:[ecx]
and dl, byte es:[ecx]
adc dword [ebp + 0x49], ecx
dec ebp
dec ecx
xor ch, bl
call 0xa056e796
push eax
je 0x48a70f
push 0x67561dd4
lea esp, [eax]
sub eax, 0x51404bb9
arpl word [ebx], dx
les edx, [esi]
cmp eax, 0xb48d13ee
jge 0x48a7a6
ror byte [esp + edx*2], 1
salc
push 0x9241f844
add ch, ch
rcr dword [eax + edx - 0x770b4559], 1
test al, 0xc1
cwde
xor eax, 0x968a1eb5
jns 0x48a6f6
aas
add cl, byte [edx - 0x72e51ad7]
jb 0x48a7d5
nop
hlt
xchg dword [edx + 0x33301b5b], esi
pop ss
jp 0x48a72a
push esp
or al, 0
lodsb al, byte [esi]
mov eax, dword [0xb3993b44]
aam 0x22
stosb byte es:[edi], al
stc
movsb byte es:[edi], byte [esi]
retf 0x167
mov esp, 0x23c35c8b
arpl word [eax + edi*4 - 0x4f], bx
jmp 0x48a77b
adc byte [esi], al
sub byte [ebp - 0x6344cc8d], ch
mov dword [0x2dc3567f], eax
lds ecx, [edi - 0x12871334]
js 0x48a7c4
ret
Function at 0x4c51f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cc5a8
cmp edx, dword [eax]
je 0x4c5214
add eax, 8
inc ecx
cmp eax, 0x4cc638
jl 0x4c5205
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cc5a8]
jne 0x4c5342
mov eax, dword [0x4d0c80]
cmp eax, 1
je 0x4c531c
test eax, eax
jne 0x4c5245
cmp dword [0x4cc4ec], 1
je 0x4c531c
cmp edx, 0xfc
je 0x4c5342
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c527c
lea eax, [ebp - 0x1a4]
push 0x4c97f4
push eax
call fcn.004c5910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c5b40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c52bf
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c5b40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c97f0
push edi
call fcn.004c7310
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c97d4
push eax
call fcn.004c5910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c5920
lea eax, [ebp - 0xa0]
push 0x4c97d0
push eax
call fcn.004c5920
push dword [esi + 0x4cc5ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c5920
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c97a8
push eax
call fcn.004c7284
add esp, 0x2c
pop edi
jmp 0x4c5342
lea eax, [ebp + 8]
lea esi, [esi + 0x4cc5ac]
push 0
push eax
push dword [esi]
call fcn.004c5b40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4011a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
call fcn.00401240
push 0x7871
push 0x43161c
push 2
call fcn.00404390
call fcn.00404040
push 0x64a0
push 0x43161c
push 2
call fcn.00404390
add esp, 0x18
push 0x104
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401228
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401228
push str.adfasdgag
push 0x104
push eax
call fcn.004094d2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push str.pause
call fcn.004094a1
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x402390
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 0x402476
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 0x402465
jg 0x4023d0
test edx, edx
je 0x402465
nop dword [eax]
call fcn.00403690
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402424
jg 0x4023e7
test esi, esi
je 0x402424
cmp ebx, eax
jg 0x4023f7
jl 0x4023f1
cmp edi, esi
jae 0x4023f7
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.00406be0
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 0x402449
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40245f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4023d0
jl 0x40245f
test edi, edi
jne 0x4023d0
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 0x402498
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40249a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402518
jg 0x4024ad
test esi, esi
je 0x402518
test eax, eax
jl 0x4024fc
jg 0x4024b7
test ebx, ebx
je 0x4024fc
cmp edi, eax
jg 0x4024c7
jl 0x4024c1
cmp esi, ebx
jae 0x4024c7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00406be0
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 0x402518
jg 0x4024ff
test esi, esi
je 0x402518
jmp 0x4024ff
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402518
push eax
push esi
push 1
push edx
call fcn.0040a9bf
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 0x402530
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 0x402562
jl 0x402555
test ecx, ecx
jne 0x402562
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 0x402622
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004036b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4025ce
jg 0x40258d
test esi, esi
je 0x4025ce
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4025a5
mov eax, dword [esp + 0x10]
jl 0x40259f
cmp eax, esi
jae 0x4025a5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00406be0
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 0x4025ef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40260b
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 0x402574
jl 0x40260b
test ecx, ecx
jne 0x402574
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 0x402661
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x402661
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00406be0
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 0x4026d0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x402687
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 0x4026b9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040b016
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x4026e4
cmp edi, eax
ja 0x402695
test ecx, ecx
je 0x4026d0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040b016
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 0x402a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402a80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404912
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x402abc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402abc
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.00404912
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402ba4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402ae4
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 0x402b17
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004098b2
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.00404912
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
sub eax, 0
je 0x402b77
sub eax, 1
je 0x402b77
sub eax, 2
jne 0x402ba4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004098b2
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.00404912
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402b94
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040a9bf
add esp, 0x10
cmp edi, eax
jne 0x402ba4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x402aa7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404912
mov esp, ebp
pop ebp
ret 4
Function at 0x4033c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40347a
cmp byte [esi + 0x3d], 0
je 0x40347a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403468
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403430
sub eax, 1
je 0x403434
sub eax, 2
jne 0x403468
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404912
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403451
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040a9bf
add esp, 0x10
cmp edi, eax
jne 0x403468
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404912
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404912
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00404912
mov esp, ebp
pop ebp
ret

Function at 0x4039e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425ac0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434008]
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.00404b22
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004058a4
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 0x4170d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416f49

Function at 0x41be5b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b9ae
Function at 0x406400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42ac2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4046cc
call fcn.00407061
push 4
mov dword [esp + 0x18], 0
call fcn.00407ff0
mov edi, eax
add esp, 4
test edi, edi
je 0x406474
push ebx
call fcn.00406f39
mov dword [edi], eax
call fcn.00406cf8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407022
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406468
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040704a
pop ebx
jmp 0x406476
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408a61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42edd0]
jne 0x408a6b
repz ret
jmp fcn.0040decc
Function at 0x4130a6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42edd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ac9d
and dword [ebp - 0x14], 0
cmp dword [0x4313d4], 0
mov dword [ebp - 0x18], eax
jne 0x413159
push 0x404070
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413201
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404064
push ebx
call edi
test eax, eax
je 0x413201
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404054
push ebx
mov dword [0x4313d4], eax
call edi
push eax
call esi
push 0x404040
push ebx
mov dword [0x4313d8], eax
call edi
push eax
call esi
push 0x404024
push ebx
mov dword [0x4313dc], eax
call edi
push eax
call esi
mov dword [0x4313e4], eax
test eax, eax
je 0x413159
push 0x40400c
push ebx
call edi
push eax
call esi
mov dword [0x4313e0], eax
mov eax, dword [0x4313e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4131b2
cmp dword [0x4313e4], ecx
je 0x4131b2
push eax
call esi
push dword [0x4313e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4131b2
test ebx, ebx
je 0x4131b2
call edi
test eax, eax
je 0x4131a9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4131a9
test byte [ebp - 8], 1
jne 0x4131b2
or dword [ebp + 0x10], 0x200000
jmp 0x4131e5
mov eax, dword [0x4313d8]
cmp eax, dword [ebp - 0x18]
je 0x4131e5
push eax
call esi
test eax, eax
je 0x4131e5
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4131e5
mov eax, dword [0x4313dc]
cmp eax, dword [ebp - 0x18]
je 0x4131e5
push eax
call esi
test eax, eax
je 0x4131e5
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4313d4]
call esi
test eax, eax
je 0x413201
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413203
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408a61
leave
ret