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

Disassembly:
pop ds
push ds
mov al, 5
inc esp
jns 0x486cbb
ror byte [ebx + ebp*2], 0xda
sub byte [edx + 0x7f], ch
or byte [esi + edx*8 - 0xa], al
aad 0xf7
and byte es:[esi], ch
neg dword [esi]
aas
outsb dx, byte [esi]
aad 0x97
xchg edi, eax
mov byte [0x308c506b], al
mov al, byte gs:[0xf934cf07]
fadd qword [ebx + esi*8]
xchg ecx, eax
pop ds
lodsb al, byte [esi]
out dx, al
push eax
push cs
xor esp, ebp
jno 0x486cd8
ljmp 0xa6f8:0xf5e2619d

Function at 0x4bb041
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2390
cmp edx, dword [eax]
je 0x4bb063
add eax, 8
inc ecx
cmp eax, 0x4c2420
jl 0x4bb054
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2390]
jne 0x4bb191
mov eax, dword [0x4c6d1c]
cmp eax, 1
je 0x4bb16b
test eax, eax
jne 0x4bb094
cmp dword [0x4c22bc], 1
je 0x4bb16b
cmp edx, 0xfc
je 0x4bb191
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb0cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bba20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbeb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb10e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbeb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c072c
push edi
call fcn.004bdd80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bba20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bba30
lea eax, [ebp - 0xa0]
push 0x4c070c
push eax
call fcn.004bba30
push dword [esi + 0x4c2394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bba30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bdcf4
add esp, 0x2c
pop edi
jmp 0x4bb191
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2394]
push 0
push eax
push dword [esi]
call fcn.004bbeb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x58f0cd
Capabilities:
Parse pe header

Disassembly:
cdq
imul eax, dword [0x2fc5a539], 1
invalid
Function at 0x101cbd00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102f84c0]
jne 0x101cbd0a
repz ret
jmp fcn.101ccf6c

Function at 0x101ce13b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.101cb454
and dword [ebp - 4], 0
cmp dword [0x102f9b44], 0
mov ebx, eax
jne 0x101ce1ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101ce29d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101ce29d
push eax
call fcn.101cb3e2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102f9b44], eax
call esi
push eax
call fcn.101cb3e2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102f9b48], eax
call esi
push eax
call fcn.101cb3e2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102f9b4c], eax
call esi
push eax
call fcn.101cb3e2
pop ecx
mov dword [0x102f9b54], eax
test eax, eax
je 0x101ce1ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101cb3e2
pop ecx
mov dword [0x102f9b50], eax
mov eax, dword [0x102f9b50]
cmp eax, ebx
je 0x101ce244
cmp dword [0x102f9b54], ebx
je 0x101ce244
push eax
call fcn.101cb45d
push dword [0x102f9b54]
mov esi, eax
call fcn.101cb45d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101ce244
test edi, edi
je 0x101ce244
call esi
test eax, eax
je 0x101ce23b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101ce23b
test byte [ebp - 0xc], 1
jne 0x101ce244
or dword [ebp + 0x10], 0x200000
jmp 0x101ce27d
mov eax, dword [0x102f9b48]
cmp eax, ebx
je 0x101ce27d
push eax
call fcn.101cb45d
pop ecx
test eax, eax
je 0x101ce27d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101ce27d
mov eax, dword [0x102f9b4c]
cmp eax, ebx
je 0x101ce27d
push eax
call fcn.101cb45d
pop ecx
test eax, eax
je 0x101ce27d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102f9b44]
call fcn.101cb45d
pop ecx
test eax, eax
je 0x101ce29d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101ce29f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101cf244
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x102f7e84], 0x126c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102f7e80], 0x12da
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101cf30d
mov dword [0x102f7e84], 0xd8e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101cf2db
jmp 0x101cf371
mov dword [0x102f7e84], 0x1430
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x101cf350
jmp 0x101cf371
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x101cf2a5
jmp 0x101cf371
mov dword [0x102f7e80], 0xfffff6b2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101cf33b
jmp 0x101cf371
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jge 0x101cf323
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x101cf2f6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x101cf287
jmp 0x101cf371
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x101cf2c7
jmp 0x101cf371
mov eax, 1
mov dword [0x102f7e80], 0xcb8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x101cf378
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x101cf378
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x101cf44c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102f7e8c], 0
mov byte [0x102f7e90], 0
mov dword [0x102f7e88], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101cf4aa
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x25fd
xor ecx, ecx
mov dword [0x102f7e88], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x101cf4dc
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102f7e80], 0x25fd
mov eax, dword [0x102f7e88]
add eax, 1
mov dword [0x102f7e88], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101cf4aa
jmp 0x101cf491
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add ecx, 0xfffff560
mov dword [0x102f7e94], 0
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x102f7e8c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102f7e94], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x102f7e8c], edx
mov dword [0x102f7e80], ecx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x102f7e90], cl
mov dword [0x102f7e84], 0x21ee
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov cl, byte [0x102f7e90]
mov edx, dword [0x102f7e8c]
mov byte [ebx + edx], cl
mov edx, dword [0x102f7e80]
add edx, 0xfffff153
mov dword [0x102f7e80], edx
mov ecx, dword [0x102f7e88]
add ecx, 1
mov dword [0x102f7e88], ecx
cmp ecx, 0x100
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
jl 0x101cf4dc
jmp 0x101cf489
Function at 0x101cf6fb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x102f7e80]
add esi, 0xffffeeb0
mov dword [0x102f7e80], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101d13d7]
mov dh, byte [eax + 0x101d13a8]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
je 0x101cf76b
jmp 0x101cf725
mov dword [0x102f7e84], 0x20b8
mov eax, dword [ebp - 0x34]
add eax, 0x15ba
mov dword [ebp - 0x38], eax
jmp 0x101cf83d
lea eax, [ebp - 0x24]
mov dword [0x102f7e84], 0x19f0
mov dword [ebp - 0x3c], eax
call fcn.101d017d
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call fcn.101cf0ce
xor ecx, ecx
mov dword [0x102f7e84], 0x22ca
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
je 0x101cf83d
mov eax, dword [ebp - 0x40]
mov dword [0x102f7e80], 0x16e2
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x34], eax
call fcn.101cf5a4
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x102f7e84], 0x190b
mov dword [ecx + 0xd0], 0x4550
mov dword [0x102f7e80], 0xfffff83d
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x30], ecx
cmp ecx, 0
mov dword [ebp - 0x38], eax
jne 0x101cf751
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x101d0011
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.101d0296
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101d004d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x102f7e80], 0xc6c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x102f7e84], 0x241c
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x101d0172
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jmp 0x101d00cf
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x40]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
je 0x101d0114
jmp 0x101d00eb
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edx
jmp 0x101d00a4
mov al, byte [ebp - 0x45]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x44]
add edx, 1
mov ah, byte [ebp - 0x46]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x101d00a4
mov al, byte [ebp - 0x46]
test al, 1
jne 0x101d0143
jmp 0x101d011d
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
jb 0x101d00cf
jmp 0x101d0172
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x102f7e84], 0x22be
mov ecx, dword [edx + ecx*4]
mov dword [0x102f7e80], 0x4c8
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101d0400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102f7e88], 0
mov dword [0x102f7e8c], 0
mov dword [0x102f7e98], 0
mov ebx, dword [0x102f7e80]
add ebx, 0xffffec41
mov dword [0x102f7e84], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x101d0479
mov dword [0x102f7e84], 0x22fd
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x102f7e88], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102f7e8c], edx
mov dword [0x102f7e84], 0x63e
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x102f7e90], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102f7e90]
mov edx, dword [0x102f7e8c]
mov byte [ebx + edx], cl
mov edx, dword [0x102f7e88]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102f7e8c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102f7e98], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x102f7e84], 0xff5
mov dword [0x102f7e80], 0xc9e
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x101d0467
mov eax, dword [0x102f7e8c]
mov ecx, dword [0x102f7e88]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x101d0479
Function at 0x101d055f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x102f7e80]
mov esi, edx
add esi, 0xffffddef
mov dword [0x102f7e84], esi
add edx, 0xfffff1ae
mov dword [0x102f7e80], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101cf846
lea ecx, [0x101cfec6]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x80], edx
mov dword [esp + 0x54], 0x156800
mov edx, dword [0x102f7e6c]
mov dword [esp + 0x58], edx
mov edx, dword [0x102f7e70]
mov dword [esp + 0x38], edx
mov dword [0x102f7e80], 0x1a6c
mov edx, dword [0x102f7e74]
mov dword [esp + 0x30], edx
mov edx, dword [0x102f7e78]
mov dword [esp + 0x78], edx
mov edx, dword [0x102f7e7c]
mov dword [esp + 0x84], edx
mov edx, dword [0x102f7e84]
add edx, 0xc86
mov dword [0x102f7e84], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101d067c
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x101d068d
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101d067c
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101cf6fb
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x102f7e84], 0xd4a
mov dword [esp + 0x10], eax
jmp 0x101d0614
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
je 0x101d061e
jmp 0x101d0632
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov dword [0x102f7e84], 0x8e8
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x68], edx
mov dword [0x102f7e80], 0x1277
call fcn.101cf244
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x101d0646
jmp 0x101d0614
Function at 0x4029fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403fd0
test esi, esi
jne 0x402a32
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040c0
jmp 0x402a50
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402910
mov edi, eax
test esi, esi
je 0x402a50
cmp dword [ebx], 0
je 0x402a50
dec esi
jmp 0x402a39
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x467020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403190
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403170
xor eax, eax
push ebp
push 0x403169
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403170
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x467020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x467020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x469048], 0
je 0x403eb5
cmp word [0x46921c], 0xd7b2
jne 0x403e7d
cmp dword [0x469224], 0
jbe 0x403e7d
mov eax, 0x469218
call dword [0x469234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403edc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x467030], 0
jne 0x403ed1
push 0
push 0x467064
push 0x46706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405260
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405490
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405490
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40536c
xor eax, eax
push ebp
push 0x405365
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050a8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40534a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40534a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40536c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405486
cmp byte [ebp - 0xd], 0
jne 0x4053b3
cmp byte [ebp - 0x12], 0
je 0x405486
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4053db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405486
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405418
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405486
cmp byte [ebp - 0xd], 0
je 0x405486
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405486
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret