joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300021fd
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x30002ff0
call fcn.30002680
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x30004584
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30001fa0
cmp eax, esi
jne 0x30001f93
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30001fa3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30001f7a
xor esi, esi
inc esi
mov eax, dword [0x30004580]
cmp eax, esi
jne 0x30001fb6
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30001fe5
mov eax, dword [0x30004580]
test eax, eax
jne 0x30001fdf
mov dword [0x30004580], esi
push 0x30001210
push 0x30001208
call fcn.30125000
pop ecx
pop ecx
test eax, eax
je 0x30001fe5
jmp 0x30002109
mov dword [0x30004228], esi
mov eax, dword [0x30004580]
cmp eax, esi
jne 0x30002009
push 0x30001204
push 0x300011f4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30004580], 2
cmp dword [ebp - 0x20], ebx
jne 0x30002016
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30004590], ebx
je 0x30002037
push 0x30004590
call fcn.30002608
pop ecx
test eax, eax
je 0x30002037
push ebx
push 2
push ebx
call dword [0x30004590]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x30002109
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x300020a1
cmp cx, bx
je 0x3000205c
cmp dword [ebp - 0x1c], ebx
jne 0x300020a1
movzx ecx, word [eax]
cmp cx, bx
je 0x30002071
cmp cx, 0x20
ja 0x30002071
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x3000205c
test byte [ebp - 0x40], 1
je 0x3000207d
movzx ecx, word [ebp - 0x3c]
jmp 0x30002080
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x30004224], eax
cmp dword [0x30004218], ebx
jne 0x300020e6
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x300020b2
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x30002046
cmp dword [0x30004228], ebx
jne 0x300020f4
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30004224]
jmp 0x30002115
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300026c5
ret
call fcn.30001e2f
jmp 0x30001f3d
Function at 0x701860
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x701879
mov edi, ebx
mov ebx, eax
jmp 0x70187b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x701891
push eax
push esi
call fcn.006699f0
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x7018af
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [ebx + 4]
jl 0x701898
cmp eax, dword [edi + 4]
jge 0x7018c6
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x7018b4
mov edi, dword [edi + 4]
test edi, edi
mov dword [esi + 4], edi
jle 0x7018f1
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
lea esp, [esp]
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x7018f1
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x7018e0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x10004514
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100288f0]
jne 0x1000451e
repz ret
jmp fcn.1000b4cc

Function at 0x1000ea5b
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.1000378d
and dword [ebp - 4], 0
cmp dword [0x10029f84], 0
mov ebx, eax
jne 0x1000eb0c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000ebbd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000ebbd
push eax
call fcn.1000371b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10029f84], eax
call esi
push eax
call fcn.1000371b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10029f88], eax
call esi
push eax
call fcn.1000371b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10029f8c], eax
call esi
push eax
call fcn.1000371b
pop ecx
mov dword [0x10029f94], eax
test eax, eax
je 0x1000eb0c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000371b
pop ecx
mov dword [0x10029f90], eax
mov eax, dword [0x10029f90]
cmp eax, ebx
je 0x1000eb64
cmp dword [0x10029f94], ebx
je 0x1000eb64
push eax
call fcn.10003796
push dword [0x10029f94]
mov esi, eax
call fcn.10003796
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000eb64
test edi, edi
je 0x1000eb64
call esi
test eax, eax
je 0x1000eb5b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000eb5b
test byte [ebp - 0xc], 1
jne 0x1000eb64
or dword [ebp + 0x10], 0x200000
jmp 0x1000eb9d
mov eax, dword [0x10029f88]
cmp eax, ebx
je 0x1000eb9d
push eax
call fcn.10003796
pop ecx
test eax, eax
je 0x1000eb9d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000eb9d
mov eax, dword [0x10029f8c]
cmp eax, ebx
je 0x1000eb9d
push eax
call fcn.10003796
pop ecx
test eax, eax
je 0x1000eb9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10029f84]
call fcn.10003796
pop ecx
test eax, eax
je 0x1000ebbd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000ebbf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011fe4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [0x100282b0], 0x25f0
mov dword [0x100282ac], 0x1778
mov dword [ebp - 0x10], eax
call fcn.10013132
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x100282b0], 0x207f
mov esi, dword [eax + esi + 0x78]
mov dword [0x100282b0], 0xaab
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x100282ac], 0xfffff878
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x10012149
jmp 0x100120dc
mov al, byte [ebp - 0x29]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x30]
add edx, 1
mov ah, byte [ebp - 0x31]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x38], edx
jne 0x100120ee
jmp 0x1001211b
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + ecx*4]
mov dword [0x100282ac], 0x1756
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x38], edx
jmp 0x100120ee
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x48]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x28], eax
jb 0x10012090
jmp 0x10012149
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
jmp 0x10012090
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
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 - 0x30], eax
mov byte [ebp - 0x29], bh
mov byte [ebp - 0x31], cl
jne 0x10012062
mov al, byte [ebp - 0x31]
test al, 1
jne 0x10012124
jmp 0x100120b6
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x100282ac], 0x1663
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10012992
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100282b0], 0x1336
mov dword [0x100282b8], 0
mov byte [0x100282bc], 0
mov dword [0x100282b4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100129fc
xor eax, eax
mov ecx, dword [0x100282ac]
add ecx, 0xfffff673
mov dword [0x100282ac], ecx
mov dword [0x100282b4], 0
mov dword [ebp - 0x20], eax
jmp 0x10012a24
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x100282b4]
add eax, 1
mov dword [0x100282b4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100129fc
jmp 0x100129d9
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x100282c0], 0
mov dword [0x100282ac], 0x473
mov edi, dword [0x100282b8]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x100282c0], esi
mov dword [0x100282ac], 0xffffe74a
mov eax, esi
cdq
idiv ecx
mov dword [0x100282b8], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x100282bc], cl
mov dword [0x100282b0], 0x56
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x100282bc]
mov esi, dword [0x100282b8]
mov byte [ebx + esi], cl
mov esi, dword [0x100282ac]
add esi, 0xfffff2d0
mov dword [0x100282b0], esi
mov esi, dword [0x100282b4]
add esi, 1
mov dword [0x100282b4], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10012a24
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10012d41
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x10014407]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x100282ac], 0x1f27
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.100123db
mov dword [0x100282b0], 0x1720
mov dword [0x100282ac], 0x242f
call fcn.10012478
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10011e15
mov dword [0x100282ac], 0x1a8b
cmp eax, 0
mov dword [ebp - 0x3c], eax
jne 0x10012dcc
xor eax, eax
add esp, 0x50
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov dword [0x100282ac], 0xde1
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 [0x100282b0], 0xbeb
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10012bde
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x4c], ecx
mov dword [0x100282b0], 0xafc
mov dword [0x100282ac], 0x2657
add ecx, 0x2248
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x10012e75
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x50
pop esi
pop edi
pop ebp
ret
Function at 0x10012e7f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [0x100282b0], 0x2384
mov dword [ebp - 8], 0
mov eax, dword [0x100282ac]
add eax, 0xffffffe3
mov dword [0x100282ac], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100282ac], 0xab
mov esi, dword [0x100282b0]
add esi, 0x1547
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x10012f00
mov dword [0x100282b0], 0x22b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10012fac
jmp 0x10012fe8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], esi
je 0x10012f3d
mov eax, 0x5eb
mov ecx, dword [ebp - 0x20]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], eax
jl 0x10012f00
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [0x100282ac], eax
add eax, 0xffffe5b3
mov dword [0x100282b0], eax
mov eax, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], ecx
jne 0x10012fe8
mov dword [0x100282ac], 0x1e94
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10012fe8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10012fe8
mov dword [0x100282ac], 0x1eaa
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10012ede
jmp 0x10012fe8
mov dword [0x100282ac], 0x1558
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10012fe8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x10012fe8
mov eax, 1
mov dword [0x100282b0], 0x3aa
mov dword [ebp - 0x2c], eax
jmp 0x10012ff7
xor eax, eax
mov dword [0x100282ac], 0x1bee
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x100132c2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
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 [0x100282b4], 0
mov dword [0x100282b8], 0
mov dword [0x100282c4], 0
mov dword [0x100282ac], 0x11eb
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
je 0x10013444
jmp 0x1001333e
mov eax, dword [0x100282b4]
mov ecx, dword [0x100282b8]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, ecx
add edi, 1
add edx, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x100282b4], edx
mov dword [0x100282ac], 0x7f4
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x100282b8], edx
mov dword [0x100282ac], 0x2ac3
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x100282bc], cl
mov dword [0x100282ac], 0x1f38
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x100282bc]
mov edx, dword [0x100282b8]
mov byte [ebx + edx], cl
mov dword [0x100282b0], 0x9b8
mov edx, dword [0x100282b4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x100282b8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x100282b0], 0xe03
and ecx, 0xff
mov dword [0x100282c4], ecx
mov dword [0x100282ac], 0x78d
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
xor cl, byte [edx + esi]
mov byte [0x100282c8], cl
mov dword [0x100282b0], 0x21f0
mov dword [0x100282ac], 0x17ad
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x2c], edi
jne 0x10013327
mov dword [0x100282ac], 0xe00
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013456
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x100282ac], 0x279d
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10012635
lea ecx, [0x10012926]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], 0x12b800
mov edx, dword [0x10028298]
mov dword [esp + 0x5c], edx
mov edx, dword [0x1002829c]
mov dword [esp + 0x4c], edx
mov edx, dword [0x100282a0]
mov dword [esp + 0x2c], edx
mov edx, dword [0x100282a4]
mov dword [esp + 0x24], edx
mov edx, dword [0x100282a8]
mov dword [esp + 0x3c], edx
mov dword [0x100282ac], 0x22dd
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10013541
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10013541
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10012d41
mov ecx, dword [0x100282ac]
add ecx, 0xd01
mov dword [0x100282ac], ecx
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x100282ac], 0xa99
mov dword [esp + 0xc], eax
jmp 0x100135a6
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x100134e2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
jne 0x100134e2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [0x100282b0], 0x207f
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x38], edx
mov dword [0x100282ac], 0x204a
call fcn.10012e7f
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
je 0x100134f6
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x402a44
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.00404794
test esi, esi
jne 0x402a7a
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.00404884
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403838
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x470020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038b0
xor eax, eax
push ebp
push 0x4038a9
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 0x4038ec
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 0x4038b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x470020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x470020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404594
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x472048], 0
je 0x4045f5
cmp word [0x47221c], 0xd7b2
jne 0x4045bd
cmp dword [0x472224], 0
jbe 0x4045bd
mov eax, 0x472218
call dword [0x472234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x470070
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 0x40461c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470030], 0
jne 0x404611
push 0
push 0x470068
push 0x470070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404748
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040271c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x472049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404710
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40650a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404a04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403270
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406511
lea eax, [ebp - 0x10]
call fcn.00404794
ret

Function at 0x40bc94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bccd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404884
jmp 0x40bcd6
mov eax, ebx
mov edx, esi
call fcn.004047e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bce0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bd01
mov al, byte [esp]
jmp 0x40bd03
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c388
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c200
mov eax, dword [0x471d90]
cmp byte [eax], 0
je 0x40c404
mov eax, dword [0x471aa0]
call fcn.00402e8c
call fcn.00402884
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004092f8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c44c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c43a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x471a2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x472664]
call fcn.004059b8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret