joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101bf6a0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101bf88d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16d000]
push edi
or ebp, 0xffffffff
jmp 0x101bf6ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101bf6d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101bf6c0
mov eax, 1
add ebx, ebx
jne 0x101bf6e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101bf6f4
jne 0x101bf713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101bf713
dec eax
add ebx, ebx
jne 0x101bf700
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101bf6d8
add ebx, ebx
jne 0x101bf70f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101bf765
xor ecx, ecx
sub eax, 3
jb 0x101bf72b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101bf79a
sar eax, 1
mov ebp, eax
jmp 0x101bf736
add ebx, ebx
jne 0x101bf736
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101bf704
inc ecx
add ebx, ebx
jne 0x101bf744
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101bf704
add ebx, ebx
jne 0x101bf751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101bf746
jne 0x101bf762
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101bf746
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101bf784
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101bf776
jmp 0x101bf6c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101bf784
add edi, ecx
jmp 0x101bf6c6
pop esi
mov edi, esi
mov ecx, 0x2965
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101bf7a2
cmp byte [edi], 0x1b
jne 0x101bf7a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x101bf7a7
lea edi, [esi + 0x1ba000]
mov eax, dword [edi]
or eax, eax
je 0x101bf81f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1bf3dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1bf490]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101bf7d4
mov ecx, edi
jns 0x101bf803
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1bf494]
or eax, eax
je 0x101bf819
mov dword [ebx], eax
add ebx, 4
jmp 0x101bf7f1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101bf850
cmp al, 0xef
ja 0x101bf843
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101bf825
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101bf832
mov ebp, dword [esi + 0x1bf498]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101bf884
sub esp, 0xffffff80
jmp 0x1009d653
Function at 0x413680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x443080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x44458c]
mov eax, dword [0x444588]
mov edx, ecx
add edx, 0xf71b9ddd
sub edx, 1
sub edx, 0xf71b9ddd
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [ebp - 0x1a], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x19], al
mov dword [ebp - 0x20], 0xe5b09f15
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
sub eax, 0x8645234f
je 0x41380a
jmp 0x4136f5
mov eax, dword [ebp - 0x2c]
sub eax, 0x904e6b91
je 0x413867
jmp 0x413708
mov eax, dword [ebp - 0x2c]
sub eax, 0x916fd3f6
je 0x413826
jmp 0x41371b
mov eax, dword [ebp - 0x2c]
sub eax, 0xbc2da037
je 0x4137fe
jmp 0x41372e
mov eax, dword [ebp - 0x2c]
sub eax, 0xe5b09f15
je 0x413759
jmp 0x413741
mov eax, dword [ebp - 0x2c]
sub eax, 0x674d4bff
je 0x41377f
jmp 0x413754
jmp 0x41386e
mov al, byte [ebp - 0x1a]
mov cl, byte [ebp - 0x19]
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x904e6b91
mov ecx, 0x674d4bff
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x41386e
push eax
mov eax, esp
mov dword [ebp - 0x18], eax
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov ecx, dword [0x44458c]
mov eax, dword [0x444588]
mov edx, ecx
add edx, 0x9dee14ef
sub edx, 1
sub edx, 0x9dee14ef
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x904e6b91
mov ecx, 0xbc2da037
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x41386e
mov dword [ebp - 0x20], 0x8645234f
jmp 0x41386e
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [ebp - 0x20], 0x916fd3f6
jmp 0x41386e
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
mov ecx, dword [edx]
mov edi, dword [esi]
not byte [edi]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
add byte [edi], 0x86
sub byte [edi], 0x37
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
imul byte [edi]
inc edi
loop 0x413838
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bf40
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0x674d4bff
jmp 0x4136df
Function at 0x413880
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0x47fb0af3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
sub eax, 0x8fcde4c6
je 0x413aac
jmp 0x4138ba
mov eax, dword [ebp - 0x20]
sub eax, 0xd161092d
je 0x41399a
jmp 0x4138cd
mov eax, dword [ebp - 0x20]
sub eax, 0xf65e0029
je 0x413a53
jmp 0x4138e0
mov eax, dword [ebp - 0x20]
sub eax, 0x96d2e56
je 0x413a6e
jmp 0x4138f3
mov eax, dword [ebp - 0x20]
sub eax, 0x2264435c
je 0x413a0d
jmp 0x413906
mov eax, dword [ebp - 0x20]
sub eax, 0x47fb0af3
je 0x413957
jmp 0x413919
mov eax, dword [ebp - 0x20]
sub eax, 0x56f45659
je 0x413abf
jmp 0x41392c
mov eax, dword [ebp - 0x20]
sub eax, 0x7888f8c2
je 0x413ab8
jmp 0x41393f
mov eax, dword [ebp - 0x20]
sub eax, 0x7bbc2022
je 0x413a8a
jmp 0x413952
jmp 0x413ac6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, 0xffffffff
mov edx, 0xffffffff
xor edx, 2
mov ecx, 0xffffffff
xor ecx, 0xf7b4ed59
or eax, edx
or ecx, 0xf7b4ed59
xor eax, 0xffffffff
and eax, ecx
cmp eax, 0
sete al
and al, 1
mov byte [ebp - 0xd], al
mov dword [ebp - 0x1c], 0xd161092d
jmp 0x413ac6
mov ecx, dword [0x444584]
mov eax, dword [0x444580]
mov edx, ecx
sub edx, 0x9bb1776c
sub edx, 1
add edx, 0x9bb1776c
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x56f45659
mov ecx, 0x2264435c
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x413ac6
mov eax, dword [0x444584]
mov ecx, dword [0x444580]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x56f45659
mov ecx, 0xf65e0029
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x413ac6
mov dl, byte [ebp - 0xd]
mov eax, 0x7888f8c2
mov ecx, 0x96d2e56
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x413ac6
mov ecx, dword [ebp - 0x18]
mov eax, ecx
and eax, 2
xor ecx, 2
or eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x7bbc2022
jmp 0x413ac6
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub esp, 8
mov dword [ebp - 0x1c], 0x8fcde4c6
jmp 0x413ac6
mov dword [ebp - 0x1c], 0x7888f8c2
jmp 0x413ac6
add esp, 0x20
pop esi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], 0x2264435c
jmp 0x4138a4
Function at 0x42c80b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42c84a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c84a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c84a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42c84a
cmp dword [ecx + 0x74], 0xe
jbe 0x42c84a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433fab
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 0x434048
push ebx
push esi
call fcn.00433f74
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.00433f08
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x433ff5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434047
push edi
push eax
call fcn.00432a40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x434015
call fcn.00432a8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434046
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00433f08
add esp, 0x20
test eax, eax
jne 0x434034
push edi
call fcn.00432a8e
jmp 0x43403c
push ebx
call fcn.00432a8e
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 0x435259
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e000
push 0x43dff8
push str.FlsAlloc
push 0x1f
call fcn.00435118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43528d
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b144]
call esi
jmp 0x435293
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4352d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e010
push 0x43e008
push str.FlsGetValue
push 0x21
call fcn.00435118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43530e
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x435316
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e018
push 0x43e010
push str.FlsSetValue
push 0x22
call fcn.00435118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435350
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43b144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43a620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43a64d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43a64d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403290
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 0x4032e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.0040312c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040312c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x4032d3
inc ebx
jmp 0x4032bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032f0
lea eax, [ebp - 8]
call fcn.00404cd4
ret

Function at 0x4032f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cd4
test esi, esi
jne 0x40332f
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.00404dc4
jmp 0x403350
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.0040312c
mov dword [esp], eax
test esi, esi
je 0x403350
cmp dword [ebx], 0
je 0x403350
dec esi
jmp 0x403337
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403c14
Capabilities:
Query or enumerate registry value

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

Function at 0x404acc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d104c], 0
je 0x404b2d
cmp word [0x5d1220], 0xd7b2
jne 0x404af5
cmp dword [0x5d1228], 0
jbe 0x404af5
mov eax, 0x5d121c
call dword [0x5d1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5b6078
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 0x404b54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5b6034], 0
jne 0x404b49
push 0
push 0x5b6070
push 0x5b6078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c88
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402e64
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5d104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c50
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407188
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 0x4071ee
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.00404f44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403668
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4071d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071f5
lea eax, [ebp - 0x10]
call fcn.00404cd4
ret

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

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

Function at 0x40fa08
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 0x40fa41
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dc4
jmp 0x40fa4a
mov eax, ebx
mov edx, esi
call fcn.00404d28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x410aa4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x410b7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d6c
lea eax, [ebp - 8]
call fcn.004051e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405194
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x410b64
mov eax, ebx
call fcn.00402e64
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x410b5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405194
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x410b47
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x410b8c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410b47
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410b64
mov eax, dword [ebp - 0x10]
call fcn.00402e94
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410b81
lea eax, [ebp - 8]
call fcn.00404cd4
ret
Function at 0x4111ec
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 0x411250
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.00404f44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040c6ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411257
lea eax, [ebp - 0xc]
call fcn.00404cd4
ret

Function at 0x411a48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x5cfb38]
cmp dword [eax], 0
je 0x411a7e
push 0xa
push 0x411ad4
mov eax, dword [0x5cfb38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x5cfb38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x411aca
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x5cff54]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x411aca
mov ebx, dword [esp + 4]
push 0xa
push 0x411ad4
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x411aca
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x411a95
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4277c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x42780d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004275ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x427825
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42782c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004275ec
dec esi
jne 0x42784e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x428990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5d3ab0
cmp dword [edi], 0
jne 0x428a0c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5d3aac]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5b6c9c
mov ecx, 2
call fcn.004030ec
mov edx, 0x428968
lea eax, [esi + 5]
call fcn.00428988
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00428988
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4289e1
mov dword [0x5d3aac], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a060
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42a066
ret

Function at 0x42c810
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42c861
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42c848
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42c838
jmp 0x42c861
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42c849
pop ebx
mov esp, ebp
pop ebp
ret