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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0xc], 0
push esi
mov byte [ebp - 4], dl
mov esi, ecx
je 0x100408cb
cmp byte [ebp + 8], 0
je 0x100408c4
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x100408fb
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x100408fb
mov eax, dword [ebp + 0x14]
inc dword [eax]
jmp 0x100408fb
test dl, dl
je 0x100408de
push 0
push 0xe7a
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x100408fb
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
jmp 0x100408f6
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x36b16b47
inc dword [edx]
cmp dword [edx], 2
jl 0x100408e9
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100417ef
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x10041806
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x10041828
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x10077d34
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x100780c0
jl 0x10041836
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x10078364
jl 0x10041876
mov ecx, dword [0x100790b0]
xor ecx, dword [0x10077d34]
and ecx, edi
xor ecx, dword [0x100790b0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x10077d30], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10078364]
mov dword [0x100786f0], eax
pop esi
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x59427ca6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
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
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7a7b0a42
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x405e50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
cmpsb byte [esi], byte es:[edi]
in al, dx
push ecx
pop esi
inc ebp
or al, 0x53
xchg esi, eax
pop ds
adc byte [0x7d57db85], cl
sbb byte [ebx + 1], bh
cmp word [eax], 0
jne 0x405ed8
lea eax, [ebx + 0x74000278]
push es
inc ebx
add eax, 0x23
dec eax
in eax, dx
cmpsd dword [esi], dword es:[edi]
jo 0x405e88
add eax, 2
sar eax, 1
pop edi
inc ebp
adc byte [ebp - 0x5ffb6253], cl
add byte [eax], al
push eax
call dword [0x58b2c18f]
mov al, byte [0xff500000]
adc eax, 0x58b2c18f
mov edi, eax
mov eax, dword [ebp + 0x10]
sal byte [eax + eax*2 + 1], 0x56
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0xffffffae
lea edi, [esp + edi*8 + 0x558d0789]
adc byte [ebp + 0x50], dl
test byte [ebp + 0x60], al
mov cl, 0x50
call fcn.0040abf0
mov ebx, dword [esi + 0x2b078bfc]
push esi
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
adc eax, sym.imp.WS2_32.dll_WSASend
mov ecx, 1
add esp, 0xfffffff9
cmp ebx, ecx
mov dword [edi], eax
jle 0x405ec6
in eax, dx
lea ebp, [edi + edi*8 - 0x76fb3273]
dec ebp
or al, 0xab
mov edx, dword [eax - 4]
xor edx, eax
lcall 0xca8a, 0x598b1089
inc esi
test dl, dl
mov dword [ebx + 0x558bf575], ebx
or al, 0xdc
shl dh, 0x4a
mov ecx, ebx
or al, 0x75
loope 0x405f5e
add dword [eax + 0x8f04c7], esi
add byte [eax], al
add byte [ecx - 0x3c74a0c8], cl
lea ebx, [ebx - 0x75]
in eax, 0x5d
ret
xor ebp, eax
fsub st(1), st(0)
jmp [ebp - 0x7b]

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
adc dword [ebx - 0x2efcaf29], ecx
mov ecx, dword [esi + 0x54]
adc ecx, 0
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], ecx
mov edx, ebx
adc al, 0x8b
push ebp
adc byte [ebx + 0x5e11895f], ch
pop ebp
ret
push ebp
adc esp, ebp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x2c]
test al, al
je 0x9ab3a1
jne 0x40b2ab
dec eax
xor esp, dword [esi]
test al, 0x83
stc
add dword [edi - 0x77], edx
inc ebp
cld
mov dword [ebp + 0x70], eax
jne 0x40b395
mov edi, dword [esi + 0x3c]
cmp edi, eax
nop dword [ecx + 0x59000000]
invalid
add eax, 0x6d994589
or al, byte [edx - 0x29]
add eax, 0xafc6f
mov dword [ebp - 0x2f], eax
inc ecx
inc ebp
cld
jns 0x40b3ce
push eax
mov ecx, dword [esi + 0x54]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esi - 0x22], edx
or dword [edi], 0
test eax, eax
mov dword [esi + 0x54], ecx
jne 0x40b395
add byte [esi + 0x3c], 0
salc
add byte [eax], al
mov eax, dword [ebp + 0x75]
pop edi
pop ebx
pop esi
shl byte [ebp + 0x5d], 0xc2
add al, 0
jge 0x40b363
cmpsd dword [esi], dword es:[edi]
push 0xffffffffffffffe5
pop ebp
inc eax
add al, 0
nop
nop
nop
pop ecx
nop
nop
push ebp
mov ebp, esp
sub dword [ebp - 0x63], eax
lea ecx, [ebx + 2]
mov eax, 0x55550556
test dword [ecx], 0xe98515f9
pop ds
add edx, ecx
lea eax, [edx*4 - 0x27fffff6]
pop ebp
ret 4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
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
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x480035eb
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
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
pop eax
nop
mov esi, 0x72a73dc3
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x401275
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401a81
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00404c07
add esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0xc]
cmp ecx, dword [eax]
je 0x40137a
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x18]
cmp ax, word [ecx]
jne 0x401351
cmp word [ebp - 4], 0
je 0x401348
mov edx, dword [ebp - 0x14]
mov ax, word [edx + 2]
mov word [ebp - 6], ax
mov ecx, dword [ebp - 0x18]
cmp ax, word [ecx + 2]
jne 0x401351
add dword [ebp - 0x14], 4
add dword [ebp - 0x18], 4
cmp word [ebp - 6], 0
jne 0x40130c
mov dword [ebp - 0x28], 0
jmp 0x401359
sbb edx, edx
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40136d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
jmp 0x40137c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
jmp 0x4012f0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx + 0x78]
push ecx
call fcn.00401380
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00401380
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
push ecx
call fcn.00401380
add esp, 8
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00401380
add esp, 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], 0
jmp 0x40141b
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x18]
jae 0x4014c6
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00401380
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x14]
cmp al, byte [ecx]
jne 0x40148c
cmp byte [ebp - 1], 0
je 0x401483
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 1]
mov byte [ebp - 2], al
mov ecx, dword [ebp - 0x14]
cmp al, byte [ecx + 1]
jne 0x40148c
add dword [ebp - 0x10], 2
add dword [ebp - 0x14], 2
cmp byte [ebp - 2], 0
jne 0x40144f
mov dword [ebp - 0x18], 0
jmp 0x401494
sbb edx, edx
or edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4014c1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x4014c8
jmp 0x401412
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4021c7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402206
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402206
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402206
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402206
cmp dword [ecx + 0x74], 0xe
jbe 0x402206
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40825b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4082f8
push ebx
push esi
call fcn.00408224
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004081b8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4082a5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4082f7
push edi
push eax
call fcn.00406c80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4082c5
call fcn.00406ddb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4082f6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004081b8
add esp, 0x20
test eax, eax
jne 0x4082e4
push edi
call fcn.00406ddb
jmp 0x4082ec
push ebx
call fcn.00406ddb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x409507
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411008
push 0x411000
push str.FlsAlloc
push 0x1f
call fcn.004093c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40953b
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f114]
call esi
jmp 0x409541
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409585
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411018
push 0x411010
push str.FlsGetValue
push 0x21
call fcn.004093c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4095bc
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4095c4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411020
push 0x411018
push str.FlsSetValue
push 0x22
call fcn.004093c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4095fe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e7ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e7ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000117c
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.HardwareDescriptionSystemCentralProcessor0
push 0x80000002
mov dword [esi], edi
mov dword [esi + 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100011df
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push str.MHz
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100011d6
mov eax, dword [ebp - 0xc]
shl eax, 0x14
mov dword [esi], eax
mov dword [esi + 4], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 4], edi
ja 0x100011e8
cmp dword [esi], edi
jbe 0x100011ed
xor eax, eax
inc eax
jmp 0x100011ef
xor eax, eax
pop edi
leave
ret

Function at 0x100011f2
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0
movzx edx, byte [eax + 0x100]
push ebx
movzx ebx, byte [eax + 0x101]
jbe 0x1000124d
push esi
push edi
mov esi, 0xff
dec dword [ebp + 0xc]
inc edx
and edx, esi
movzx ecx, byte [edx + eax]
lea edi, [ecx + ebx]
and edi, esi
mov dword [ebp - 4], edi
add edi, eax
movzx ebx, byte [edi]
mov byte [edx + eax], bl
add ebx, ecx
and ebx, esi
mov byte [edi], cl
mov cl, byte [ebx + eax]
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
xor byte [edi], cl
inc edi
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], edi
ja 0x10001213
pop edi
pop esi
mov byte [eax + 0x101], bl
mov byte [eax + 0x100], dl
pop ebx
leave
ret
Function at 0x10002073
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10012038]
jne 0x1000207d
repz ret
jmp fcn.100029c2

Function at 0x100058ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10012038]
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.10003a77
and dword [ebp - 0x14], 0
cmp dword [0x10013e50], 0
mov dword [ebp - 0x18], eax
jne 0x1000595e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10005a06
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10005a06
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1000e1b0
push ebx
mov dword [0x10013e50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10013e54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10013e58], eax
call edi
push eax
call esi
mov dword [0x10013e60], eax
test eax, eax
je 0x1000595e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10013e5c], eax
mov eax, dword [0x10013e5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100059b7
cmp dword [0x10013e60], ecx
je 0x100059b7
push eax
call esi
push dword [0x10013e60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100059b7
test ebx, ebx
je 0x100059b7
call edi
test eax, eax
je 0x100059ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100059ae
test byte [ebp - 8], 1
jne 0x100059b7
or dword [ebp + 0x10], 0x200000
jmp 0x100059ea
mov eax, dword [0x10013e54]
cmp eax, dword [ebp - 0x18]
je 0x100059ea
push eax
call esi
test eax, eax
je 0x100059ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100059ea
mov eax, dword [0x10013e58]
cmp eax, dword [ebp - 0x18]
je 0x100059ea
push eax
call esi
test eax, eax
je 0x100059ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10013e50]
call esi
test eax, eax
je 0x10005a06
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10005a08
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002073
leave
ret
Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret