joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40763b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4d4
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x4d0], eax
push ebx
push esi
mov ebx, ecx
mov edx, 0x208
push edi
lea ecx, [esp + 0x2d0]
call fcn.00402445
lea eax, [esp + 0x2d0]
push 0x426f74
push eax
call fcn.0040d770
lea eax, [esp + 0x2d8]
push str.q9m.sac
push eax
call fcn.0040d770
add esp, 0x10
lea eax, [esp + 0x2d0]
push eax
push 0x12a
lea eax, [esp + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x407729
push 0x190
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
lea esi, [esp + 0x1ac]
call fcn.00409570
add esp, 0xc
cmp byte [esp + 0x1a0], 0
je 0x40771d
push esi
mov dword [esp + edi*4 + 0x14], esi
call fcn.0040ca90
inc esi
add esi, eax
inc edi
pop ecx
cmp byte [esi], 0
jne 0x4076d7
jmp 0x40771d
push 0x4309f8
push dword [esp + edi*4 + 0x14]
call fcn.0040c780
pop ecx
pop ecx
test eax, eax
je 0x40771d
push dword [esp + edi*4 + 0x10]
push 0x42ddc8
call fcn.0040d760
pop ecx
pop ecx
mov ecx, ebx
call fcn.00407239
test ax, ax
jne 0x407724
sub edi, 1
jns 0x4076ed
jmp 0x40773a
xor eax, eax
inc eax
jmp 0x407741
push 0x4272bc
push 0x42ddc8
call fcn.0040d760
pop ecx
pop ecx
mov ecx, ebx
call fcn.00407239
mov ecx, dword [esp + 0x4dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040827c
mov esp, ebp
pop ebp
ret

Function at 0x407756
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov edx, 0x208
lea ecx, [ebp - 0x378]
call fcn.00402445
lea eax, [ebp - 0x378]
push 0x426f74
push eax
call fcn.0040d770
lea eax, [ebp - 0x378]
push str.q9m.sac
push eax
call fcn.0040d770
add esp, 0x10
mov byte [edi], 0
lea eax, [ebp - 0x378]
push eax
push 0x12a
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x407839
cmp byte [ebp - 0x170], 0
push esi
lea esi, [ebp - 0x170]
je 0x407838
push esi
push 0x42ddc8
call fcn.0040d760
push 0x4309f8
push esi
call fcn.0040c780
add esp, 0x10
test eax, eax
je 0x407829
push 0x1e
lea edx, [ebp - 0x24]
mov byte [ebp - 0x24], 0
mov ecx, 0x426df0
call fcn.004032df
pop ecx
test eax, eax
je 0x407829
push str._r_n
push edi
call fcn.0040d770
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x24]
call fcn.00403d59
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.0040d770
add esp, 0x10
push esi
call fcn.0040ca90
inc esi
add esi, eax
pop ecx
cmp byte [esi], 0
jne 0x4077d1
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040827c
leave
ret
Function at 0x414a04
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423ec8
push 0x423ec0
push str.FlsAlloc
push 0x1e
call fcn.004148c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414a38
push dword [ebp + 8]
mov ecx, esi
call dword [0x421228]
call esi
jmp 0x414a3e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414a82
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423ed8
push 0x423ed0
push str.FlsGetValue
push 0x20
call fcn.004148c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414ab9
push dword [ebp + 8]
mov ecx, esi
call dword [0x421228]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x414d07
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 + 0x42e4a8]
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 0x414d47
cmp byte [ebx], 0xa
jne 0x414d47
or byte [eax + edi + 0x28], 4
jmp 0x414d4c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414e4a
mov al, byte [edx]
cmp al, 0x1a
je 0x414e2c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x414d7b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414da0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x414daa
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 0x414d5d
jmp 0x414e4a
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 0x414e27
cmp dword [ebp - 0xc], 0
je 0x414e27
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42e4a8]
test byte [eax + edi + 0x28], 0x48
je 0x414e01
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414dec
mov byte [esi], dl
jmp 0x414dfd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42e4a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414e4a
cmp byte [ebp - 1], 0xa
jne 0x414e10
cmp esi, ebx
jne 0x414e10
mov byte [esi], 0xa
jmp 0x414e49
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414ca9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414e4a
mov byte [esi], 0xd
jmp 0x414e49
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42e4a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414e46
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414e4a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414e53
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 + 0x42e4a8]
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 0x414e96
cmp word [esi], dx
jne 0x414e96
or byte [edi + eax + 0x28], 4
jmp 0x414e9b
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 0x414fd4
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 0x414fb4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x414edd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414f13
cmp eax, edx
jae 0x414f1f
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 0x414eb5
jmp 0x414fd4
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 0x414fb0
cmp dword [ebp - 0x14], 0
je 0x414fb0
mov eax, dword [ebx*4 + 0x42e4a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414f88
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x414fce
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42e4a8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x42e4a8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42e4a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x414fd1
pop ebx
cmp word [ebp - 4], bx
jne 0x414f99
cmp esi, dword [ebp + 0xc]
jne 0x414f99
mov word [esi], bx
jmp 0x414fd1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414ca9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414fd4
push 0xd
jmp 0x414fcd
mov ecx, dword [ebx*4 + 0x42e4a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414fcb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414fd4
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 0x415871
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004156e2
Function at 0x41853a
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 0x4185d7
push ebx
push esi
call fcn.00418503
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.0041844c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418584
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4185d6
push edi
push eax
call fcn.00413711
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4185a4
call fcn.00412742
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4185d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041844c
add esp, 0x20
test eax, eax
jne 0x4185c3
push edi
call fcn.00412742
jmp 0x4185cb
push ebx
call fcn.00412742
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 0x4185da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4185eb
pop esi
ret
push ebx
push edi
push esi
call fcn.00418503
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00413711
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x418613
push ebx
push esi
push edi
call fcn.00408ff0
add esp, 0xc
push 0
call fcn.00412742
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4189d7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418628
Function at 0x41d945
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.0041d8c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41dabd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41dabd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41da6c
jg 0x41d99e
test eax, eax
je 0x41da62
push 1
push 0x1000
call fcn.0041587c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41d9c4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x41da59
push 0x8000
push ebx
call fcn.0041158b
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 0x41d9f0
jg 0x41d9eb
cmp ecx, 0x1000
jb 0x41d9f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041705e
add esp, 0x10
cmp eax, 0xffffffff
je 0x41da35
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 0x41d9eb
jl 0x41da1c
test ecx, ecx
jne 0x41d9dd
push dword [ebp - 0xc]
push ebx
call fcn.0041158b
push esi
call fcn.00412742
add esp, 0xc
xor edi, edi
jmp 0x41dace
cmp byte [edi + 0x24], 0
je 0x41da4c
cmp dword [edi + 0x20], 5
jne 0x41da4c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41da57
mov edi, dword [edi + 0x18]
jmp 0x41da59
xor edi, edi
push esi
call fcn.00412742
pop ecx
jmp 0x41dace
test ecx, ecx
jg 0x41da2e
jl 0x41da6c
test eax, eax
jae 0x41da2e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414ca9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41da8f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41da2e
jmp 0x41dac6
push ebx
call fcn.00418e7d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41da2e
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 0x41dace
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41dacb
mov edi, dword [edi + 0x18]
jmp 0x41dace
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00414ca9
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51002cd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51002d29
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.51002b6c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.51002b6c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x51002d13
inc ebx
jmp 0x51002cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51002d30
lea eax, [ebp - 8]
call fcn.51003edc
ret

Function at 0x51002d38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.51003edc
test esi, esi
jne 0x51002d6f
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.51003fcc
jmp 0x51002d90
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.51002b6c
mov dword [esp], eax
test esi, esi
je 0x51002d90
cmp dword [ebx], 0
je 0x51002d90
dec esi
jmp 0x51002d77
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x51003290
Capabilities:
Query or enumerate registry value

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

Function at 0x51003d58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51015044], 0
je 0x51003db9
cmp word [0x51015218], 0xd7b2
jne 0x51003d81
cmp dword [0x51015220], 0
jbe 0x51003d81
mov eax, 0x51015214
call dword [0x51015230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x51014068
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 0x51003de0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5101402c], 0
jne 0x51003dd5
push 0
push 0x51014060
push 0x51014068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x51005990
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 0x510059f6
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.5100414c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.51002e84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x510059e0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510059fd
lea eax, [ebp - 0x10]
call fcn.51003edc
ret

Function at 0x51009c0c
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 0x51009c45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.51003fcc
jmp 0x51009c4e
mov eax, ebx
mov edx, esi
call fcn.51003f30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x5100a310
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x5100a178
mov eax, dword [0x51014514]
cmp byte [eax], 0
je 0x5100a38c
mov eax, dword [0x5101442c]
call fcn.51002e00
call fcn.51002a98
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.51007560
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 0x5100a3d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x5100a3c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x51014408]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x51015660]
call fcn.51004e20
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 0x5100b0d4
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 0x5100b138
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.5100414c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.51007114
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5100b13f
lea eax, [ebp - 0xc]
call fcn.51003edc
ret

Function at 0x5100bda8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.51003edc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.51004378
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x5100bded
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.51003fcc
jmp 0x5100be06
mov edx, ebx
dec edx
mov eax, esi
call fcn.510044a8
push ebx
mov eax, dword [esi]
call fcn.51004378
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x51012e1c
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.51012a6c
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.51004378
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x51012e7a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5101449c]
mov dl, 1
mov eax, dword [0x51012964]
call fcn.5100a4d0
call fcn.51003914
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x51012e84
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.51004378
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x51012edc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x51014590]
mov dl, 1
mov eax, dword [0x51012964]
call fcn.5100a4d0
call fcn.51003914
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.51012a9c
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 0x510130f4
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameA
cmp dword [ebp - 4], 0
je 0x5101313c
cmp dword [ebp - 0x10], 0
jne 0x51013148
mov eax, esi
call fcn.51003edc
jmp 0x510131d5
mov eax, dword [ebp - 4]
call fcn.51002994
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
call fcn.51002994
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x510131ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameA
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ConvertSidToStringSidA
test eax, eax
je 0x510131a5
mov eax, esi
mov edx, dword [ebp - 0x18]
call fcn.510040d4
jmp 0x510131ac
mov eax, esi
call fcn.51003edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510131d5
mov eax, dword [ebp - 8]
push eax
call fcn.5100556c
pop ecx
mov eax, dword [ebp - 0x14]
push eax
call fcn.5100556c
pop ecx
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret