joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4123a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454b47
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412440
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004029b0
mov ecx, esi
call fcn.00412710
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cd02
mov esp, ebp
pop ebp
ret

Function at 0x412f40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x412f6b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x412f54
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x4142c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454df5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x4144d2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4144d2
mov ecx, esi
call fcn.004139c0
test eax, eax
je 0x4143b7
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414331
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004029b0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00412710
push 0x462a28
lea ecx, [ebp - 0x28]
call fcn.00412b30
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00412f80
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4143b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4143ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4144ee
push edx
push ecx
call fcn.0042cd10
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00410fc0
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
je 0x414404
push 0
push eax
call fcn.0043b291
mov edx, dword [ebp - 0x44]
add esp, 8
add edx, 0xfffffff0
cmp eax, 0xffffffff
je 0x414404
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4144cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4144d4
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414419
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.00413ec0
test eax, eax
je 0x4144cb
mov ecx, esi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414450
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004029b0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.00412710
push 0x462a40
lea ecx, [ebp - 0x40]
call fcn.00412b30
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.00412f80
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4144cb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4144c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4144f3
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov eax, 1
jmp 0x4144d4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cd02
mov esp, ebp
pop ebp
ret
call fcn.0043182f
call fcn.0043182f
int3
Function at 0x414590
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454e3d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x46c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x44
xor eax, eax
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x46], xmm0
movlpd qword [ebp - 0x3e], xmm0
mov word [ebp - 0x36], ax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x4c], 0x181
mov dword [ebp - 4], eax
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x41472c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4634ac
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push str.__s___s
push eax
call fcn.00411d90
add esp, 0x10
mov eax, 0xa
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4146a3
push 0x4634ac
push esi
push 1
push 0x1388
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_s__cmd:_s
push 0x46cca0
call fcn.00415860
add esp, 0x1c
mov dword [ebp - 0x18], 0
jmp 0x4146fa
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
push 0x1388
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4146db
push dword [ebp - 0x14]
push str.CQMTProcess::RunApp_WAIT_TIMEOUT_path_s.
push 0x46cca0
call fcn.00415860
add esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 1
test edi, edi
je 0x4146f3
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4146fa
push esi
call eax
mov esi, dword [ebp - 0x14]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414715
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.0040f2e0
int3
Function at 0x4446e9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45be58
push 0x45be50
push str.FlsAlloc
push 0x1e
call fcn.00444556
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44471d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4572f4]
call esi
jmp 0x444723
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x444767
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45be68
push 0x45be60
push str.FlsGetValue
push 0x20
call fcn.00444556
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44479e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4572f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44854c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46ea68]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44858c
cmp byte [ebx], 0xa
jne 0x44858c
or byte [eax + edi + 0x28], 4
jmp 0x448591
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44868f
mov al, byte [edx]
cmp al, 0x1a
je 0x448671
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4485c0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4485e5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4485ef
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4485a2
jmp 0x44868f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44866c
cmp dword [ebp - 0xc], 0
je 0x44866c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46ea68]
test byte [eax + edi + 0x28], 0x48
je 0x448646
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x448631
mov byte [esi], dl
jmp 0x448642
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46ea68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44868f
cmp byte [ebp - 1], 0xa
jne 0x448655
cmp esi, ebx
jne 0x448655
mov byte [esi], 0xa
jmp 0x44868e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004484ee
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44868f
mov byte [esi], 0xd
jmp 0x44868e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46ea68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44868b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44868f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x448698
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46ea68]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4486db
cmp word [esi], dx
jne 0x4486db
or byte [edi + eax + 0x28], 4
jmp 0x4486e0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x448833
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x448813
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x448722
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x448758
cmp eax, edx
jae 0x448764
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4486fa
jmp 0x448833
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44880f
cmp dword [ebp - 0x14], 0
je 0x44880f
mov eax, dword [ebx*4 + 0x46ea68]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4487e7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4487b0
mov word [esi], cx
jmp 0x4487e3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46ea68]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46ea68]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46ea68]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x448833
pop ebx
cmp word [ebp - 4], bx
jne 0x4487f8
cmp esi, dword [ebp + 0xc]
jne 0x4487f8
mov word [esi], bx
jmp 0x448830
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004484ee
add esp, 0x10
cmp word [ebp - 4], bx
je 0x448833
push 0xd
jmp 0x44882c
mov ecx, dword [ebx*4 + 0x46ea68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44882a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x448833
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44b21c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44b267
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044b3bb
test al, al
jne 0x44b261
sub edx, 2
cmp edx, edi
jne 0x44b247
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44b289
lea eax, [edi + 2]
cmp edx, eax
je 0x44b289
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044b168
add esp, 0x10
jmp 0x44b383
push esi
lea ecx, [ebp - 0x255]
call fcn.0044b3bb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44b2cc
push dword [ebp - 0x25c]
jmp 0x44b279
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44b309
cmp word [ebp - 0x226], 0
je 0x44b32a
cmp word [ebp - 0x226], ax
jne 0x44b309
cmp word [ebp - 0x224], 0
je 0x44b32a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044b168
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44b376
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44b2e3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44b35e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44b383
push 0x44af98
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00451db0
add esp, 0x10
jmp 0x44b353
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cd02
leave
ret

Function at 0x44bc8e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44bc9f
pop esi
ret
push ebx
push edi
push esi
call fcn.0044bc57
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00442e7b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44bcc7
push ebx
push esi
push edi
call fcn.0042ea80
add esp, 0xc
push 0
call fcn.00442e41
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44c08b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044bcdc
Function at 0x452b45
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00452ac1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x452cbd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x452cbd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x452c6c
jg 0x452b9e
test eax, eax
je 0x452c62
push 1
push 0x1000
call fcn.00444258
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x452bc4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x452c59
push 0x8000
push ebx
call fcn.00440eac
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x452bf0
jg 0x452beb
cmp ecx, 0x1000
jb 0x452bf0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004473d7
add esp, 0x10
cmp eax, 0xffffffff
je 0x452c35
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x452beb
jl 0x452c1c
test ecx, ecx
jne 0x452bdd
push dword [ebp - 0xc]
push ebx
call fcn.00440eac
push esi
call fcn.00442e41
add esp, 0xc
xor edi, edi
jmp 0x452cce
cmp byte [edi + 0x24], 0
je 0x452c4c
cmp dword [edi + 0x20], 5
jne 0x452c4c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x452c57
mov edi, dword [edi + 0x18]
jmp 0x452c59
xor edi, edi
push esi
call fcn.00442e41
pop ecx
jmp 0x452cce
test ecx, ecx
jg 0x452c2e
jl 0x452c6c
test eax, eax
jae 0x452c2e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004484ee
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x452c8f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x452c2e
jmp 0x452cc6
push ebx
call fcn.0044c514
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x452c2e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x452cce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x452ccb
mov edi, dword [edi + 0x18]
jmp 0x452cce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004484ee
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ea8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404700
test esi, esi
jne 0x402edf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004047f0
jmp 0x402f00
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d44
mov dword [esp], eax
test esi, esi
je 0x402f00
cmp dword [ebx], 0
je 0x402f00
dec esi
jmp 0x402ee7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4037c4
Capabilities:
Query or enumerate registry value

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

Function at 0x40457c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51904c], 0
je 0x4045dd
cmp word [0x519220], 0xd7b2
jne 0x4045a5
cmp dword [0x519228], 0
jbe 0x4045a5
mov eax, 0x51921c
call dword [0x519238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f8074
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 0x404604
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f8030], 0
jne 0x4045f9
push 0
push 0x4f806c
push 0x4f8074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4069bc
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 0x406a22
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.00404970
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403260
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a0c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a29
lea eax, [ebp - 0x10]
call fcn.00404700
ret

Function at 0x40c888
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 0x40c8c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047f0
jmp 0x40c8ca
mov eax, ebx
mov edx, esi
call fcn.00404754
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cf8c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cdf4
mov eax, dword [0x517f48]
cmp byte [eax], 0
je 0x40d008
mov eax, dword [0x517bf0]
call fcn.00403024
call fcn.00402c70
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.00409a34
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 0x40d050
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d03e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x517b84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x519668]
call fcn.00405e28
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