joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451770
Capabilities:
Get number of processors

Disassembly:
and eax, 0
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
and al, ch
cmp esp, esi
add al, byte [eax]
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00450f70
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x480add
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47841c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x451814
cmp dword [esp + 0x40], 1
jne 0x451812
cmp ecx, eax
jge 0x451814
mov eax, ecx
cmp eax, 0xc8
jge 0x451820
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004515d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x478420]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x480c21
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x451a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
mov ecx, ebp
call fcn.0043cfd0
mov edx, dword [esp + 0x10]
add edx, eax
inc edi
cmp edi, ebx
mov dword [esp + 0x10], edx
jl 0x451a52
lea ebp, [esi + 0x68]
mov ecx, ebp
call fcn.0043eb90
mov ecx, eax
cmp ecx, 0xffffffff
je 0x451a8d
cmp ecx, 0xfffffffe
jne 0x451aad
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xc8]
cmp ecx, eax
jle 0x451aa8
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc8]
push edx
push 0x64
push eax
call dword [0x478364]
mov ecx, eax
cmp ecx, 0xfffffffe
jne 0x451aad
mov ecx, 0x64
mov eax, dword [esi + 0xcc]
push 1
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
imul ecx, dword [esi + 0xd0]
mov dword [esp + 0x68], eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
mov dword [esp + 0x14], edx
call 0x47d29c
mov edi, eax
push 0
shl edi, 4
sub edi, eax
clc
Function at 0x455990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea edi, [edi + edi*4]
lea eax, [edi + edi*4]
shl eax, 2
cdq
idiv ecx
lea ecx, [ecx + ecx*4]
shl ecx, 1
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], eax
call 0x483190
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x130], 4
call 0x483247
push 0x3e8
lea ecx, [esp + 0x2c]
mov edi, 1
push 0x3e8
push ecx
mov dword [esp + 0x40], edi
call fcn.00453ea0
mov eax, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x58]
push edx
push eax
call dword [0x4780c8]
cmp eax, 0xffffffff
jne 0x455a6a
push 0x5b6f50
lea ecx, [esi + 0xe0]
call 0x47d1a3
push 0xffffffffffffffff
mov ecx, esi
call 0x47e27a
lea ecx, [esp + 0x28]
mov byte [esp + 0x12c], 3
call 0x4832c5
mov eax, dword [esp + 0x40]
test eax, eax
je 0x455a3b
push eax
call 0x47cd84
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call 0x47d01a
lea ecx, [esp + 0xa4]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004419e0
mov eax, edi
jmp 0x455e57
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0xac]
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x80]
sub edx, ebx
mov ebx, dword [esp + 0x98]
sub edx, ecx
mov ecx, dword [esp + 0x74]
sub edx, eax
mov eax, dword [esp + 0xa8]
sub ecx, ebp
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x7c]
sub ecx, ebx
mov dword [esp + 0x8c], eax
sub ecx, edx
mov edx, dword [0x5b7c30]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0xb8]
dec eax
mov byte [esp + 0x12c], 5
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0
lea ecx, [eax + 1]
imul ecx, edx
test edx, edx
mov dword [esp + 0xa0], ecx
jle 0x455de3
mov dword [esp + 0x24], edi
Function at 0x458bf0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475868
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x458c29
inc eax
mov dword [esi + 0x10], eax
jmp 0x458d3c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x458c3d
mov eax, 0xffffffc7
jmp 0x458d3e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x458c4e
cmp dword [esi + 8], eax
jne 0x458c3d
cmp dword [esi + 8], eax
jne 0x458c67
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x458c67
mov eax, 0xffffffc7
jmp 0x458d3e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x458c7b
push eax
mov ecx, ebx
call fcn.00458420
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004287c0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x458cac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004287e0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00457b90
test eax, eax
mov dword [esp + 0x38], eax
je 0x458cdf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x599c60
call fcn.004289c0
mov eax, dword [esp + 0x38]
jmp 0x458d3e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00458a50
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x458d23
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00458a70
mov esi, eax
test esi, esi
jne 0x458d53
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00458a50
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x458cf5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x599c60
call fcn.004289c0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x599c60
call fcn.004289c0
mov eax, esi
jmp 0x458d3e
Function at 0x464d60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x47841c]
push 0
lea ecx, [esp + 0x20]
call 0x49433f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00464700
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x49426d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call str.t._t__t_
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call str.t._t__t_
push 1
push 0
push 0
mov ecx, esi
call 0x4909fc
push 1
push 0
push 1
mov ecx, esi
call 0x4909fc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x4943b1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x464ee0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x49433f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00464700
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x49426d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47841c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x464fa4
cmp dword [esp + 0x40], 1
jne 0x464fa2
cmp ecx, eax
jge 0x464fa4
mov eax, ecx
cmp eax, 0xc8
jge 0x464fb0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00464d60
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x478420]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x4943b1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x465fef
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esi + 0xd8]
xor ecx, ecx
mov dword [esp + 0x58], ecx
cmp eax, ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], 0x14
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], 0x5b6fa4
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
je 0x466023
mov dword [esp + 0x5c], eax
mov edx, dword [0x5b7c30]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x12c], 1
cmp eax, 1
jne 0x466094
mov eax, dword [esp + 0xc4]
cmp dword [eax - 8], ebp
jne 0x466054
push 0x5b6f88
jmp 0x4660ba
mov dword [esp + 0x60], eax
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x24]
push 0x5b6f80
push ecx
call 0x48db83
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 2
call 0x48d9b3
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], 1
call 0x48d87a
jmp 0x4660a6
push 0x5b6f78
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], ebp
call 0x48da03
mov ecx, ebx
call fcn.00451770
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x4660cf
push 0x5b6f64
mov ecx, edi
call 0x48da03
push 0xffffffffffffffff
mov ecx, esi
call 0x48eada
jmp 0x46668a
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x6c]
push edx
push ecx
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x88]
push edx
push ecx
lea edx, [esp + 0x80]
lea ecx, [esp + 0xac]
push edx
push ecx
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x90]
push edx
push ecx
push eax
call fcn.00464530
mov ebp, dword [esp + 0xc0]
mov eax, dword [esp + 0xd0]
mov edi, dword [esp + 0xc8]
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xcc]
sub ebp, eax
sub ebp, edi
mov edi, dword [esp + 0x94]
sub edi, edx
xor eax, eax
add esp, 0x24
sub edi, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], 5
lea edx, [esp + 0x40]
lea eax, [esp + 0xa4]
push edx
push eax
push edi
push ebp
mov ecx, ebx
mov byte [esp + 0x13c], 3
call fcn.00451b70
mov ecx, ebx
call fcn.00450750
xor ecx, ecx
mov dword [esp + 0x20], eax
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
jle 0x4661b8
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00450760
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x466191
lea ecx, [esp + 0xa4]
call fcn.00452320
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4661d6
cmp ecx, 0xfffffffe
jne 0x4661f0
cmp dword [esp + 0x14], ebp
jle 0x4661eb
mov edx, dword [esp + 0x14]
push edx
push 0x64
push ebp
call dword [0x478364]
mov ecx, eax
cmp ecx, 0xfffffffe
jne 0x4661f0
mov ecx, 0x64
lea edi, [edi + edi*4]
lea eax, [edi + edi*4]
shl eax, 2
cdq
idiv ecx
lea ecx, [ecx + ecx*4]
shl ecx, 1
mov dword [esp + 0x20], ecx
Function at 0x466205
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], eax
call 0x4939f0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x130], 4
call 0x493aa7
push 0x3e8
lea ecx, [esp + 0x2c]
mov edi, 1
push 0x3e8
push ecx
mov dword [esp + 0x40], edi
call fcn.00464700
mov eax, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x58]
push edx
push eax
call dword [0x4780c8]
cmp eax, 0xffffffff
jne 0x4662ca
push 0x5b6f50
lea ecx, [esi + 0xe0]
call 0x48da03
push 0xffffffffffffffff
mov ecx, esi
call 0x48eada
lea ecx, [esp + 0x28]
dec esp
and al, 0x28
mov byte [esp + 0x12c], 3
call 0x493b25
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46629b
push eax
call 0x48d5e4
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call 0x48d87a
lea ecx, [esp + 0xa4]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00452240
mov eax, edi
jmp 0x4666b7
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0xac]
mov eax, dword [esp + 0x6c]

Function at 0x4662e8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov word [eax + ecx*4], fs
add byte [eax], al
add byte [ebx + 0x80248c], cl
add byte [eax], al

Function at 0x4663b3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 0x1c
lea ecx, [esi + 0x5c]
push eax
call 0x491bd8
mov ecx, dword [esi + 0x78]
mov ebx, dword [0x478428]
push ecx
call ebx
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x18]
push edx
push 0x64
push eax
call dword [0x478364]
mov ecx, dword [esi + 0xb4]
push 0
push eax
push 0x402
push ecx
call dword [0x4783fc]
mov edx, dword [esi + 0xb4]
push edx
call ebx
mov eax, dword [0x5c8f00]

Function at 0x466403
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebx, 1
cmp eax, ebx
je 0x4666d0
mov eax, dword [esp + 0x2c]
push eax
call dword [0x4780cc]
test eax, eax
jl 0x466707
push 0x3e8
lea ecx, [esp + 0x2c]
push 0x3e8
push ecx
call fcn.00464700
add esp, 0xc
lea edx, [esp + 0x88]
push edx
call dword [0x478454]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x104], eax
je 0x466551
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
cmp ebx, 0x3e8
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
je 0x4664af
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push 1
push edx
push eax
call dword [0x4780e0]
push ebx
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.00464700
mov eax, dword [esp + 0x3c]
add esp, 0xc
lea edx, [esp + 0x50]
push 1
push edx
push eax
mov edx, dword [esp + 0x2c]
push edx
call dword [0x4780c0]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 4
call 0x48d87a
lea ecx, [esp + 0x28]
mov byte [esp + 0x12c], 3
call 0x493b25
sub ah, dl
add al, byte [eax]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46676b
jmp 0x466762
push 0x5b6f20
lea ecx, [esi + 0xe0]
call 0x48da03
mov eax, dword [esp + 0x2c]
push eax
call dword [0x4780c0]
push 0xffffffffffffffff
mov ecx, esi
call 0x48eada
jmp 0x4666db

Function at 0x46650f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add eax, dword [eax]
add byte [edi + edx + 0x68], dh
call 0x8d46651d
inc esp
and al, 0x2c
Function at 0x4680e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebp, dword [esp + 0x7c]
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
shl edx, 2
js 0x468119
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x468138
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x468138
lea eax, [edx - 1]
jmp 0x468138
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x468136
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x468136
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0xa8], ax

Function at 0x4681fb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea edx, [eax + eax*4]
mov eax, edi
test edx, edx
jl 0x468223
shl eax, 7
add eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x468242
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x468242
lea eax, [edx - 1]
jmp 0x468242
shl eax, 7
sub eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x468240
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x468240
lea eax, [edx - 1]
neg eax
mov word [esp + 0xaa], ax
Function at 0x402ba4
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.00404374
test esi, esi
jne 0x402bda
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.00404464
jmp 0x402bf8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a58
mov edi, eax
test esi, esi
je 0x402bf8
cmp dword [ebx], 0
je 0x402bf8
dec esi
jmp 0x402be1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033b4
Capabilities:
Query or enumerate registry value

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

Function at 0x4041f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e404c], 0
je 0x404259
cmp word [0x4e4220], 0xd7b2
jne 0x404221
cmp dword [0x4e4228], 0
jbe 0x404221
mov eax, 0x4e421c
call dword [0x4e4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e106c
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 0x404280
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e1030], 0
jne 0x404275
push 0
push 0x4e1064
push 0x4e106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4068a4
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 0x40690a
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.004045e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402efc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4068f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406911
lea eax, [ebp - 0x10]
call fcn.00404374
ret

Function at 0x409868
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404834
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409881
test al, 0x10
jne 0x409885
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c978
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 0x40c9b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404464
jmp 0x40c9ba
mov eax, ebx
mov edx, esi
call fcn.004043c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c9c4
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 0x40c9e5
mov al, byte [esp]
jmp 0x40c9e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d06c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cee4
mov eax, dword [0x4e3b40]
cmp byte [eax], 0
je 0x40d0e8
mov eax, dword [0x4e3804]
call fcn.00402cc0
call fcn.00402984
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.00409b30
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 0x40d130
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d11e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e3788]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e4668]
call fcn.00405d74
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