joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d5729
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100d5750
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100d5753
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100d5705
pop esi
leave
ret 8

Function at 0x100d5910
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100d592f
mov byte [ebp - 8], 1
mov edx, ebx
jmp 0x100d5966
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov esi, 0xb7
cmp edx, esi
jne 0x100d5962
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.100d59e6
mov edx, eax
test edx, edx
jne 0x100d5962
mov eax, dword [ebp - 0x18]
shr eax, 4
test al, 1
cmove edx, esi
mov byte [ebp - 8], bl
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 4

Function at 0x100ea5f2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.100ff971
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100ea635
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100ea635
sub eax, 1
je 0x100ea630
sub eax, 1
je 0x100ea62c
xor eax, eax
leave
ret
push 3
jmp 0x100ea637
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100eadd9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x100eae0e
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x100eae0b
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x100eae17
add edx, 0x28
cmp edx, esi
jne 0x100eadf9
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100eae14
Function at 0x100f068a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101c7100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1012b4a8
push esi
call fcn.101038f9
pop ecx
pop ecx
test eax, eax
jne 0x100f06b8
xor al, al
jmp 0x100f0735
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.100f03cd
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100f06f2
push dword [ebp - 0x210]
call fcn.100fcb2a
xor al, al
jmp 0x100f0733
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100f06f8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100f0718
push edx
call fcn.100f05c0
pop ecx
test al, al
je 0x100f06e3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100f0726
mov bl, 1
push dword [ebp - 0x210]
call fcn.100fcb2a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100eaab6
leave
ret
Function at 0x100ff6ea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100ebdb0
mov eax, dword [0x101c7100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10107b16
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100ff72c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100ff888
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10117350
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101e9d88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1010ac38
mov ecx, dword [esi*4 + 0x101e9d88]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100ff881
cmp eax, dword [edi + ecx + 0x24]
jne 0x100ff881
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ff881
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010ac38
add esp, 0x14
test edx, edx
jl 0x100ff881
jg 0x100ff7f7
test eax, eax
jb 0x100ff881
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100ff881
jl 0x100ff811
cmp dword [ebp - 0x1008], eax
ja 0x100ff881
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100ff82f
test ebx, ebx
je 0x100ff868
cmp ecx, edi
jae 0x100ff868
mov al, byte [ecx]
cmp al, 0xd
jne 0x100ff849
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100ff855
cmp byte [ecx + 1], 0xa
jne 0x100ff855
inc ecx
jmp 0x100ff855
movzx eax, al
movsx eax, byte [eax + 0x101c73b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100ff82f
cmp edx, ebx
jne 0x100ff82f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100ff886
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100eaab6
leave
ret

Function at 0x1010467d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012d784
push 0x1012d77c
push str.FlsAlloc
push 0x1e
call fcn.1010446a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101046b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x101272b0]
call esi
jmp 0x101046b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x101046fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012d794
push 0x1012d78c
push str.FlsGetValue
push 0x20
call fcn.1010446a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10104732
push dword [ebp + 8]
mov ecx, esi
call dword [0x101272b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x101095fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010946b

Function at 0x1010a0f0
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 + 0x101e9d88]
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 0x1010a130
cmp byte [ebx], 0xa
jne 0x1010a130
or byte [eax + edi + 0x28], 4
jmp 0x1010a135
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1010a233
mov al, byte [edx]
cmp al, 0x1a
je 0x1010a215
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1010a164
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1010a189
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1010a193
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 0x1010a146
jmp 0x1010a233
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 0x1010a210
cmp dword [ebp - 0xc], 0
je 0x1010a210
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x101e9d88]
test byte [eax + edi + 0x28], 0x48
je 0x1010a1ea
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010a1d5
mov byte [esi], dl
jmp 0x1010a1e6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101e9d88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1010a233
cmp byte [ebp - 1], 0xa
jne 0x1010a1f9
cmp esi, ebx
jne 0x1010a1f9
mov byte [esi], 0xa
jmp 0x1010a232
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010ac56
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1010a233
mov byte [esi], 0xd
jmp 0x1010a232
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x101e9d88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010a22f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010a233
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010a23c
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 + 0x101e9d88]
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 0x1010a27f
cmp word [esi], dx
jne 0x1010a27f
or byte [edi + eax + 0x28], 4
jmp 0x1010a284
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 0x1010a3bd
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 0x1010a39d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1010a2c6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010a2fc
cmp eax, edx
jae 0x1010a308
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 0x1010a29e
jmp 0x1010a3bd
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 0x1010a399
cmp dword [ebp - 0x14], 0
je 0x1010a399
mov eax, dword [ebx*4 + 0x101e9d88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1010a371
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1010a3b7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x101e9d88]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x101e9d88]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x101e9d88]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1010a3ba
pop ebx
cmp word [ebp - 4], bx
jne 0x1010a382
cmp esi, dword [ebp + 0xc]
jne 0x1010a382
mov word [esi], bx
jmp 0x1010a3ba
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1010ac56
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1010a3bd
push 0xd
jmp 0x1010a3b6
mov ecx, dword [ebx*4 + 0x101e9d88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010a3b4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010a3bd
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 0x1010d959
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010d8db
Function at 0x1010f21b
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 0x1010f2b8
push ebx
push esi
call fcn.1010f1e4
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.1010b6ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010f265
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010f2b7
push edi
push eax
call fcn.1010362f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1010f285
call fcn.101035f5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010f2b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1010b6ca
add esp, 0x20
test eax, eax
jne 0x1010f2a4
push edi
call fcn.101035f5
jmp 0x1010f2ac
push ebx
call fcn.101035f5
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 0x1010f2bb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1010f2cc
pop esi
ret
push ebx
push edi
push esi
call fcn.1010f1e4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1010362f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1010f2f4
push ebx
push esi
push edi
call fcn.100eca50
add esp, 0xc
push 0
call fcn.101035f5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1010f6b8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010f309
Function at 0x101165a1
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.1011651d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10116719
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10116719
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101166c8
jg 0x101165fa
test eax, eax
je 0x101166be
push 1
push 0x1000
call fcn.10107de3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10116620
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x101166b5
push 0x8000
push ebx
call fcn.1011644e
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 0x1011664c
jg 0x10116647
cmp ecx, 0x1000
jb 0x1011664c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10108ec1
add esp, 0x10
cmp eax, 0xffffffff
je 0x10116691
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 0x10116647
jl 0x10116678
test ecx, ecx
jne 0x10116639
push dword [ebp - 0xc]
push ebx
call fcn.1011644e
push esi
call fcn.101035f5
add esp, 0xc
xor edi, edi
jmp 0x1011672a
cmp byte [edi + 0x24], 0
je 0x101166a8
cmp dword [edi + 0x20], 5
jne 0x101166a8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101166b3
mov edi, dword [edi + 0x18]
jmp 0x101166b5
xor edi, edi
push esi
call fcn.101035f5
pop ecx
jmp 0x1011672a
test ecx, ecx
jg 0x1011668a
jl 0x101166c8
test eax, eax
jae 0x1011668a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010ac56
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101166eb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1011668a
jmp 0x10116722
push ebx
call fcn.10105095
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1011668a
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 0x1011672a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10116727
mov edi, dword [edi + 0x18]
jmp 0x1011672a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1010ac56
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10117270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1011729d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1011729d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40d124
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
jmp 0x40d14c
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jb 0x40d144
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4461c0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4461f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044a900
jmp 0x446202
mov eax, ebx
mov edx, esi
call fcn.0044a864
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44620c
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
test eax, eax
jle 0x44622d
mov al, byte [esp]
jmp 0x44622f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4468b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x44672c
mov eax, dword [0x46ff00]
cmp byte [eax], 0
je 0x446921
mov eax, dword [0x46ff08]
call fcn.00449a0c
call fcn.00449934
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004452b8
push eax
lea eax, [esp + 0x50]
push eax
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 0x446968
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x446957
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46fe00]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470064]
call fcn.0044b018
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x4472e8
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 0x44734c
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0044aa54
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00445114
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447353
lea eax, [ebp - 0xc]
call fcn.0044a810
ret
Function at 0x449e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46d130]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x449f00
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x449ee0
xor eax, eax
push ebp
push 0x449ed9
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 0x449f1c
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 0x449ee0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x46d130]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46d130], ax
mov esp, ebp
pop ebp
ret

Function at 0x44a694
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4700c4], 0
je 0x44a6f5
cmp word [0x470298], 0xd7b2
jne 0x44a6bd
cmp dword [0x4702a0], 0
jbe 0x44a6bd
mov eax, 0x470294
call dword [0x4702b0]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x44a71c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x46d13c], 0
jne 0x44a711
push 0
push 0x46d190
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret