joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020d0
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401958
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x402186
mov eax, fcn.00401798
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x402186
mov eax, fcn.00402080
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x402186
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, 0xc6ef3720
mov edx, dword [edx + 4]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edi, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x402186
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x40214e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4021a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x4021bc
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x4021b3
pop ebp
ret

Function at 0x408e80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x408eb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00416378
jmp 0x408ec2
mov eax, ebx
mov edx, esi
call fcn.0041623c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408ecc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x408eee
movzx eax, word [esp]
jmp 0x408ef0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x409680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4097a5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00409490
mov esi, eax
mov eax, dword [0x442364]
cmp byte [eax], 0
je 0x40974d
mov eax, dword [0x4423a0]
call fcn.004147c0
call fcn.0041460c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409658]
call fcn.0041703c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097c0
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x409789
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x442424]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x442578]
call fcn.00417128
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097ac
lea eax, [ebp - 4]
mov edx, dword [0x409658]
call fcn.00417048
ret

Function at 0x40b754
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00415e90
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x40b6fe
mov eax, edi
add eax, eax
call fcn.0041443c
mov esi, eax
jmp 0x40b700
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40b739
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40b723
mov eax, esp
cmp esi, eax
je 0x40b746
mov eax, esi
call fcn.00414458
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40b780
cmp bl, 0
je 0x40b77c
cmp bl, 0x41
jl 0x40b777
cmp bl, 0x5a
jg 0x40b777
or bl, 0x20
xor al, bl
inc esi
jmp 0x40b75b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40b6c0
Function at 0x415a20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x444ebc], 0
je 0x415a81
cmp word [0x445198], 0xd7b2
jne 0x415a49
cmp dword [0x4451a0], 0
jbe 0x415a49
mov eax, 0x445194
call dword [0x4451b0]
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 0x415aac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x43b74c], 0
jne 0x415a9d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x41760c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x417773
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0041623c
cmp si, word [0x43bef0]
jb 0x4176a6
cmp si, word [0x43c0f0]
ja 0x4176a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4176a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43bef0]
jae 0x417680
mov edi, ebx
dec edi
jmp 0x4176a1
cmp si, word [ebx*8 + 0x43bef0]
jbe 0x417690
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4176a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43bef4]
call fcn.0041751c
jmp 0x4176a6
cmp edi, dword [ebp - 0xc]
jae 0x41766a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x417755
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x417755
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x164]
push 0x417790
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x168]
push 0x4177a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00416710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41777a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00416234
ret
Function at 0x4177a4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x41798a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4479d0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [0x4479e8]
cmp ax, word [ebp - 2]
jne 0x4177fc
mov eax, dword [ebp - 6]
mov edx, 0x4479ec
mov ecx, 0x55
call fcn.00416424
push 0x4479d0
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x417974
push 0x4479d0
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0041623c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x41793c
cmp byte [0x4479cc], 0
je 0x4178f2
call dword [0x4479c4]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4479c8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4178eb
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4479c0]
test al, al
je 0x4178c4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.0041443c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4479c0]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4178b9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4178b5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4178a2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004163e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41793c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4479c8]
cmp dword [ebp - 0x10], 0
je 0x4178ea
mov eax, dword [ebp - 0x10]
call fcn.00414458
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0041760c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x41793c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x417921
mov eax, dword [ebp - 6]
mov edx, 0x4179a4
call fcn.0041656c
mov eax, dword [ebp - 6]
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0041760c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0041656c
mov eax, dword [ebp - 6]
push 0x4479d0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4479e8], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004162c8
push eax
push 0x4479ec
call sub.KERNEL32.DLL_lstrcpynW
push 0x4479d0
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417991
lea eax, [ebp - 0x1c]
call fcn.0041622c
ret
Function at 0x417bc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00416224
xor eax, eax
push ebp
push 0x417dad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x417c08
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x417c22
push 0x105
mov eax, dword [ebp - 4]
call fcn.004162c8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x417d97
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x417dbc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x417cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x417dbc
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x417cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x417df0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x417cb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x417e24
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x417d97
xor eax, eax
push ebp
push 0x417d90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004179cc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x417d20
mov eax, dword [ebp - 0x10]
call fcn.0041443c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004163e8
jmp 0x417d6b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x417e64
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x417d6b
mov eax, dword [ebp - 0x10]
call fcn.0041443c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x417e64
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004163e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417d97
cmp dword [ebp - 8], 0
je 0x417d86
mov eax, dword [ebp - 8]
call fcn.00414458
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417db4
lea eax, [ebp - 4]
call fcn.0041622c
ret
Function at 0x418078
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00416224
mov eax, dword [ebp - 0x21c]
call fcn.00416224
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x418217
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0041623c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004162c8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x418118
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x41812a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x418115
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4181e3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x418153
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00417bc8
cmp dword [ebp - 0x220], 0
je 0x41818b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00417f6c
pop ecx
mov ebx, eax
jmp 0x4181e3
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004177a4
mov eax, dword [ebp - 0x224]
call fcn.00417f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4181d6
cmp byte [0x4479cc], 0
jne 0x4181d6
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004177a4
mov eax, dword [ebp - 0x228]
call fcn.00417f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4181e3
push ebp
call fcn.0041801c
pop ecx
mov ebx, eax
test bl, bl
je 0x4181f9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00416424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41821e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00416234
ret

Function at 0x4186b4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4187a0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x445754], 1
jae 0x418849
call fcn.004116dc
call fcn.00414230
call fcn.0041738c
mov byte [0x43b73c], 2
mov dword [0x444e78], 0x43a2e2
mov dword [0x444e7c], 0x43a2f4
mov byte [0x444ebe], 2
call fcn.004186b4
mov dword [0x444ec0], eax
mov dword [0x444e64], 0x416e48
call fcn.00414cb0
mov word [0x444ec8], 0xd7b0
mov word [0x445198], 0xd7b0
mov word [0x445468], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x444eb0], eax
call fcn.00412828
mov dword [0x444eac], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x44573c], eax
mov dword [0x445740], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x444ea4], eax
call fcn.004186c8
ret
Function at 0x42f9a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42f9c0
call fcn.00430b34
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x42f9df
test bl, 1
je 0x42f9df
call fcn.00436334
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x432d7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x440ee3
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x440ee5
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042e728
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00434024
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x432e8d
push esi
call fcn.0042e7d8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0042d934
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x432e64
xor eax, eax
jmp 0x432f16
push esi
call fcn.0042e7d8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0042e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0042e657
add esp, 0xc
jmp 0x432ecf
mov edi, ebx
mov edi, dword [edi + 0x24]
push edi
call fcn.0042e7d8
pop ecx
push eax
push esi
call fcn.0042e7d8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0042d954
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x432ecf
xor eax, eax
jmp 0x432f16
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042e728
add esp, 8
push 0x440ee7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042e728
add esp, 8
push 0x440ee9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042e728
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4362c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4362f5
jmp 0x43632c
call fcn.00436278
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0042e7d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0042e7d8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4363b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x441524], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x43648a
cmp dword [0x441520], 0
jne 0x43648a
cmp dword [0x441720], 0
je 0x436444
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00435d78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43642a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00435d78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43642a
lea ebx, [ebp - 0x84]
jmp 0x43642b
inc ebx
call fcn.00436368
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4364c5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x441528
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0042e7d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x44152b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4364c5
cmp dword [0x441520], 0
je 0x4364a4
cmp dword [0x441520], 0xffffffff
je 0x4364c5
push esi
call dword [0x441520]
pop ecx
mov eax, dword [0x441524]
test eax, eax
je 0x4364c5
cmp dword [0x441524], 0xffffffff
je 0x4364c5
cmp byte [eax], 0
je 0x4364c5
push esi
push eax
call fcn.004362c8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436d64
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x44878c], 0
jne 0x436de5
cmp dword [0x4487ac], 0
jne 0x436d94
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4487ac], eax
test eax, eax
jne 0x436d94
push str.GetEnvironmentStrings_failed
call fcn.004364dc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4487ac]
jmp 0x436da8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0042e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x436da0
lea edi, [ebp + 1]
push edi
call fcn.0042d934
pop ecx
mov ebx, eax
mov dword [0x448790], ebx
test ebx, ebx
jne 0x436dd2
xor eax, eax
jmp 0x436ea5
push edi
mov edx, dword [0x4487ac]
push edx
push ebx
call fcn.0042e470
add esp, 0xc
jmp 0x436e07
xor esi, esi
mov ebx, dword [0x44878c]
jmp 0x436dff
push eax
call fcn.0042e7d8
pop ecx
test eax, eax
jne 0x436dfb
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x436def
lea ebx, [esi + 4]
push 4
mov dword [0x448794], ebx
inc ebx
push ebx
call fcn.0042d898
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x436e27
xor eax, eax
jmp 0x436ea5
cmp dword [0x44878c], 0
jne 0x436e56
xor esi, esi
mov ebx, dword [0x448790]
mov ebp, dword [esp]
jmp 0x436e47
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0042e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x436e3d
jmp 0x436e87
xor esi, esi
mov ebx, dword [0x44878c]
mov edi, dword [esp]
jmp 0x436e7f
push eax
call fcn.0042e7d8
pop ecx
test eax, eax
je 0x436e74
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x436e78
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x436e63
mov eax, dword [0x44878c]
test eax, eax
je 0x436e97
push eax
call fcn.0042d944
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x44878c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret