joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40831d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4083c0
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x24]
test al, al
je 0x408382
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + 0x14], 0x2b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + 0x14], 0x7b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
mov byte [eax], 0xff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
inc eax
mov byte [eax], 0xd9
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x24], 0
mov al, 1
leave
ret

Function at 0x40912f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fwrite
cmp eax, 0x1000
je 0x409188
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + 0x14], 0x26
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0x1000
mov al, 1
leave
ret
Function at 0x409268
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edx, 0x1000
mov ecx, edx
sub ecx, eax
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4092d8
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fwrite
cmp eax, dword [ebp - 0xc]
je 0x4092d8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + 0x14], 0x26
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._fflush
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
and eax, 0x20
test eax, eax
je 0x409311
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + 0x14], 0x26
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
leave
ret
Function at 0x41b940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 8], 0x17
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x41b990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov ebx, eax
test ecx, ecx
jne 0x41b9a2
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
call sym._VirtualQuery_12
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov ecx, dword [ebp - 0x30]
test eax, eax
je 0x41ba5a
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x41ba0d
cmp eax, 0x40
je 0x41ba0d
lea eax, [ebp - 0xc]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
call sym._VirtualProtect_16
mov ecx, dword [ebp - 0x30]
sub esp, 0x10
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x41b99d
cmp eax, 0x40
je 0x41b99d
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._VirtualProtect_16
mov ebx, dword [ebp - 4]
sub esp, 0x10
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
Function at 0x403376
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4033a1
mov ecx, dword [0x429ab8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ef4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040347e
cmp eax, esi
jl 0x403478
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061f5
test eax, eax
je 0x403468
push dword [ebp + 8]
add dword [0x420ef4], 4
call fcn.0040347e
mov ebx, eax
cmp ebx, esi
jl 0x403476
cmp dword [ebp + 0x10], esi
jne 0x403444
cmp dword [ebp + 8], esi
jle 0x403476
mov esi, 0x414ef0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403406
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061f5
test eax, eax
je 0x403468
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406224
test eax, eax
je 0x403440
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ef4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033f5
jmp 0x403476
push 0xfffffffffffffffe
jmp 0x40346a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344f
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40346d
push 0xfffffffffffffffd
pop eax
jmp 0x403478
mov ebx, dword [ebp - 4]
add dword [0x420ef4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x404668
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4046a3
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40468a
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40469b
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4046a5
inc edi
add eax, 0x28
cmp edi, esi
jb 0x404680
xor eax, eax
pop edi
pop esi
ret

Function at 0x4065c9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x40660b
lea eax, [ebp - 0x714]
push eax
call fcn.00404638
invalid
call [ecx + 0x50]

Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4
Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5bd4652e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xd7c789e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4e0f6443
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section._RDATA
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x53497244
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x417104
Capabilities:
Encode data using xor

Disassembly:
jl 0x417149
in eax, dx
cmp eax, 0x3ded5c7c
jl 0x417141
in eax, dx
cmp eax, 0x3ded4c7c
jl 0x417179
invalid
je 0x4170f3
in eax, dx
cmp eax, 0xca30f77c
nop
cmc
xor bl, cl
nop
div dword [eax]
retf 0xf594
jo 0x41710c
jl 0x4171c1
jl 0x4171c3
jg 0x4171b5
jg 0x4171af
jnp 0x41719d
rol dword [eax], 0xed
cmp eax, 0x107bf77c
in eax, dx
cmp eax, 0x3dede87c
jl 0x417141
in al, 0xed
in eax, dx
cmp eax, 0x3dedc87c
jl 0x41715c
xor dword [edx + ebx + 0x1b], esi
mov ch, 0xbf
int3
sbb esi, dword [ebp + 0x72f6ccbf]
hlt
jae 0x417168
xor dword [edx + ebx + 0x1b], esi
sbb bl, byte [ebx]
mov ch, 0xbf
int3
jb 0x41716f
jae 0x417173
xor bh, byte [ebp - 0xc]
xor edi, dword [ebp - 9]
xor dword [edx + ebx + 0x1b], esi
mov ch, 0xbf
leave
xor eax, 0xf472f67c
jae 0x417187
xor bh, byte [ebp - 0xc]
xor edi, dword [ebp - 0xa]
xor bh, byte [esi - 0xc]
xor edi, dword [esi - 9]
xor dword [edx + ebx + 0x1b], esi
mov ch, 0xbf
int3
arpl word [ebx + 0x7c7c7c7f], si
loope 0x417204
jl 0x41722d
jl 0x417194
push eax
mov ebp, 0x9eff7e95
xchg ebp, eax
jle 0x4171b7
call [esi + 0x7465ff7f]
out dx, al
sahf
jg 0x4171ba
jmp dword [ebp + 0x74]
je 0x4171ac
dec ecx
jns 0x417230
sar dword [eax + 0x7b], 1
push eax
jnp 0x417215
shr dword [esi + ebp*8 + 0x3d], 0x7c
idiv dword [ebx + 0x63]
test dword [ebx + 0x50], edi
leave
fsub st(6), st(0)
cmp eax, 0x7c35c97c
div dword [ebx + 0x7c7c7fa6]
jl 0x4171df
jmp dword [ebp + 0x70]
jo 0x4171d1
dec eax
call [edi + edi*2 + 0x507bb457]
int1
pushal
in eax, dx
cmp eax, 0xc9507b7c
push eax
leave
insb byte es:[edi], dx
out dx, al
cmp eax, 0xee70cc7c
cmp eax, 0x3dee547c
jl 0x41720d
out dx, al
cmp eax, 0x7f32f67c
div byte [edx]
jg 0x417267
pop edi
invalid
push 0x7d
mov ebp, 0x6bff7e95
jge 0x417215
jmp dword [ebp + 0x74]
je 0x417207
scasb al, byte es:[edi]
jns 0x41728b
sar dword [eax + 0x7b], 1
js 0x41729a
push eax
shr dword [esi + ebp*8 + 0x3d], 0x7c
leave
xor eax, 0x7f32f67c
pop edi
invalid
hlt
div byte [edx]
jle 0x4171f1
xchg ebp, eax
jle 0x41722b
xor edi, dword [esi - 1]
push 0x7e
jmp [ebx + 0x7e]
outsd dx, dword [esi]
sar dword [eax + 0x7b], 1
push eax
shr dword [esi + ebp*8 + 0x3d], 0x7c
int3
jmp [edx + 0x7f]
jl 0x41722d
out dx, al
cmp eax, 0x3deeb87c
jl 0x417245
out dx, al
cmp eax, 0x3dee887c
jl 0x41721d
cmp eax, 0x3dee807c
sub dh, 0x3d
out dx, al
cmp eax, 0x3dee937c
jl 0x41729c
jl 0x417234
out dx, al
cmp eax, 0xca30f77c
xor dl, cl
pop eax
cmc
xor bl, cl
pop eax
div dword [eax]
retf 0xf544
Function at 0x40f145
Capabilities:
Encode data using xor

Disassembly:
mov dh, dl
mov ecx, 0x12b2
xor byte [eax], dl
inc eax
add dl, dh
loop 0x40f14c
ret

Function at 0x403a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x403b63
mov dword [ebp + 0x28], edi
test eax, eax
je 0x403b30
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403b1a
mov edi, eax
add ecx, 0x10
dec edx
jne 0x403b12
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x403b33
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404230
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x403b59
push eax
call fcn.004042c6
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.004042c6
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404230
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x403baf
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.0040438d
jmp 0x403bb1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x403be0
test eax, eax
je 0x403bdd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.0040432a
push ebx
call fcn.004042c6
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004036d0
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 0x24

Function at 0x4042c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [eax], al
dec eax
mov dword [esp + 0x48], ecx
cmp dword [ecx + 0x24], 0
jne 0x4042db
dec eax
mov esi, dword [ecx + 0x50]
xor edi, edi
jmp 0x4042f9
inc ecx
mov eax, 0x1dd
dec eax
lea edx, [0x15970]
dec eax
lea ecx, [0x159c5]
call dword [0x15263]
xor edi, edi
mov esi, edi
dec eax
mov dword [esp + 0x40], esi
dec ebp
mov edi, dword [esp + 0x18]
dec esp
mov dword [esp + 0x58], edi
inc ebp
mov esi, dword [esp + 8]
inc esp
mov dword [esp + 0x3c], esi
dec ebp
mov ebp, dword [esp + 0x110]
dec esp
mov dword [esp + 0x50], ebp
nop word [eax + eax]
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2959659b
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7c583440
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401090
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call esi
push eax
push str.__X:_X___s
push 0
push 0
call fcn.00401050
add eax, 0xa
push eax
call fcn.00401fb7
add esp, 0x1c
mov ebx, eax
push dword [ebp + 8]
call edi
push eax
call esi
push eax
push str.__X:_X___s
push ebx
call fcn.00401010
add esp, 0x14
call fcn.00401000
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
mov ecx, dword [edi]
push 0
push 0
push dword [edi + 4]
or ecx, 1
push ecx
call fcn.00405562
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
add eax, 0xa
push eax
call fcn.00401fb7
mov ecx, dword [edi]
add esp, 4
mov esi, eax
or ecx, 1
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
push 0xffffffffffffffff
push esi
push dword [edi + 4]
push ecx
call fcn.00405562
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
push esi
call fcn.00401fa9
push 1
push ebx
call fcn.00401fa9
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret