joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
mov ebx, edx
mov dword [esp + 0x14], ecx
push edi
mov dword [esp + 0x1c], ebx
mov esi, ecx
xor eax, eax
nop dword [eax]
mov byte [esp + eax + 0xc], al
inc eax
cmp eax, 8
jb 0x4ee020
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx]
xor eax, ecx
rol ecx, 3
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
xor eax, ecx
rol ecx, 3
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
xor eax, ecx
rol ecx, 3
xor ecx, dword [edx + 0xc]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x28], eax
xor edx, edx
nop
mov eax, ecx
and eax, 3
mov eax, dword [esp + eax*4 + 0x20]
add eax, ecx
sub ecx, 0x61c88647
mov dword [esp + edx*4 + 0x30], eax
mov eax, ecx
sar eax, 0xb
and eax, 3
mov eax, dword [esp + eax*4 + 0x20]
add eax, ecx
mov dword [esp + edx*4 + 0xb0], eax
inc edx
cmp edx, 0x20
jl 0x4ee060
cmp esi, ebx
jae 0x4ee1e2
nop dword [eax + eax]
mov ebx, dword [esp + 0xc]
xor edi, edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
nop
mov edx, eax
mov ecx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
add edx, eax
xor edx, dword [esp + edi*4 + 0x30]
add edx, ebx
mov esi, edx
mov ecx, edx
shl ecx, 4
shr esi, 5
xor esi, ecx
add esi, edx
xor esi, dword [esp + edi*4 + 0xb0]
add esi, eax
mov ecx, esi
mov eax, esi
shl eax, 4
shr ecx, 5
xor ecx, eax
add ecx, esi
xor ecx, dword [esp + edi*4 + 0x34]
add ecx, edx
mov edx, ecx
mov eax, ecx
shl eax, 4
shr edx, 5
xor edx, eax
add edx, ecx
xor edx, dword [esp + edi*4 + 0xb4]
add edx, esi
mov esi, edx
mov eax, edx
shl eax, 4
shr esi, 5
xor esi, eax
add esi, edx
xor esi, dword [esp + edi*4 + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x14]
mov edi, esi
mov eax, esi
shl eax, 4
shr edi, 5
xor edi, eax
add edi, esi
xor edi, dword [esp + ecx*4 + 0xb8]
add edi, edx
mov ebx, edi
mov eax, edi
shl eax, 4
shr ebx, 5
xor ebx, eax
add ebx, edi
xor ebx, dword [esp + ecx*4 + 0x3c]
add ebx, esi
mov eax, ebx
mov ecx, ebx
shr eax, 5
shl ecx, 4
xor eax, ecx
mov ecx, dword [esp + 0x14]
add eax, ebx
xor eax, dword [esp + ecx*4 + 0xbc]
add eax, edi
mov edi, ecx
add edi, 4
mov dword [esp + 0x14], edi
cmp edi, 0x20
jl 0x4ee0b0
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov bl, byte [esi]
mov byte [esp + 0xc], ch
mov dl, bl
xor dl, cl
mov dword [esp + 0x10], eax
movzx ecx, byte [esp + 0xe]
cmp byte [ebp + 0x10], 0
mov byte [esp + 0xd], cl
movzx ecx, byte [esp + 0xf]
mov byte [esp + 0xf], al
mov byte [esp + 0x10], ah
movzx eax, byte [esp + 0x12]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x13]
mov byte [esp + 0xe], cl
mov byte [esp + 0x12], al
movzx ecx, dl
movzx eax, bl
cmovne ecx, eax
mov byte [esi], dl
inc esi
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x1c]
jb 0x4ee0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ee3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
mov ebx, dword [eax + ecx + 0x78]
xor esi, esi
mov eax, dword [ebx + ecx + 0x24]
add ebx, ecx
mov dword [ebp - 8], edx
add eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x20]
add edx, ecx
add edi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0x18], esi
jbe 0x4ee445
nop dword [eax + eax]
movzx eax, word [eax + esi*2]
cmp eax, dword [ebx + 0x14]
jae 0x4ee43c
mov edi, dword [edi + esi*4]
mov eax, dword [edx + eax*4]
add edi, ecx
add eax, ecx
mov dword [ebp - 4], eax
xor eax, eax
mov cl, byte [edi]
test cl, cl
je 0x4ee421
mov edx, edi
rol eax, 3
lea edx, [edx + 1]
movsx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x4ee410
push dword [ebp + 8]
push dword [ebp - 4]
push eax
push edi
call dword [ebp - 8]
add esp, 0x10
test al, al
jne 0x4ee445
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x4ee3f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ef160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
xor eax, 0xadc0d959
mov dword [ebp - 0x1c], 0xaa7575b3
mov dword [ebp - 0x18], 0xf0a59521
mov dword [ebp - 0x14], 0x315b1289
mov dword [ebp - 0x10], 0x5985ddca
push esi
push edi
cmp eax, 0xadc0d958
jne 0x4ef378
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0xc0]
mov ecx, eax
xor ecx, 0xd81d49fb
lea esi, [eax + edx]
xor eax, eax
cmp ecx, 0xd81d49fb
cmove esi, eax
mov eax, esi
xor eax, 0xa323134
cmp eax, 0xa323134
je 0x4ef378
mov ebx, dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push 0
push 0xf67b7b8d
push eax
lea edx, [esi + 0x324]
mov dword [ebp - 0xc], ebx
lea ecx, [esi + 0xbc]
call section..gcode
mov eax, dword [ebx + 4]
add esp, 0xc
xor eax, 0x2ac9b34f
cmp eax, 0x2ac9b34f
je 0x4ef378
mov eax, dword fs:[0x18]
xor edx, edx
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 8]
mov eax, dword fs:[0x18]
lea edi, [ebx + 0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ecx + ebx + 0x14]
add eax, ecx
add edi, eax
movzx eax, word [ecx + ebx + 6]
xor ecx, ecx
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], eax
cmp cx, ax
jae 0x4ef281
nop dword [eax]
movzx eax, dx
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0xc]
lea edi, [edi + eax*8]
lea eax, [ecx + ebx]
cmp eax, entry1
ja 0x4ef275
mov eax, dword [edi + 0x10]
add eax, ecx
add eax, ebx
cmp eax, entry1
ja 0x4ef283
inc edx
cmp dx, word [ebp + 0xc]
jae 0x4ef281
mov edi, dword [ebp - 8]
jmp 0x4ef250
xor edi, edi
mov eax, edi
xor eax, 0xaef5589b
cmp eax, 0xaef5589b
je 0x4ef378
mov eax, dword fs:[0x18]
mov ecx, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
add edi, ecx
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
add edi, edx
lea eax, [ecx + edx]
cmp eax, edi
jae 0x4ef360
mov ebx, dword [esi + 0x2fc]
nop dword [eax]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor ecx, ebx
xor edx, dword [esi + 0x300]
xor ecx, 0x45ecc763
xor edx, 0
cmp ecx, 0x45ecc763
jne 0x4ef357
test edx, edx
jne 0x4ef357
mov ecx, dword [esi + 0x304]
xor ecx, dword [eax + 8]
mov edx, dword [esi + 0x308]
xor ecx, 0xc3464624
xor edx, dword [eax + 0xc]
xor edx, 0
cmp ecx, 0xc3464624
jne 0x4ef357
test edx, edx
jne 0x4ef357
mov ecx, dword [esi + 0x30c]
xor ecx, dword [eax + 0x10]
mov edx, dword [esi + 0x310]
xor ecx, 0x5ce40551
xor edx, dword [eax + 0x14]
xor edx, 0
cmp ecx, 0x5ce40551
jne 0x4ef357
test edx, edx
jne 0x4ef357
mov ecx, dword [esi + 0x314]
xor ecx, dword [eax + 0x18]
mov edx, dword [esi + 0x318]
xor ecx, 0x15070819
xor edx, dword [eax + 0x1c]
xor edx, 0
cmp ecx, 0x15070819
jne 0x4ef357
test edx, edx
je 0x4ef362
inc eax
cmp eax, edi
jb 0x4ef2c0
xor eax, eax
mov ecx, eax
xor ecx, 0x1fa39897
cmp ecx, 0x1fa39897
je 0x4ef378
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000f513
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f552
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f552
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f552
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f552
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f552
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100121cf
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 0x1001226c
push ebx
push esi
call fcn.10012198
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.1001212c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012219
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001226b
push edi
push eax
call fcn.1001318a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012239
call fcn.10010c74
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001226a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001212c
add esp, 0x20
test eax, eax
jne 0x10012258
push edi
call fcn.10010c74
jmp 0x10012260
push ebx
call fcn.10010c74
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 0x100124d9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.100123f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001250d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10012513
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012557
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.100123f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001258e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012596
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.100123f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100125d0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017c50
Capabilities:
Parse pe header

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

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 0x40bceb
Capabilities:
Encode data using xor

Disassembly:
xor dl, cl
not al
adc al, 0x23
rol ecx, 0xec
ror al, 1
xor al, 0x99
push ecx
pop ecx
push ecx
xor bl, al
lea eax, [esp + eax + 0x10]
xor ecx, edx
mov cx, word [edx + eax - 0x7d889dc2]
shl edx, 0xdb
btc edx, edx
lea eax, [edx + edx*2 + 0x1b663a5]
lea edi, [edx + edi - 0x10000003]
lea edx, [eax*4 - 0x284fb4e7]
bswap eax
mov word [edi], cx
pop ecx
pop eax
pop eax
pop eax
jae fcn.0041255a

Function at 0x40d59c
Capabilities:
Encode data using xor

Disassembly:
inc ecx
mov word [edi], dx
mov edx, dword [ebp]
js 0x41297b
cmc
mov ah, 0xff
mov ecx, es
loope 0x412977
shl ecx, 0xf9
lea ebp, [ecx + ebp - 0x59fffffc]
shr ecx, 4
mov dword [esp + ecx - 0x5a00000], ecx
neg byte [esp + ecx - 0x5a00000]
xor edx, ebx
lea eax, [ecx*8 + 0x5930f18c]
mov word [esp + ecx - 0x59ffffe], ax
rol edx, 3
sar eax, 0x78
not edx
call fcn.0041032a
inc edx
loope 0x412978
adc dword [edi], esi
pop ebx
pop eax
mov byte [esi - 0x4ed6182d], bl
push edi
pop ds
mov byte [ecx + 0x4d4fa58d], al
neg byte [ebp - 0x3f76fa8f]
push edx
ret 0xb4f6
Function at 0x10001550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
call fcn.10001910
push ebx
push eax
mov eax, 0x13
mov ebx, 0x2e7
dec eax
je 0x1000156b
dec ebx
jne 0x10001565
pop eax
pop ebx
cmp dword [ebp + 0xc], 1
jne 0x100015bf
push edx
push ebx
mov ebx, 0x222
mov edx, 0x2cb
xor ebx, edx
je 0x10001586
dec edx
jne 0x1000157f
pop ebx
pop edx
mov dword [ebp + 0xc], 0x29a
push ecx
push eax
mov eax, 0x3d3
mov ecx, 0x217
inc eax
je 0x100015a1
dec ecx
jne 0x1000159b
pop eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0x10001ce0
push 0
push 0
call dword [section..rdata]
call fcn.10003640
call fcn.10002840
push eax
push edx
mov edx, 0x358
mov eax, 0x12e
inc edx
je 0x100015d6
dec eax
jne 0x100015d0
pop edx
pop eax
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x10012148
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001217c
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10012177
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x100122a3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016587
cmp dword [eax], 0xec21
jne 0x100121d6
mov dword [ebp - 0xc], 1
jmp 0x100121da
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x100121fc
mov dword [ebp - 0x18], 1
jmp 0x10012200
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jne 0x10012220
mov dword [ebp - 0x1c], 1
jmp 0x10012224
and dword [ebp - 0x1c], 0
push 1
mov ecx, dword [ebp - 8]
call fcn.10016587
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jl 0x1001223e
mov dword [ebp - 0x20], 1
jmp 0x10012242
and dword [ebp - 0x20], 0
push 1
mov ecx, dword [ebp - 8]
call fcn.10016587
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
cmp ecx, 0xfffffffd
je 0x1001225f
mov dword [ebp - 0x24], 1
jmp 0x10012263
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016587
mov esi, eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016587
mov ecx, dword [esi]
add ecx, dword [eax]
imul eax, dword [ebp - 0x24], 0x2b4b
cmp ecx, eax
je 0x10012297
mov dword [ebp - 0x28], 1
jmp 0x1001229b
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10012319
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x10012348
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10012343
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x10012485
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
cmp dword [eax], 0
je 0x10012410
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x100123e1
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x100123e1
mov dword [ebp - 4], 1
jmp 0x100123e5
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
add ecx, dword [ebp - 4]
imul ecx, dword [eax]
test ecx, ecx
je 0x10012410
mov dword [ebp - 0x14], 1
jmp 0x10012414
and dword [ebp - 0x14], 0
push 3
mov ecx, dword [ebp - 0x64]
call fcn.10016587
mov dword [eax], 0x5fcb
cmp dword [ebp - 0x14], 0x5fcb
jl 0x10012436
mov dword [ebp - 0x20], 1
jmp 0x1001243a
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10016587
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10016587
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jne 0x10012471
mov dword [ebp - 0xc], 1
jmp 0x10012475
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10012cdf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10012d3a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10012d1b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10012d38
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10016587
mov dword [eax], 0xacae7bf1
jmp 0x10012d10
jmp 0x10012d5a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10012d5a
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esp, ebp
pop ebp
ret

Function at 0x10015c0d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10015c34
push 0x2205
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10015c51
push 0
push 0x588
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
pop ebp
ret

Function at 0x10018438
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov dword [ebp - 0x1c], 0x5043
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
xor esi, esi
inc esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x315362da
mov dword [ebp - 0x2c], 0xe91c1785
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10018476
push ecx
call fcn.100183c7
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
sub eax, 0x13b28858
neg eax
sbb eax, eax
inc eax
cmp eax, dword [ebp - 8]
jl 0x1001849e
mov eax, esi
cmp dword [ebp - 8], ebx
jne 0x100184a0
mov eax, ebx
cmp eax, dword [ebp - 0x10]
jge 0x100184ca
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
push ecx
call fcn.100183e4
mov byte [ebp - 1], bl
add esp, 8
cmp byte [ebp - 1], bl
je 0x1001850f
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1001850f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xb39e2240
push eax
push ecx
mov dword [ebp - 0x14], 2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], esi
call fcn.100183ee
add esp, 4
lea eax, [ebp - 0xc]
lea edx, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, ecx
lea ecx, [ebp - 0x18]
push eax
sub esp, 0xc
call fcn.100183fa
add esp, 0x24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b981
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001b99a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x1001ba56
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
jl 0x1001b9e3
mov dword [ebp - 0xc], 1
jmp 0x1001b9e7
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x1001ba05
mov eax, 0x251c
test eax, eax
je 0x1001ba05
mov dword [ebp - 8], 1
jmp 0x1001ba09
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 8], eax
jle 0x1001ba1c
mov dword [ebp - 0x10], 1
jmp 0x1001ba20
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jge 0x1001ba39
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1001ba39
mov dword [ebp - 0x1c], 1
jmp 0x1001ba3d
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret