joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4121a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4121a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x412dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00412f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00412f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00412eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00412f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00412ecb
push ecx
push dword [ebp + 8]
call fcn.00412f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00412f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00412ecb
push ecx
push dword [ebp + 8]
call fcn.00412f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00412f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00412ecb
push ecx
push dword [ebp + 8]
call fcn.00412f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00412f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00412ecb
cmp ecx, 0x2b
jne 0x412e0f
leave
ret 0xc

Function at 0x4144b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x414544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x94b0
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4145d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x94b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x94b0
call fcn.004143fa
push 0x94b0
push dword [ebp + 0xc]
call fcn.004121a8
test eax, eax
jne 0x4145b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x94b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004145dd
test eax, eax
je 0x4145d6
jmp 0x414574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4145d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x41460b
Capabilities:
Terminate process

Disassembly:
call fcn.00414618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
push ebx
push ebp
push edi
xor edi, edi
mov ebx, edx
mov ebp, ecx
cmp dword [0x10005018], edi
jne 0x10001045
push esi
mov esi, edi
push 8
mov ecx, esi
pop edx
test cl, 1
mov eax, 0xedb88320
cmovne eax, edi
shr ecx, 1
xor ecx, eax
sub edx, 1
jne 0x1000101a
xor ecx, 0xff000000
mov dword [esi*4 + 0x10005018], ecx
inc esi
cmp esi, 0x100
jb 0x10001015
pop esi
test ebx, ebx
je 0x10001069
mov edx, dword [esp + 0x14]
movzx ecx, byte [edi + ebp]
movzx eax, byte [edx]
xor ecx, eax
mov eax, dword [edx]
shr eax, 8
xor eax, dword [ecx*4 + 0x10005018]
inc edi
mov dword [edx], eax
cmp edi, ebx
jb 0x1000104d
pop edi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100013e4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 4
pop ebp
lea edi, [edx + 3]
mov ebx, ebp
lea esi, [ecx + 1]
sub edx, ecx
mov al, byte [edi - 3]
mov byte [esi - 1], al
mov al, byte [edx + esi]
mov byte [esi], al
mov al, byte [edi - 1]
mov byte [esi + 1], al
mov al, byte [edi]
add edi, ebp
mov byte [esi + 2], al
add esi, ebp
sub ebx, 1
jne 0x100013f6
mov ebx, ebp
lea edx, [ecx + 0xd]
mov ah, byte [edx - 1]
mov al, byte [edx]
mov cl, byte [edx + 1]
mov ch, byte [edx + 2]
mov byte [esp + 0x13], ah
mov byte [esp + 0x12], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], ch
test bl, 3
jne 0x10001483
movzx ecx, al
movzx eax, byte [esp + 0x10]
mov al, byte [eax + str.cw]
mov byte [esp + 0x12], al
movzx eax, byte [esp + 0x11]
mov al, byte [eax + str.cw]
mov byte [esp + 0x10], al
movzx eax, byte [esp + 0x13]
mov al, byte [eax + str.cw]
mov byte [esp + 0x11], al
mov eax, ebx
shr eax, 2
mov ah, byte [eax + 0x10004250]
xor ah, byte [ecx + str.cw]
mov cl, byte [esp + 0x10]
mov ch, byte [esp + 0x11]
mov al, byte [edx - 0xd]
xor al, ah
mov byte [edx + 3], al
mov al, byte [edx - 0xc]
xor al, byte [esp + 0x12]
mov byte [edx + 4], al
mov al, byte [edx - 0xb]
xor al, cl
mov byte [edx + 5], al
mov al, byte [edx - 0xa]
xor al, ch
inc ebx
mov byte [edx + 6], al
add edx, ebp
cmp ebx, 0x2c
jb 0x1000141a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100014b7
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
movzx ecx, cl
shl ecx, 4
add ecx, dword [esp + 0xc]
push 4
pop edi
push 4
pop esi
mov al, byte [ecx]
xor byte [edx], al
inc ecx
inc edx
sub esi, 1
jne 0x100014c9
sub edi, 1
jne 0x100014c6
pop edi
pop esi
ret
Function at 0x100014dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
lea esi, [ecx + 2]
pop edi
mov bh, byte [esi + 1]
mov al, byte [esi - 2]
mov bl, bh
mov ch, byte [esi]
mov cl, al
mov dl, byte [esi - 1]
xor bl, ch
mov byte [ebp - 1], al
xor cl, dl
mov dh, bl
xor dh, al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
xor dh, dl
imul eax, eax, 0x1b
xor al, cl
mov cl, dl
xor al, byte [ebp - 1]
xor cl, ch
xor al, dh
mov byte [esi - 2], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
mov cl, byte [ebp - 1]
xor al, dl
xor cl, bh
xor al, dh
mov byte [esi - 1], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
xor al, ch
xor al, dh
mov byte [esi], al
mov al, cl
shr al, 7
lea esi, [esi + 4]
movzx eax, al
add cl, cl
imul eax, eax, 0x1b
xor al, cl
xor al, bh
xor al, dh
mov byte [esi - 3], al
sub edi, 1
jne 0x100014e9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100027ec
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
test esi, esi
je 0x1000284f
xor ecx, ecx
lea eax, [esi + 0x10000]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002cce
mov ebp, eax
pop ecx
test ebp, ebp
je 0x1000284f
lea eax, [esi + esi]
push eax
call fcn.10002cce
mov ecx, dword [esp + 0x2c]
mov ebx, eax
push ebp
push esi
mov edx, ebx
mov dword [esp + 0x20], ebx
call fcn.10001102
push ebp
mov edi, eax
call fcn.10002cde
add esp, 0x10
mov eax, dword [esp + 0x10]
add eax, 0x20
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, edi
and ecx, 0x8000000f
jns 0x10002870
dec ecx
or ecx, 0xfffffff0
inc ecx
push 0x10
pop edx
mov ebp, edx
sub ebp, ecx
mov eax, ebp
cmove eax, edx
add eax, edi
mov dword [esp + 0x2c], eax
add eax, 0x14
push eax
mov dword [esp + 0x1c], eax
call fcn.10002ff4
mov esi, eax
mov dword [esp + 0x2c], esi
pop ecx
test esi, esi
je 0x1000299a
mov dword [esi + 0x10], 1
test ebx, ebx
je 0x100028bb
test edi, edi
jle 0x100028bb
push edi
lea eax, [esi + 0x14]
push ebx
push eax
call fcn.10003006
add esp, 0xc
test ebp, ebp
jne 0x100028cf
add edi, 0x14
mov eax, 0x10101010
add edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x100028df
push ebp
lea eax, [esi + 0x14]
add eax, edi
push ebp
push eax
call fcn.1000302a
add esp, 0xc
mov edi, dword [esp + 0x10]
lea ebp, [esi + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, ebp
mov dword [esi + 0xc], edx
mov eax, dword [edi + 8]
mov dword [esi], eax
inc eax
mov dword [edi + 8], eax
lea eax, [esi + 4]
and dword [eax], 0
push eax
call section..text
mov eax, dword [esp + 0x28]
mov dword [esi + 8], eax
lea eax, [edi + 0x34]
push 0x10
push eax
lea eax, [edi + 0xf4]
push eax
call fcn.10003006
mov eax, dword [esi + 0xc]
lea ecx, [edi + 0x44]
mov dword [esp + 0x3c], ecx
add esp, 0x10
add ecx, 0xb0
mov dword [esp + 0x24], ecx
mov edx, ecx
test eax, eax
je 0x1000297a
mov ebx, dword [esp + 0x2c]
lea edi, [eax - 1]
shr edi, 4
inc edi
push 0x10
mov ecx, ebp
sub edx, ebp
pop esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x1000294c
mov edx, ebx
mov ecx, ebp
call fcn.1000176f
mov edx, ebp
add ebp, 0x10
sub edi, 1
jne 0x10002945
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push 0x10
push edx
push ecx
call fcn.10003006
add esp, 0xc
lea ecx, [edi + 0x18]
push dword [esp + 0x18]
push esi
call fcn.1000198d
push esi
call fcn.10002fe2
pop ecx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x100029af
push ebx
call fcn.10002cde
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x425235
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004251b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4253a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4253a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x425359
jg 0x425291
test eax, eax
je 0x42534f
push 1
push 0x1000
call fcn.0041bc45
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4252b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x425346
push 0x8000
push ebx
call fcn.00417745
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4252dd
jg 0x4252d8
cmp ecx, 0x1000
jb 0x4252dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a496
add esp, 0x10
cmp eax, 0xffffffff
je 0x425322
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4252d8
jl 0x425309
test ecx, ecx
jne 0x4252ca
push dword [ebp - 0xc]
push ebx
call fcn.00417745
push esi
call fcn.00418223
add esp, 0xc
xor ebx, ebx
jmp 0x4253b2
cmp byte [edi + 0x24], 0
je 0x425339
cmp dword [edi + 0x20], 5
jne 0x425339
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x425344
mov ebx, dword [edi + 0x18]
jmp 0x425346
xor ebx, ebx
push esi
call fcn.00418223
pop ecx
jmp 0x4253b2
test ecx, ecx
jg 0x42531b
jl 0x425359
test eax, eax
jae 0x42531b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041995a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x425379
cmp byte [edi + 0x1c], 0
je 0x42531b
jmp 0x4253aa
push ebx
call fcn.00415d8a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42531b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4253b2
cmp byte [edi + 0x1c], 0
je 0x4253af
mov ebx, dword [edi + 0x18]
jmp 0x4253b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041995a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42704d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42704d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41208a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b1064
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41210a
arpl word [edx + esi], si
mov cl, 0xa5
cdq
invalid
invalid
Function at 0x402570
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x457534]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40259b
xor al, al
jmp 0x402615
lea ecx, [ebp - 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4025be
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x402615
mov dword [ebp - 0x1c], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ebp + ecx - 0x18], edx
mov dword [ebp + ecx - 0x14], eax
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 0x10], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402613
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x402615
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042af4d
mov esp, ebp
pop ebp
ret
Function at 0x402bc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402be4
xor eax, eax
jmp 0x402c82
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402bfe
xor eax, eax
jmp 0x402c82
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], 0
jmp 0x402c21
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0xc], edx
jge 0x402c80
push 0x442724
mov eax, dword [ebp - 4]
push eax
call fcn.0042fd9d
add esp, 8
test eax, eax
jne 0x402c75
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
add eax, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov dword [edx], ecx
mov eax, 1
jmp 0x402c82
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
jmp 0x402c18
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402fe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fa2d
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x457534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
je 0x4030a9
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40309c
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp + 8]
call fcn.00402380
test eax, eax
jne 0x403081
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x248], eax
jmp 0x40309c
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x244], eax
jmp 0x403057
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ce0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042af4d
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4031bd
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x457534]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x403463
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4034a6
mov eax, dword [ebp - 0x10]
jmp 0x40350c
cmp dword [ebp - 8], 1
je 0x4034b9
cmp dword [ebp - 8], 2
je 0x4034b9
mov eax, 0xd
jmp 0x40350c
cmp dword [ebp + 0xc], 0
je 0x403500
cmp dword [ebp - 0xc], 0
je 0x4034ef
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4034e6
mov edx, dword [ebp - 0xc]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4034ed
mov eax, 0xd
jmp 0x40350c
jmp 0x403500
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 0xc]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042af4d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4038a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4038c4
xor eax, eax
jmp 0x403944
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4038db
xor eax, eax
jmp 0x403944
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403927
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403927
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4038fe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403933
xor eax, eax
jmp 0x403944
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x403941
xor eax, eax
jmp 0x403944
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x407501
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x40752c
cmp dword [edi + 0x80], 0
jne 0x40752c
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0040c1ef
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00407759
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x409d6f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x409dc2
push esi
push dword [ebp + 8]
call fcn.00409f58
mov edi, eax
test edi, edi
je 0x409dbd
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409dbd
mov eax, dword [ebp - 8]
jmp 0x409dd4
mov eax, dword [ebp + 0x10]
jmp 0x409dd4
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc