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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x40220e
xor eax, eax
jmp 0x402288
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x402229
xor eax, eax
jmp 0x402288
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, dword [edx + 0x10]
jb 0x40226c
jmp 0x458955
xor eax, eax
jmp 0x402288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100013b9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x100013c6
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx + 8], 0xc6ff96
mov dword [ecx + 4], 0x8ac21
mov dword [ecx], 0xf68
mov dword [ebp - 8], eax
call sub.USER32.dll_PackDDElParam
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x414
mov ecx, dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 0xc], eax
call ecx
sub esp, 4
mov ecx, dword [ebp - 8]
sub ecx, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
je 0x10001422
jmp 0x10001410
mov eax, dword [ebp - 8]
sub eax, 0x3c
mov dword [ebp - 0x18], eax
je 0x10001456
jmp 0x10001462
add esp, 0x34
pop ebp
ret
mov eax, esp
mov dword [eax], 0xa6b92e
mov eax, dword [sym.imp.USER32.dll_ShowCaret]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0x281
mov dword [ecx], 0x281
mov ecx, dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
mov dword [ebp - 0x1c], eax
call ecx
sub esp, 8
mov dword [ebp - 0x20], eax
jmp 0x10001462
mov eax, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call eax
mov dword [ebp - 0x24], eax
jmp 0x10001422
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ecx, dword [ebp - 8]
add ecx, 1
cmp ecx, 0x61
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], ecx
je 0x1000141d
jmp 0x100013c6
Function at 0x10154f83
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1017b9f8], 0x132a
mov dword [0x1017b9f4], 0x3614
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1015506d
lea eax, [ebp - 0x12c]
mov dword [0x1017b9f8], 0x156a
mov dword [ebp - 0x13c], eax
call fcn.10155805
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.1015611e
mov ecx, eax
mov dword [0x1017ba14], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
jmp 0x101550dd
mov eax, dword [ebp - 0x150]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10157634]
mov dh, byte [eax + 0x10157605]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x150], ecx
je 0x10154fc1
jmp 0x10155034
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x178
mov edi, edx
add edi, esi
add edi, 0xc0
mov esi, dword [edi]
imul edi, eax, 0x178
add edx, edi
add edx, 0xbc
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x184
mov ecx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1015506d
xor eax, eax
mov dword [0x1017b9f4], 0x1177
mov dword [ebp - 0x150], eax
jmp 0x10155034
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, section..data
imul esi, eax, 0x178
mov edi, edx
add edi, esi
add edi, 0xc0
mov esi, dword [edi]
imul edi, eax, 0x178
mov ebx, edx
add ebx, edi
add ebx, 0x2c
mov edi, dword [ebx]
imul ebx, eax, 0x178
add edx, ebx
add edx, 0xbc
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.10155ad6
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x184
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
jne 0x101550dd
lea eax, [0x10157613]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.10155588
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.10155b62
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x591c3
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x143a00
mov ecx, dword [ebp - 0x144]
add ecx, 0x35cba
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f40
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10155217
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000108e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x10155371
lea eax, [esp + 0x38]
mov ecx, dword [0x1017b9f4]
add ecx, 0xffffefd3
mov dword [0x1017b9f4], ecx
mov dword [esp + 0x20], eax
call fcn.101556eb
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
je 0x10155283
jmp 0x1015537b
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
je 0x10155385
jmp 0x1015535a
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.10154f83
lea ecx, [0x10156353]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], edx
mov dword [esp + 0x5c], 0x143a00
mov dword [0x1017b9f4], 0x15a6
mov edx, dword [0x1017b9e0]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1017b9e4]
mov dword [esp + 0x64], edx
mov edx, dword [0x1017b9e8]
mov dword [esp + 0x80], edx
mov edx, dword [0x1017b9ec]
mov dword [esp + 0x44], edx
mov edx, dword [0x1017b9f0]
mov dword [esp + 0x58], edx
mov dword [0x1017b9f8], 0x109b
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
jmp 0x1015526b
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x88], ecx
mov dword [0x1017b9f4], 0xfffff682
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10155dc2
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x1017b9f4]
add ecx, 0xffffe5c3
mov dword [0x1017b9f8], ecx
mov dword [esp + 0x1c], eax
jmp 0x1015537b
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x1015526b
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jmp 0x10155371
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101552fb
jmp 0x1015535a
Function at 0x10155414
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.10155efe
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 0x10155450
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x1017b9f8], 0x370c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x1017b9f4], 0x1fed
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x1015557d
jmp 0x101554ed
mov al, byte [ebp - 0x35]
test al, 1
jne 0x1015555a
jmp 0x101554a9
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x34], eax
jae 0x1015557d
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
jmp 0x101554ff
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
jmp 0x101554d1
mov eax, dword [ebp - 0x50]
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 - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x35], cl
je 0x1015549c
mov al, byte [ebp - 0x55]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x54]
add edx, 1
mov ah, byte [ebp - 0x35]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x50], edx
jne 0x101554ff
jmp 0x1015549c
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x1017b9f4], 0x1415
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10155588
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 edi, dword [0x1017b9f8]
add edi, 0x53c
mov dword [0x1017b9f8], edi
mov dword [0x1017ba00], 0
mov byte [0x1017ba04], 0
mov dword [0x1017b9fc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10155604
xor eax, eax
mov dword [0x1017b9f4], 0x182
mov dword [0x1017b9fc], 0
mov dword [ebp - 0x20], eax
jmp 0x10155645
mov dword [0x1017b9f4], 0x26c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x1017b9f8], 0x1e35
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1017b9f8]
add eax, 0x325
mov dword [0x1017b9f8], eax
mov eax, dword [0x1017b9fc]
add eax, 1
mov dword [0x1017b9fc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10155604
jmp 0x101555d7
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1017ba08], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1017ba00]
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 [0x1017ba08], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x1017ba00], edx
mov dword [0x1017b9f4], 0x918
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x1017ba04], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x1017b9f4], 0x16c8
mov cl, byte [0x1017ba04]
mov esi, dword [0x1017ba00]
mov byte [ebx + esi], cl
mov esi, dword [0x1017b9fc]
add esi, 1
mov dword [0x1017b9fc], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10155645
jmp 0x101555f2
Function at 0x101556eb
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1015575a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x10155772
xor eax, eax
mov dword [0x1017b9f4], 0x982
mov dword [ebp - 0x18], eax
jmp 0x10155772
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2], 0x6f
je 0x101557a5
jmp 0x1015572e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x10155791
jmp 0x1015577a
mov eax, dword [ebp - 0x18]
add esp, 0x24
pop ebp
ret
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
jl 0x1015575a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x1015573f
jmp 0x1015572e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1015572e
mov eax, dword [0x1017b9f4]
add eax, 0xfffff36e
mov dword [0x1017b9f4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1015572e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1015572e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10155717
jmp 0x1015572e
Function at 0x10155b62
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 [0x1017b9fc], 0
mov dword [0x1017ba00], 0
mov dword [0x1017ba0c], 0
mov dword [0x1017b9f4], 0x53e
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 0x10155cb1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1017b9f8], 0xb88
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1017b9fc], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1017ba00], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1017ba04], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x1017b9f4]
add edx, 0x20cc
mov dword [0x1017b9f4], edx
mov cl, byte [0x1017ba04]
mov edx, dword [0x1017ba00]
mov byte [edi + edx], cl
mov edx, dword [0x1017b9fc]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1017ba00]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1017ba0c], ebx
mov dword [0x1017b9f4], 0x395
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x10155cb1
mov eax, dword [0x1017b9fc]
mov ecx, dword [0x1017ba00]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x10155bc5
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10155dc2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x1017b9f8]
mov edi, esi
add edi, 0xffffdf43
mov dword [0x1017b9f4], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
jmp 0x10155ed2
mov eax, dword [ebp - 0x3c]
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 - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10155cb9
mov eax, dword [ebp - 0x40]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xc0
mov dword [eax + 0xc0], 0x4550
add eax, 0xffc00000
mov dword [0x1017b9f4], 0x21cb
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x54], eax
cmp eax, 0
sete dl
add eax, 0x1816
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], dl
xor eax, eax
mov cl, byte [ebp - 0x45]
test cl, 1
mov dword [ebp - 0x4c], eax
jne 0x10155e88
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x58
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
add ecx, 0xffffe336
mov dword [0x1017b9f8], ecx
mov dword [ebp - 0x50], eax
call fcn.10155805
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
call fcn.1015611e
cmp eax, 0
mov dword [ebp - 0x3c], eax
jne 0x10155df7
xor eax, eax
add esp, 0x58
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10157634]
mov dh, byte [eax + 0x10157605]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x38], ecx
je 0x10155e92
jmp 0x10155ed2
Function at 0x404708
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406910
test esi, esi
jne 0x40473e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406a78
jmp 0x40475c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040464c
mov edi, eax
test esi, esi
je 0x40475c
cmp dword [ebx], 0
je 0x40475c
dec esi
jmp 0x404745
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057f9
test edi, edi
je 0x4057f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40570b
cmp edi, 0xffffffff
je 0x4056cf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056cf
mov byte [esp], 0
jmp 0x4057f9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40570b
test ebx, ebx
jne 0x405704
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040257c
test eax, eax
jne 0x405704
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057f9
pause
dec ebp
test ebp, ebp
jg 0x4056b4
cmp edi, 0xffffffff
je 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40572e
mov byte [esp], 0
jmp 0x4057f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40567e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040586c
mov edx, eax
mov ebx, dword [0x53d8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405797
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405795
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405797
xor edi, edi
cmp byte [esp], 0
je 0x4057c0
mov ebx, dword [esi]
test bl, 1
jne 0x4057d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x40579d
mov byte [esp + 1], 1
jmp 0x4057d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x4057c0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40574a
cmp byte [esp], 0
je 0x4057f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53d050], 0
je 0x4065d5
cmp word [0x53d32c], 0xd7b2
jne 0x40659d
cmp dword [0x53d334], 0
jbe 0x40659d
mov eax, 0x53d328
call dword [0x53d344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x406600
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x537028], 0
jne 0x4065f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4067cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x53702c], 0
je 0x4067f7
mov edx, edi
mov eax, esi
call dword [0x53702c]
mov ebx, eax
jmp 0x406808
mov eax, 8
call fcn.00404380
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x53d051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406794
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40683d
mov edx, 8
mov eax, ebx
call fcn.0040439c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4089d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408b39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406910
cmp si, word [0x5377dc]
jb 0x408a6c
cmp si, word [0x5379dc]
ja 0x408a6c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a6c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5377dc]
jae 0x408a46
mov edi, ebx
dec edi
jmp 0x408a67
cmp si, word [ebx*8 + 0x5377dc]
jbe 0x408a56
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a67
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5377e0]
call fcn.004088e4
jmp 0x408a6c
cmp edi, dword [ebp - 8]
jae 0x408a30
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b1b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b1b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407338
push dword [ebp - 0x160]
push 0x408b54
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407338
push dword [ebp - 0x164]
push 0x408b64
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407338
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b40
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406970
ret