joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507bf6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x507c22
mov eax, 0x67a5f8
push eax
push 1
mov ebx, 0x194
call fcn.005fed30
add esp, 0x10
mov dword [ebp - 4], eax
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x507c66
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
mov eax, dword [ebp - 8]
jmp 0x507c7c
mov esp, ebp
pop ebp
ret 4

Function at 0x5ff580
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x5ff59e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x5ff593
pop esi
ret

Function at 0x5ff9b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x5ffa19
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.005fe990
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x5ffd90
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0060dae3
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x5ffdfa
push esi
lea edi, [eax + 0x400]
call fcn.0060db0c
push edi
call fcn.0060dae3
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x5ffdca
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5ffe16
push ecx
push esi
call fcn.00600b80
add esp, 8
mov ebx, eax
push esi
call fcn.0060db0c
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5ffe30
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x5ffe5b
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
jne 0x5ffe83
mov byte [esp + 0xc], al
jmp 0x5ffe83
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x5ffea1
mov byte [eax], 0x5c
mov esi, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x5ffeb3
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005fe990
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x5fff30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x5fffc2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x5fffb4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x5fffac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x5fff75
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x600160
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x6001b0
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x6001a5
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00600b80
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x6001c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x600243
push ebp
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x600243
push ebx
push edi
call dword [sym.imp.user32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x600236
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x627bbd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x627bf5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00625c71
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00625c49
jmp 0x627c01
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6292af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6292f1
call fcn.0062ed5f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6292f1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6292e8
xor eax, eax
jmp 0x6292f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006292ff
pop edi
pop esi
pop ebx
ret 4
Function at 0x62f28f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x62f2bd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x62f2db
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0062f1f5
jmp 0x62f2db
mov eax, dword [esi + 0x14]
test eax, eax
je 0x62f2db
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0062f1f5
test edi, edi
mov eax, edi
jne 0x62f2c5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
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
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3e7f02f7
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2cc02cad
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4131e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
push eax
push esi
push edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor edx, edx
mov cl, byte [edx + eax]
mov byte [ebp + edx - 8], cl
mov cl, byte [edx + eax]
mov byte [edx + esi], cl
inc edx
cmp edx, 8
jl reloc.gdi32.dll_SetWorldTransform
push esi
push eax
call fcn.00412d35
xor eax, eax
lea edx, [eax + esi]
mov cl, byte [eax + edi]
xor byte [edx], cl
inc eax
cmp eax, 8
jl reloc.gdi32.dll_SetWorldTransform
xor eax, eax
mov dl, byte [ebp + eax - 8]
mov byte [eax + edi], dl
inc eax
cmp eax, 8
jl reloc.gdi32.dll_SetWorldTransform
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403b90
Capabilities:
Encode data using xor

Disassembly:
and ecx, dword [ebx]
xchg ecx, eax
int3
arpl word ss:[eax], bp
or ecx, dword [edi + 0x31fe688e]
jo 0x403a93
xor dword [eax - 0x1b], esi
dec ebp
in eax, 0x44
dec esp
mov ecx, 0xb621aa2
inc ecx
mov al, 0x5d
jb 0x403aab
and byte [edi + 0x3eca099f], 0x46
add ah, byte [ecx + 0x53]
pushal
adc al, byte [edx]
cmpsb byte [esi], byte es:[edi]
arpl word [ecx], ax
push edx
inc ecx
sbb al, 0x16
fild qword [esi + eax*2]
cmp eax, 0xcb97b4d5
movsb byte es:[edi], byte [esi]
sbb esp, dword [esi + 0x56f38b]
rol byte [edi], cl
stosb byte es:[edi], al
shr dword [edx - 0x20f6283f], cl
mov eax, dword [0xf872c8e1]
lodsb al, byte [esi]
push edi
into
add esp, eax
pop es
and al, 0x55
neg byte [esi + 0x227ea872]
jb 0x403aa2
jle 0x403b1e
loop 0x403b60
adc ebx, esi
ret 0x7c50
dec esp
cli
pop ebx
popal
invalid
xlatb
jge 0x403b38
loop 0x403b1b
loop 0x403b3e
jmp [ebx]
sub ebx, dword [edx - 0x61]
adc ch, byte [edx]
mov edx, 0x68ac17ef
dec edi
mov ch, 0xad
outsd dx, dword [esi]
adc eax, 0xfd94d0ca
loop 0x403b53
push dword [esi + 0x6f5d247b]
mov dh, 0x7b
and al, 0x5d
jnp 0x403b7b
pop ebp
outsd dx, dword [esi]
dec edx
pop edx
jo 0x403af8
mov fs, word [edi - 0x225752dd]
lodsd eax, dword [esi]
test al, 0xdd
push esp
lodsd eax, dword [esi]
mov ebx, 0x575fd560
xor eax, edi
push ds
xchg ebx, eax
mov esp, 0x7ed2be95
aad 0xfe
mov eax, dword [ebx - 0x441a792c]
clc
inc ebp
pop esi
or dword [edi], edi
aas
mov ebx, 0x95e45f8
aas
daa
xchg dl, dh
xchg ebx, eax
lodsb al, byte [esi]
push esp
xchg edi, eax
sahf
stc
dec edi
jnp 0x403b38
sbb eax, 0x49002e55
mov dword [ebx], ecx
out 0x23, eax
jg 0x403b55
jl 0x403c17
dec edx
ja 0x403b9b
jae 0x403b61
and eax, 0xf8046386
arpl word [eax - 0x759ab011], sp
sub dword [eax - 0x59], ecx
int3
bound esi, qword [ecx + 0x26f959b9]
ljmp 0x5ceb
Function at 0x5003850
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x5003897
cmp edx, 0x10
jl 0x5003883
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x5003870
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x5003897
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x500388f
and edx, 3
cmp edx, 3
jne 0x50038ab
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x50038b0
cmp edx, 2
jne 0x50038bc
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x50038c1
cmp edx, 1
jne 0x50038c7
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x289736d6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x8293a68
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x401020
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40104e
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401046
cmp al, 0x22
je 0x401046
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40103a
cmp byte [esi], 0x22
jne 0x40105a
inc esi
jmp 0x40105a
cmp al, 0x20
jbe 0x40105a
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
ja 0x401052
mov al, byte [esi]
test al, al
je 0x40106c
cmp al, 0x20
ja 0x40106c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401060
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x401091
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x401096
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10350f7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1007478
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103514f
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10074b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1035142
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1035151
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x3ec70569
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x65297aae
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [0x4170b0]
push ebp
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [0x4170b8]
push esi
mov esi, dword [0x4170bc]
push edi
mov edi, dword [esp + 0x28]
add esi, eax
mov eax, dword [0x4170b4]
mov dword [esp + 0x28], 0x20
add esi, eax
add esi, ebx
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x14], ebx
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], ebx
mov ebx, dword [edi + 4]
mov edi, dword [edi]
mov eax, esi
shl eax, 5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edi, edx
shl edi, 4
add edi, ebx
mov ebx, edx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
mov ebx, dword [esp + 0x18]
sub ecx, edi
mov edi, ecx
shl edi, 4
add edi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
sub eax, esi
sub edx, edi
mov edi, dword [esp + 0x28]
dec edi
mov dword [esp + 0x28], edi
jne 0x401188
mov eax, dword [0x4170b4]
pop edi
xor eax, edx
mov edx, dword [esp + 0x20]
pop esi
pop ebp
mov dword [edx], eax
mov eax, dword [0x4170b4]
xor eax, ecx
pop ebx
mov dword [edx + 4], eax
add esp, 0x10
ret

Function at 0x4014e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov ecx, 0x41
mov dword [esp + 0xc], eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x14], eax
push ecx
push str.__s_
push edx
call fcn.00402cde
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401582
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401577
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401582
push eax
call esi
pop edi
pop esi
add esp, 0x158
ret 4
Function at 0x401590
Capabilities:
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x44
mov al, byte [0x41b4cc]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
xor ebp, ebp
stosw word es:[edi], ax
push ecx
push 0x4171a8
push edx
mov dword [esp + 0x1c], ebp
stosb byte es:[edi], al
call fcn.00402cde
add esp, 0xc
call fcn.00410215
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push 0xa
push ecx
mov edx, dword [eax + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
jne 0x4015f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
call fcn.00410215
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
call fcn.00410215
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x401630
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x401649
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
mov esi, dword [esp + 0x58]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016ae
test esi, esi
je 0x4016ae
push ebx
push edi
call fcn.00401200
add esp, 8
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4016a7
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
Function at 0x4017a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
mov al, byte [0x41b4cc]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11]
push 0x76
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x4171a8
push ecx
xor ebp, ebp
stosb byte es:[edi], al
call fcn.00402cde
add esp, 0xc
call fcn.00410215
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push 0xa
push edx
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4017fd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.00410215
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
call fcn.00410215
mov eax, dword [eax + 4]
push esi
mov edx, dword [eax + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401831
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401846
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ebx
push esi
call fcn.00401200
add esp, 8
mov ecx, 0x30e
xor eax, eax
mov edi, 0x41a480
cmp ebx, 0xc38
rep stosd dword es:[edi], eax
jb 0x40187f
cmp dword [esi], 0x57504650
jne 0x40187f
mov ecx, 0x30e
mov edi, 0x41a480
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40
ret