joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011edcf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1011ee6c
push ebx
push esi
call fcn.1011ed98
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1011ed2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1011ee19
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1011ee6b
push edi
push eax
call fcn.1011b9f5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1011ee39
call fcn.101187dd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1011ee6a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1011ed2c
add esp, 0x20
test eax, eax
jne 0x1011ee58
push edi
call fcn.101187dd
jmp 0x1011ee60
push ebx
call fcn.101187dd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1011ee6f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1011ee80
pop esi
ret
push ebx
push edi
push esi
call fcn.1011ed98
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1011b9f5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1011eea8
push ebx
push esi
push edi
call fcn.100edb70
add esp, 0xc
push 0
call fcn.101187dd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1011f602
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1011f11d

Function at 0x1011fab4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1013e148
push 0x1013e140
push str.FlsAlloc
push 0x1f
call fcn.1011f91f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011fae8
push dword [ebp + 8]
mov ecx, esi
call dword [0x101342e4]
call esi
jmp 0x1011faee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1011fb32
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1013e158
push 0x1013e150
push str.FlsGetValue
push 0x21
call fcn.1011f91f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011fb69
push dword [ebp + 8]
mov ecx, esi
call dword [0x101342e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1011fb71
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1013e160
push 0x1013e158
push str.FlsSetValue
push 0x22
call fcn.1011f91f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011fbab
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101342e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1011fc49
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1013e034
push str.GetTempPath2W
push 5
call fcn.1011f91f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011fc83
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101342e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10127ef3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10118f85
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10127f62
cmp esi, dword [ebp - 4]
je 0x10127f5d
cmp dword [ebp + 0xc], 0
je 0x10127f5d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10127f3a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10127a45
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10127f64
xor eax, eax
inc eax
jmp 0x10127f64
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10127fc9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10151040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10118f85
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10118f85
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10128040
cmp word [ecx], dx
je 0x10128040
mov eax, dword [0x1013eb54]
push edi
dec eax
push eax
push 0x1013ea40
call fcn.10127f68
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101280b3
cmp word [eax], dx
je 0x101280b3
mov eax, dword [edi]
test eax, eax
je 0x10128064
cmp word [eax], dx
je 0x10128064
lea eax, [ebp - 0x10]
push eax
call fcn.1012794b
jmp 0x1012806d
lea eax, [ebp - 0x10]
push eax
call fcn.101279e6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101280dd
mov eax, dword [0x1013ea3c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1013e730
call fcn.10127f68
add esp, 0xc
test al, al
je 0x101280dd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101280a8
cmp word [eax], di
je 0x101280a8
lea eax, [ebp - 0x10]
push eax
call fcn.1012794b
pop ecx
jmp 0x101280df
lea eax, [ebp - 0x10]
push eax
call fcn.101279e6
jmp 0x101280a5
mov eax, dword [edi]
test eax, eax
je 0x101280ca
cmp word [eax], dx
je 0x101280ca
lea eax, [ebp - 0x10]
push eax
call fcn.10127900
pop ecx
jmp 0x101280dd
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x101281a8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10127ded
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101281a8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101281a8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101281a8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10128135
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1011fd8f
test ebx, ebx
je 0x101281a3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1011fd8f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101281a8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101281a8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10103bb7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101281aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10089049
leave
ret
Function at 0x1012af4d
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1012aec9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1012b0bc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1012b0bc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1012b071
jg 0x1012afa9
test eax, eax
je 0x1012b067
push 1
push 0x1000
call fcn.1011cf3b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1012afcc
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1012b05e
push 0x8000
push ebx
call fcn.1012adfa
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1012aff5
jg 0x1012aff0
cmp ecx, 0x1000
jb 0x1012aff5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10122a7d
add esp, 0x10
cmp eax, 0xffffffff
je 0x1012b03a
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 0x1012aff0
jl 0x1012b021
test ecx, ecx
jne 0x1012afe2
push dword [ebp - 0xc]
push ebx
call fcn.1012adfa
push esi
call fcn.101187dd
add esp, 0xc
xor ebx, ebx
jmp 0x1012b0ca
cmp byte [edi + 0x24], 0
je 0x1012b051
cmp dword [edi + 0x20], 5
jne 0x1012b051
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1012b05c
mov ebx, dword [edi + 0x18]
jmp 0x1012b05e
xor ebx, ebx
push esi
call fcn.101187dd
pop ecx
jmp 0x1012b0ca
test ecx, ecx
jg 0x1012b033
jl 0x1012b071
test eax, eax
jae 0x1012b033
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10123727
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1012b091
cmp byte [edi + 0x1c], 0
je 0x1012b033
jmp 0x1012b0c2
push ebx
call fcn.10125e01
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1012b033
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1012b0ca
cmp byte [edi + 0x1c], 0
je 0x1012b0c7
mov ebx, dword [edi + 0x18]
jmp 0x1012b0ca
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10123727
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012d950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1012d97d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1012d97d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4029a0
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 0x4029d6
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 0x4029f4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028b4
mov edi, eax
test esi, esi
je 0x4029f4
cmp dword [ebx], 0
je 0x4029f4
dec esi
jmp 0x4029dd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403008
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x423008], 0x8088405
inc edx
mov dword [ebx + 0x423008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40334c
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x40336a
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x403374
jmp fcn.0040281c
mov eax, 0x67
jmp fcn.0040280c
ret

Function at 0x4038d4
Capabilities:
Query or enumerate registry value

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

Function at 0x404618
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x424044], 0
je 0x404679
cmp word [0x424218], 0xd7b2
jne 0x404641
cmp dword [0x424220], 0
jbe 0x404641
mov eax, 0x424214
call dword [0x424230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x423078
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 0x4046a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x423020], 0
jne 0x404695
push 0
push 0x423098
push 0x423078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f54
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406184
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406184
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4061a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406060
xor eax, eax
push ebp
push 0x406059
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d9c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40603e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4061c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40603e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406060
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40617a
cmp byte [ebp - 0xd], 0
jne 0x4060a7
cmp byte [ebp - 0x12], 0
je 0x40617a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4060c0
dec ebx
cmp byte [ebx], 0x2e
je 0x4060cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4060bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40617a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40610c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40617a
cmp byte [ebp - 0xd], 0
je 0x40617a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40617a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408fa0
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 0x408fd9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404884
jmp 0x408fe2
mov eax, ebx
mov edx, esi
call fcn.004047e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409694
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40950c
mov eax, dword [0x4238f0]
cmp byte [eax], 0
je 0x4096fc
mov eax, dword [0x423800]
call fcn.00402df4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004082bc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x409744
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409732
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4237dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x424710]
call fcn.00405d60
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

Function at 0x40a19c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a200
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004049fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f4c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a207
lea eax, [ebp - 0xc]
call fcn.00404794
ret

Function at 0x419c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004198e4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404c44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x419cde
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x423888]
mov dl, 1
mov eax, dword [0x4197dc]
call fcn.00409840
call fcn.004041f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x419ce8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x419d40
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x423980]
mov dl, 1
mov eax, dword [0x4197dc]
call fcn.00409840
call fcn.004041f4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00419914
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41cb08
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd8
mov dword [esp], edx
mov byte [esp + 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebp, eax
test ebp, ebp
jle 0x41cc26
push 0
lea eax, [esp + 0xc]
push eax
push 0x16
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push 0
push 0
push 0
push ebp
call sub.kernel32.dll_SetFilePointer_1
mov eax, 0x26
call fcn.004026d8
mov esi, eax
mov eax, 0x22
call fcn.004026d8
mov edi, eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x26
mov ebx, esi
push ebx
push ebp
call sub.kernel32.dll_ReadFile_1
mov edx, edi
mov eax, ebx
mov ecx, 0x14
call fcn.00402874
mov eax, dword [esi + 6]
mov dword [edi + 6], eax
mov eax, dword [esi + 0xa]
mov dword [edi + 0xa], eax
mov eax, dword [esi + 0xe]
mov dword [edi + 0xe], eax
mov word [edi + 0x12], 1
mov ebx, dword [esi + 0xe]
mov eax, ebx
call fcn.004026d8
mov dword [esp + 0xc], eax
push 0
push 0
mov eax, dword [esi + 0x12]
push eax
push ebp
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 0xc]
push eax
push ebx
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push ebp
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebp, eax
test ebp, ebp
jle 0x41cc0f
push ebx
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
push 3
push ebp
call sub.kernel32.dll_UpdateResourceA
push 0
push ebp
call sub.kernel32.dll_EndUpdateResourceA
mov byte [esp + 4], 1
mov eax, dword [esp + 0xc]
call fcn.004026f8
mov eax, edi
call fcn.004026f8
mov eax, esi
call fcn.004026f8
mov al, byte [esp + 4]
add esp, 0x28
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41d680
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea esi, [ebp - 0x1d4]
xor eax, eax
push ebp
push 0x41d830
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41983c]
call fcn.0041993c
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004199dc
xor ecx, ecx
mov edx, 0x41d848
mov eax, ebx
call fcn.00419a40
lea ecx, [ebp - 4]
mov edx, 0x41d860
mov eax, ebx
call fcn.00419c08
mov eax, ebx
call fcn.00403a5c
lea edx, [ebp - 0x1d8]
mov eax, dword [ebp - 4]
call fcn.0040817c
mov edx, dword [ebp - 0x1d8]
mov eax, 0x424a88
call fcn.004047e8
cmp dword [ebp - 4], 0
jne 0x41d72e
lea eax, [ebp - 4]
mov edx, 0x41d878
call fcn.0040482c
lea eax, [ebp - 0x1dc]
mov ecx, 0x41d894
mov edx, dword [ebp - 4]
call fcn.00404a98
mov edx, dword [ebp - 0x1dc]
mov eax, esi
call fcn.00402d44
mov eax, esi
call fcn.00402ac8
jmp 0x41d784
lea edx, [ebp - 8]
mov eax, esi
call fcn.0040314c
mov eax, esi
call fcn.004031b8
mov eax, dword [ebp - 8]
mov edx, dword [0x424a84]
call fcn.00404b90
jne 0x41d784
mov eax, esi
call fcn.00402ee8
jmp 0x41d805
mov eax, esi
call fcn.00402fb0
test al, al
je 0x41d757
mov eax, esi
call fcn.00402ee8
push 0x80
lea eax, [ebp - 0x1e0]
mov ecx, 0x41d894
mov edx, dword [ebp - 4]
call fcn.00404a98
mov eax, dword [ebp - 0x1e0]
call fcn.00404c44
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, esi
call fcn.00402ae0
mov edx, dword [0x424a84]
mov eax, esi
call fcn.00404d90
call fcn.00403558
mov eax, esi
call fcn.00402ee8
push 1
lea eax, [ebp - 0x1e4]
mov ecx, 0x41d894
mov edx, dword [ebp - 4]
call fcn.00404a98
mov eax, dword [ebp - 0x1e4]
call fcn.00404c44
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d837
lea eax, [ebp - 0x1e4]
mov edx, 4
call fcn.004047b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047b8
ret