joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5249f1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x524a29
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00522a96
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00522a6e
jmp 0x524a35
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5261ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x526231
call fcn.0052ca0a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x526231
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x526228
xor eax, eax
jmp 0x526239
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052623f
pop edi
pop esi
pop ebx
ret 4

Function at 0x52cf3a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x52cf68
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x52cf86
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052cea0
jmp 0x52cf86
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52cf86
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0052cea0
test edi, edi
mov eax, edi
jne 0x52cf70
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x95545a
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
bsr cx, bp
pushal
clc
mov dword [esp + 0x21], ecx
pop word [esp + 0x14]
jmp 0x95545d
push edx
jmp 0x955441
lea esp, [esp + 0xa]
xchg ebp, ebx
xchg ah, bl
xchg dword [esp + 0xd], eax
pop dword [esp]
jmp 0x9554dd
lea esp, [esp + 0x1d]
xchg dx, di
setl dh
mov edx, 0xb879297a
mov al, 0x5e
lea esp, [esp + 1]
jmp 0x9554c7
xchg ah, bl
push edx
bswap eax
pop dword [esp + 0xe]
pop dword [esp + 3]
rcr ebp, 0x1f
jmp 0x95548b
xchg byte [esp], dl
xchg bp, ax
lea ecx, [ebp - 0xef]
bsr cx, cx
jmp 0x9555a3
push dword [esp + 0xf]
bsf di, ax
xchg dh, al
cpuid
xchg bh, cl
mov eax, ebp
jmp 0x9554b5
setne bh
mov word [esp + 0x1b], bx
add bp, 0x9826
pushal
lea esp, [esp + 0x41]
rdtsc
call fcn.00955510
lea esp, [esp + 5]
not eax
mov word [esp], dx
not ax
push edx
add esp, 4
jmp 0x95558d
not dh
bswap edx
mov dh, byte [esp + 3]
bswap edx
sub esp, 0x1a
jmp 0x95568f
mov ah, byte [esp]
pushal
push word [esp + 7]
bsr bx, cx
mov eax, dword [esp + 0xf]
pop ax
jmp 0x955531
mov cx, dx
popal
mov al, ah
bswap edi
bswap eax
mov bx, word [esp + 3]
jmp 0x955677
mov dword [esp], eax
mov dx, word [esp + 0x18]
sub esp, 0x1e
rcr ebx, 0xb
mov dh, byte [esp + 0x1c]
jmp 0x9555d1
xchg word [esp + 0xf], cx
not cx
mov bx, 0xd83d
rol si, cl
mov ecx, 0xe12fd18a
mov dl, dh
jmp 0x9555e9
btc edi, edi
pop ebp
mov ax, word [esp + 0xc]
pop dword [esp + 0xd]
push esp
neg esi
jmp 0x95564c
pop dword [esp]
bsf di, ax
mov dx, 0x8af1
pushal
mov ebx, 0x3d9bbdb4
not ah
jmp 0x955619
mov cl, 0x12
lea ebx, [ebp*4]
setae dh
cpuid
btc eax, edi
mov di, 0xfa31
jmp 0x9556cf
add esp, 0x10
not esi
mov dword [esp + 5], ebp
xchg byte [esp + 4], bl
lea esi, [esp + ecx]
jmp 0x955637
pop word [esp + 0xe]
push word [esp + 0xb]
mov cl, ch
mov byte [esp + 3], dh
and ebx, ecx
pop bp
jmp 0x955601
xchg byte [esp + 3], dl
push esp
mov dl, dh
bswap edx
lea ebp, [ebx + edi]
xchg esi, eax
jmp 0x9556f6
setp bh
pop edi
sub esp, 4
mov bp, bx
pop edx
lea esp, [esp + 1]
jmp 0x9556a8
and cl, bh
xchg dword [esp + 0xc], esi
bsf dx, si
call fcn.009556b7
mov ebx, dword [ebx]
mov ebp, esi
sbb eax, 0x66c9fe9c
mov ebp, 0xdcf6fb5b
Function at 0x9556b7
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp + 0xc], edx
mov edi, esi
xchg word [esp + 0x15], bx
jmp 0x9556e0
popal
pushal
pop dword [esp + 0xa]
lea esi, [eax + 0xe1]
mov cl, ch
jmp 0x955b3c
lea edx, [ebp*4]
pop ebp
mov bx, word [esp + 0xa]
cpuid
bswap ecx
mov dl, 0x44
jmp 0x955aac
int1
and bl, byte [ebp - 0x54]
lea ebx, [edx + edi]
cpuid
mov byte [esp + 0x11], ah
not ebx
mov ebx, 0xe09d7a46
jmp 0x955725
jp 0x9556f8
loopne 0x955748
invalid
cpuid
inc bl
mov word [esp + 0x1c], di
lea edx, [eax - 0x51]
lea esp, [esp + 5]
mov eax, ebp
jmp 0x95574c
lea esi, [ecx - 0x7917bb3d]
mov byte [esp + 1], bh
mov word [esp + 7], di
setg dh
jmp 0x9557f5
add esp, 0x19
mov eax, ebp
sub esp, 0xe
mov dx, word [esp + 2]
pop esi
mov dh, byte [esp]
jmp 0x955777
pop dword [esp + 9]
sub esp, 0x10
mov edi, 0x24f507ae
push word [esp + 9]
call fcn.00955882
or al, 0x8c
add ah, byte [ebp - 0x6c]
jne 0x955759
sbb dword [ecx - 0x704e418], ecx
invalid
sub esp, 0x10
cpuid
mov byte [esp + 1], dh
mov ebx, dword [esp + 0xc]
xchg word [esp + 0x11], si
mov ebx, dword [esp + 2]
jmp 0x9557a2
lea ebx, [eax*4]
and esi, ecx
pop bx
bswap edx
pop dword [esp]
mov ebx, dword [esp + 1]
jmp 0x9557c8
xchg byte [esp + 0xa], bl
bswap ebx
mov dh, byte [esp + 0x13]
lea edi, [ecx + 0x23]
mov word [esp + 0xe], sp
rdtsc
jmp 0x95578f
mov cx, dx
sub esp, 0x16
mov dx, 0xb537
btr esi, edx
mov eax, dword [esp + 5]
rdtsc
jmp 0x95581e
not eax
push dword [esp + 2]
mov word [esp], sp
pop dword [esp]
mov cl, 0x2a
mov si, 0xb7e7
jmp 0x9558ef
xchg byte [esp + 0x10], al
cpuid
lea esp, [esp + 0x13]
xchg byte [esp + 1], dl
mov dword [esp], esi
xchg edx, ebp
jmp 0x955975
mov edx, 0x9852ae7e
mov cl, ch
pop di
mov bp, sp
xchg dword [esp + 0xc], edi
setae bh
jmp 0x955763
Function at 0x955931
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
pop dword [esp + 2]
not ebp
xchg esi, edx
cpuid
lea edi, [ebx + ebp]
jmp 0x955923
jmp 0x955907
rdtsc
not bp
setp ah
call 0x955931
pop edx
sub ebx, eax
mov edi, 0xb71bf008
bsf di, si
jmp 0x955a0b
mov word [esp], dx
push dword [esp + 3]
pop word [esp + 4]
mov ebx, dword [esp]
jmp 0x9559cf
setle ah
ror esi, 0xb
mov bx, word [esp + 0x22]
cld
popal
stc
jmp 0x95598d
rcl di, cl
add esp, 0x36
xchg byte [esp], bl
cpuid
mov cx, word [esp]
not bx
jmp 0x955a8e
xchg word [esp + 4], si
sub esp, 0x12
lea ebx, [eax*4]
pushal
rdtsc
mov bx, 0x9f37
jmp 0x9559b5
xchg edi, eax
mov byte [esp + 0xb], ah
rdtsc
push word [esp + 0x1e]
mov word [esp + 0x1e], di
cmc
jmp 0x9559a5
not di
inc dl
sub esp, 0x16
mov esi, 0xe6756260
pop word [esp + 0x13]
not ebx
jmp 0x9559f1
xchg word [esp + 0x21], bx
pop esi
xchg ch, dl
push word [esp + 0xb]
mov esi, ecx
sub esp, 4
jmp 0x955a4e
clc
neg edx
neg bx
rol bx, cl
push dword [esp + 6]
sub esp, 0xc
jmp 0x955a21
mov di, word [esp + 0x16]
xchg di, ax
not si
pushal
lea esp, [esp + 0x48]
bswap esi
jmp 0x955ae1
mov dword [esp + 0x11], esi
mov edx, dword [esp + 0xd]
pop esi
mov ecx, ebp
lea eax, [edx + edi]
push dword [esp + 2]
jmp 0x955a3c
mov byte [esp + 1], ch
add esp, 1
sub esp, 0x10
setns bh
add al, dh
push dword [esp + 8]
jmp 0x955a6f
mov al, ah
rcr ah, 1
call fcn.00955b23
mov word [edx], ss
and bh, 0x12
xchg ebp, eax
adc edx, dword [edi + 0x4b916207]
mov ecx, dword [eax]
sahf
stc
or dh, ch
and eax, 0xc2fef854
clc
inc dl
not ebx
bswap ebp
btr ebp, edx
mov dl, byte [esp]
jmp 0x955ac4

Function at 0x955af0
Capabilities:
Execute anti-debugging instructions

Disassembly:
rcl ax, cl
jmp 0x955bc8
setp ah
not ebx
pop dword [esp + 0xa]
lea eax, [ecx + edi]
pop dword [esp + 6]
mov bl, 0xe8
jmp 0x955ba6
not ch
not dx
pop esi
mov al, ah
xchg word [esp + 1], cx
mov ebx, ebp
jmp 0x955b54
pop cx
mov al, ah
mov bl, bh
rdtsc
not dh
xchg word [esp + 0x13], si
jmp 0x955b70
xor ax, 0xae2c
bsr ax, bp
pop dword [esp]
inc al
mov byte [esp + 6], bh
pop word [esp + 9]
jmp 0x955cfd
mov byte [esp + 2], ch
mov ebp, dword [esp + 3]
cpuid
xchg word [esp + 1], dx
mov eax, dword [esp + 1]
pushal
jmp 0x955b95
add esp, 0
pushal
mov ch, byte [esp + 0xb]
lea edx, [eax + 0x31]
call fcn.00955bde
imul ebp, ebx, 0x7b
push ds
in eax, dx
add eax, 0x5b78198e
mov dl, 0xfc
mov di, word [esp]
xchg bp, ax
sub bl, ah
stc
inc edi
jmp 0x955bf4
lea edi, [edx + ebx]
bsr cx, cx
lea esp, [esp + 3]
lea esp, [esp + 0xc]
not dh
mov si, dx
jmp 0x955c0e
lea ebp, [esi*4]
mov dword [esp + 3], esi
rdtsc
lea esi, [edx*4]
rcr bh, 3
neg cx
jmp 0x955cd4
Function at 0x95631b
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
inc edi
mov byte [0x2f75bcf9], al
ror byte [esi - 0x24], cl
std
ret
xchg ecx, eax
std
mov cl, 0x7d
in eax, 0x24
cmp byte [edx - 0x36ab19a3], cl
movsd dword es:[edi], dword [esi]
lodsb al, byte [esi]
sub dl, byte [edi + ebp]
adc ecx, dword [esi]
add dl, bh
xchg ebx, eax
jl 0x75e403
dec edi
pop edi
les edx, [ebx - 0x16ba8ec7]
sbb eax, 0xaabeffa6
or dword [eax - 0x3f], 0x63
xor eax, 0x9ca68b9c
pop eax
mov dword [0xc05da589], eax
sbb edx, ebp
cwde
jno 0x75e3f0
rol dword [ebp + 0x2215dd5b], cl
xor dword [0x3dba6795], ebx
mov esp, 0x922f3703
fiadd word [eax]
inc ebx
mov dword [eax + 0x3ff083a3], esp
adc eax, 0x4999c15b
int3
out dx, eax
and dword [eax], ecx
loopne 0x75e409
push edx
mov bh, 0xf9
xchg ebx, eax
in al, 0x2b
inc ebx
fidiv dword [edx]
mov ecx, 0x39dfa5c1
loop 0x75e49b
dec ecx
cmpsd dword [esi], dword es:[edi]
invalid
leave
jne 0x75e4c8
cmp cl, dh
ljmp 0x4410
xchg edx, eax
invalid
call 0x95301d
jmp 0x9547c3
mov word [esp + 2], di
sub esp, 8
push esp
lea esp, [esp + 1]
lea esp, [esp + 0x10]
sub esp, 2
call fcn.00953016
mov di, 0xcf21
pop word [esp]
xchg word [esp + 0x1b], di
neg edi
mov word [esp + 0x15], sp
pushal
jmp 0x953091
mov di, word [esp]
btc edi, ebx
bswap edi
clc
lea edi, [eax + edi]
bsf di, si
jmp 0x9530d6
lea esp, [esp + 0x41]
bsr di, cx
mov di, 0xd6eb
neg di
mov di, word [esp]
jmp 0x95306e
push edx
pop dword [esp]
sub esp, 0x18
xchg dword [esp + 7], edi
lea edi, [ecx + edx]
jmp 0x95314e
push edx
lea edi, [ecx + 0x2b]
mov edi, dword [esp + 3]
lea edi, [esi + 0xcd]
xchg dword [esp], edi
neg edi
jmp 0x9530c0
lea edi, [esp + esi]
call fcn.00953135
pop dword [esp + 4]
clc
mov dword [esp + 5], ebp
call fcn.00953173
fist word [ebx - 0x3d]
cmpsb byte [esi], byte es:[edi]
push ebp
mov cl, 0x56
shl dword [esi - 0x75], 0x7c
mov di, word [esp + 0x12]
jmp 0x953156
lea esp, [esp + 1]
sub esp, 4
cmc
mov dword [esp], eax
add esp, 0
pop word [esp + 1]
jmp 0x95302d
inc dword [eax + 0x62903f]
pushfd
stc
cld
push edx
jmp 0x9531ec
push eax
jmp 0x953018
je 0x95330f
lea esp, [esp + 8]
popal
jmp 0x75e460
pop eax
sub eax, 0x95301d
cmp dword [eax + 0x62903f], 0
jmp 0x9544dd
call 0x95503e
jmp 0x95636e
movzx ebx, word [eax + 0x3c]
jmp 0x956391
mov word [esp], bx
jmp 0x9563c7
push eax
jmp 0x955039
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
jmp 0x95644f
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x956368
add ebx, eax
cmp word [ebx], 0x4550
jmp 0x9563fe
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x956387
lea esp, [esp + 3]
lea esp, [esp]
mov byte [esp], ah
lea esp, [esp + 1]
mov dword [esp + 0x3c], edi
lea esp, [esp + 0x3c]
jmp 0x9563aa
cli
popfd
insb byte es:[edi], dx
mov ss, word [ecx]
je 0x953ae5
jne 0x956455
sahf
adc al, byte [eax + 0x1cf912e7]
xchg edi, eax
pop es
bound edx, qword [ecx - 0x61f76584]
stc
or dl, ch
xor al, 0xa5
xor eax, 0x4644af5c
salc
inc esp
and ebx, esi
jns 0x9563f9
dec ebx
fstp xword [esi - 0x138545b3]
bound eax, qword [0xf96c41f4]
imul ecx, dword [eax], 0xda4e50fb
dec eax
das
fisubr dword [esp + ebp*4 + 0x3f]
scasd eax, dword es:[edi]
retf 0xee39
je 0x9550e1
sub eax, 0x10000
jmp 0x956372
Function at 0x956b53
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 0x1e]
mov edx, 0xa2b29f1a
lea esp, [esp + 0x2d]
xchg byte [esp + 1], dl
xchg word [esp + 3], ax
jmp 0x955049
inc bx
mov cx, di
neg di
pop di
stc
push dword [esp + 0xf]
jmp 0x954ffa
mov ecx, 0x14cb584a
cpuid
xchg dh, al
call fcn.00955080
push word [esp + 7]
xchg word [esp + 0xb], di
xchg dword [esp + 4], ecx
mov byte [esp], dh
xchg dword [esp + 6], edi
xchg edx, ebx
jmp 0x95502b
cmc
mov bl, 0xf0
bswap eax
mov dword [esp + 8], esi
mov bx, 0x42c1
pushal
jmp 0x95501a
push esp
not ebp
sub esp, 0
lea edx, [esi - 0x35]
neg cx
push dword [esp + 9]
jmp 0x9550f1
mov bp, 0xfb5b
neg ah
sub cx, 0x7f08
lea edx, [esp + ebp]
rdtsc
sub esp, 0xa
jmp 0x9555bc
inc eax
rdtsc
xchg ebx, edx
add esp, 0
lea ebp, [ebx + edi]
mov al, 0x8e
jmp 0x95570d
bsr si, cx
neg ah
add esp, 1
mov bx, 0xbabb
mov dx, word [esp + 2]
xchg bp, ax
jmp 0x955d60
xchg dh, al
pop ebp
push word [esp + 1]
xchg cx, si
xchg edi, esi
jmp 0x955fe1
Function at 0x707c2920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x707c297b
cmp byte [esi + ebx - 1], 0xa
je 0x707c294f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x707c80a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402ba4
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.00404bcc
test esi, esi
jne 0x402bda
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.00404cbc
jmp 0x402bf8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ab8
mov edi, eax
test esi, esi
je 0x402bf8
cmp dword [ebx], 0
je 0x402bf8
dec esi
jmp 0x402be1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403b68
Capabilities:
Query or enumerate registry value

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

Function at 0x4049ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50604c], 0
je 0x404a0d
cmp word [0x506220], 0xd7b2
jne 0x4049d5
cmp dword [0x506228], 0
jbe 0x4049d5
mov eax, 0x50621c
call dword [0x506238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x50107c
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 0x404a34
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x501034], 0
jne 0x404a29
push 0
push 0x501074
push 0x50107c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b80
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.0040287c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x50604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b48
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406704
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 0x406934
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406787
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406934
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406787
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406950
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406810
xor eax, eax
push ebp
push 0x406809
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040654c
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 0x4067ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406970
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4067ee
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 0x406810
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 0x40692a
cmp byte [ebp - 0xd], 0
jne 0x406857
cmp byte [ebp - 0x12], 0
je 0x40692a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406870
dec ebx
cmp byte [ebx], 0x2e
je 0x40687f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40686f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40692a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4068bc
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 0x40692a
cmp byte [ebp - 0xd], 0
je 0x40692a
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 0x40692a
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 0x407040
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 0x4070a6
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.00404e3c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040349c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407090
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070ad
lea eax, [ebp - 0x10]
call fcn.00404bcc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040508c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a055
test al, 0x10
jne 0x40a059
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d0d8
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 0x40d111
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404cbc
jmp 0x40d11a
mov eax, ebx
mov edx, esi
call fcn.00404c20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d7cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d644
mov eax, dword [0x504e68]
cmp byte [eax], 0
je 0x40d848
mov eax, dword [0x5049f0]
call fcn.00403068
call fcn.004029e4
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.0040a244
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 0x40d890
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d87e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x504940]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x506668]
call fcn.00406510
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 0x40e15c
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 0x40e232
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c64
lea eax, [ebp - 8]
call fcn.004050dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040508c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e21c
mov eax, ebx
call fcn.0040287c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e215
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.0040508c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e1ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e244
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e1ff
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 0x40e21c
mov eax, dword [ebp - 0x10]
call fcn.0040289c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e239
lea eax, [ebp - 8]
call fcn.00404bcc
ret

Function at 0x40e7fc
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 0x40e860
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.00404e3c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409c68
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e867
lea eax, [ebp - 0xc]
call fcn.00404bcc
ret

Function at 0x4251b4
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.0042500c
dec esi
jne 0x4251d6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret