joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429510
Capabilities:
Contain obfuscated stackstrings
Get disk information

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov esi, dword [0x455718]
mov dword [esp + 0x10], 0x9f5299bd
mov dword [esp + 0x14], 0xa3459d6f
mov dword [esp + 0x18], 0xa74aa141
mov dword [esp + 0x1c], 0xab5aa565
mov dword [esp + 0x20], 0xaf6aa958
mov dword [esp + 0x24], 0xb346ad4d
mov dword [esp + 0x28], 0xb793b151
mov dword [esp + 0x2c], 0xb5b4
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1f
ja 0x42959b
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x10]
push dword [esp + 4]
push eax
call fcn.0042bc80
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x20
jb 0x429570
lea edi, [esp + 0x60]
lea eax, [esp + 0x10]
push edi
push 0
push 0
push 0xe
push eax
push 0
call esi
mov ebx, dword [esp + 0x60]
test ebx, ebx
jns 0x4295be
mov eax, 0xffffffff
jmp 0x4295c1
lea eax, [ebx + ebx]
push eax
call fcn.0040ca90
add esp, 4
mov esi, eax
mov ebp, dword [0x455718]
mov dword [esp + 0x10], 0x29662b4f
mov dword [esp + 0x14], 0x2d8b2f99
mov dword [esp + 0x18], 0x319e338b
mov dword [esp + 0x1c], 0x35863777
mov dword [esp + 0x20], 0x397e3b84
mov dword [esp + 0x24], 0x3d8a3f9f
mov dword [esp + 0x28], 0x169039b
mov word [esp + 0x2c], 0x700
mov dword [esp + 0x2e], 0
mov byte [esp + 0x32], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x22
ja 0x42965b
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x10]
push dword [esp + 4]
push eax
call fcn.0042bcd0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x23
jb 0x429630
push edi
push ebx
push esi
push 0xe
lea eax, [esp + 0x20]
push eax
push 0
call ebp
mov eax, dword [esp + 0x60]
mov ecx, eax
add ecx, 9
jns 0x42967b
mov eax, 0xffffffff
jmp 0x429682
lea eax, [eax*2 + 0x12]
push eax
call fcn.0040ca90
add esp, 4
mov edi, eax
mov dword [esp + 0x10], 0x77a679dc
mov dword [esp + 0x14], 0x73cd75d5
mov dword [esp + 0x18], 0x4fef71c7
mov dword [esp + 0x1c], 0x4bf74df7
mov dword [esp + 0x20], 0x474649c7
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x13
ja 0x4296fb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x10]
push dword [esp + 4]
push eax
call fcn.0042bd30
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x14
jb 0x4296d0
movzx ecx, word [esi]
mov eax, edi
test cx, cx
je 0x429721
lea edx, [esi + 2]
mov eax, edi
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x429710
mov word [eax], 0
movzx ecx, word [esp + 0x10]
test cx, cx
je 0x429751
lea edx, [esp + 0x12]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x429740
mov ebx, dword [esp + 0x80]
mov word [eax], 0
lea eax, [esp + 0x68]
push eax
push edi
call fcn.00449760
add esp, 8
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x450f90]
Function at 0x4323e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1c0
mov esi, esp

Function at 0x438720
Capabilities:
Contain obfuscated stackstrings
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
push eax
mov esi, esp
xor eax, eax
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, 0
setne al
xor ebx, ebx
test al, 1
jne 0x43874f
jmp 0x438886
xor eax, eax
sub esp, 8
mov dword [esp], 0
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
sub esp, 4
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0
setne al
xor ebx, ebx
test al, 1
jne 0x43878c
jmp 0x438880
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
mov dword [ebp - 0x2c], eax
mov dword [esp], eax
call fcn.0040cba0
add esp, 4
mov edx, eax
cmp edx, 0
setne al
jmp 0x4387b3
xor ebx, ebx
test al, 1
jne 0x4387be
jmp 0x438874
jmp 0x4387c0
mov al, byte [esi]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x28], 0xd1
mov byte [ebp - 0x27], 0x3f
mov byte [ebp - 0x26], 0x3d
mov byte [ebp - 0x25], 0x39
mov byte [ebp - 0x24], 0x36
mov byte [ebp - 0x23], 0x36
mov byte [ebp - 0x22], 0x39
mov byte [ebp - 0x21], 0xb
mov byte [ebp - 0x20], 0x38
mov byte [ebp - 0x1f], 0xf1
mov byte [ebp - 0x1e], 0xe
mov byte [ebp - 0x1d], 9
mov byte [ebp - 0x1c], 0xc
mov byte [ebp - 0x1b], 0x9f
mov eax, 0xe
mov byte [ebp + eax - 0x28], 0
add eax, 1
cmp eax, 0x12
jne 0x438802
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0x12
jae 0x43884f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x28]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], ecx
mov esi, edx
call fcn.0043c850
mov edx, esi
add esp, 8
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x28], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x438816
lea eax, [ebp - 0x28]
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0040d660
mov bl, al
jmp 0x43886f
and bl, 1
jmp 0x438874
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
and bl, 1
movzx eax, bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100180a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
call fcn.010017d1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0100172c
mov esi, eax
test esi, esi
jl 0x100192f
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jl 0x100192f
push ebx
mov ebx, dword [ebp - 0x28]
cmp ebx, 6
lea eax, [ebp - 0x28]
push eax
je 0x10018ef
push 0x10011f8
push 1
push 0
push 0x1001284
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x1001928
cmp ebx, 9
ja case.0x100188d.6
jmp dword [ebx*4 + 0x1001946]
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
jmp 0x100191d
push 1
jmp 0x1001896
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
jmp 0x100191d
push 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
jmp 0x100191d
push 0
jmp 0x10018b2
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x18]
jmp 0x100191d
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
jmp 0x100191d
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
jmp 0x100191d
xor esi, esi
jmp 0x100191f
mov esi, 0x80004001
jmp 0x100191f
push 0x10011e8
push 1
push 0
push 0x1001274
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x1001928
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setl al
xor ecx, ebp
pop esi
call fcn.01001c94
leave
ret 0x10
Function at 0x1001c85
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10029c0
call fcn.01002114
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003680
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001a37
cmp eax, esi
jne 0x1001a2a
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001a3a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001a11
xor esi, esi
inc esi
mov eax, dword [0x100367c]
cmp eax, esi
jne 0x1001a4d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001a7c
mov eax, dword [0x100367c]
test eax, eax
jne 0x1001a76
mov dword [0x100367c], esi
push 0x10010e0
push 0x10010d4
call fcn.01001973
pop ecx
pop ecx
test eax, eax
je 0x1001a7c
jmp 0x1001ba0
mov dword [0x100333c], esi
mov eax, dword [0x100367c]
cmp eax, esi
jne 0x1001aa0
push 0x10010d0
push 0x10010c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100367c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001aad
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003688], ebx
je 0x1001ace
push 0x1003688
call fcn.0100208b
pop ecx
test eax, eax
je 0x1001ace
push ebx
push 2
push ebx
call dword [0x1003688]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001ba0
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001b38
cmp cx, bx
je 0x1001af3
cmp dword [ebp - 0x1c], ebx
jne 0x1001b38
movzx ecx, word [eax]
cmp cx, bx
je 0x1001b08
cmp cx, 0x20
ja 0x1001b08
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001af3
test byte [ebp - 0x40], 1
je 0x1001b14
movzx ecx, word [ebp - 0x3c]
jmp 0x1001b17
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003338], eax
cmp dword [0x100332c], ebx
jne 0x1001b7d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001b49
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001add
cmp dword [0x100333c], ebx
jne 0x1001b8b
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003338]
jmp 0x1001bac
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002159
ret
call fcn.0100225e
jmp 0x10019d4

Function at 0x1002000
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1002013
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100200f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1002040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100207f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1002075
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1002081
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1002065
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002916
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1002988
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x1002987
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1002980
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001208
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002980
cmp dword [ebp - 8], ebx
je 0x1002980
mov ecx, dword [ebp - 0xc]
mov eax, 0x6ffff
cmp eax, dword [ecx + 8]
sbb bl, bl
inc bl
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x40b065
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d96c]
jne 0x40b06f
repz ret
jmp fcn.0040e75c

Function at 0x416504
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410a81
xor ebx, ebx
cmp dword [0x47b588], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4165d9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x416544
xor eax, eax
jmp 0x41669d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x440d74
push edi
call esi
cmp eax, ebx
je 0x41653d
push eax
call fcn.00410a1e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47b588], eax
call esi
push eax
call fcn.00410a1e
mov dword [esp], 0x440d50
push edi
mov dword [0x47b58c], eax
call esi
push eax
call fcn.00410a1e
mov dword [0x47b590], eax
lea eax, [ebp - 8]
push eax
call fcn.0040e45b
test eax, eax
pop ecx
pop ecx
je 0x4165a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ebcf
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4165d9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00410a1e
cmp eax, ebx
pop ecx
mov dword [0x47b598], eax
je 0x4165d9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410a1e
pop ecx
mov dword [0x47b594], eax
mov eax, dword [0x47b594]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x416652
cmp dword [0x47b598], esi
je 0x416652
push eax
call fcn.00410a8a
pop ecx
call eax
cmp eax, ebx
je 0x41661f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x47b598]
call fcn.00410a8a
pop ecx
call eax
test eax, eax
je 0x41661f
test byte [ebp - 0x18], 1
jne 0x416652
lea eax, [ebp - 0xc]
push eax
call fcn.0040e492
test eax, eax
pop ecx
je 0x41663a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ebcf
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x416649
or dword [ebp + 0x10], 0x200000
jmp 0x416683
or dword [ebp + 0x10], 0x40000
jmp 0x416683
mov eax, dword [0x47b58c]
cmp eax, esi
je 0x416683
push eax
call fcn.00410a8a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416683
mov eax, dword [0x47b590]
cmp eax, esi
je 0x416683
push dword [ebp - 4]
push eax
call fcn.00410a8a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x47b588]
call fcn.00410a8a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dadc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45d96c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041da71
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040c450
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41db2b
cmp dword [ebp - 0x1c], 5
jb 0x41db43
jmp 0x41db3f
cmp dword [ebp - 0x10], 1
jne 0x41db43
cmp dword [ebp - 0x1c], 4
ja 0x41db3f
jne 0x41db43
cmp dword [ebp - 0x18], 0
jbe 0x41db43
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x442638
call fcn.0041d962
test eax, eax
jge 0x41db64
mov byte [0x49225c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b065
add ebp, 0x78
leave
ret
Function at 0x4032c0
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.00404ee8
test esi, esi
jne 0x4032f6
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.00404fd8
jmp 0x403314
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403164
mov edi, eax
test esi, esi
je 0x403314
cmp dword [ebx], 0
je 0x403314
dec esi
jmp 0x4032fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403e08
Capabilities:
Query or enumerate registry value

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

Function at 0x404d68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42a04c], 0
je 0x404dc9
cmp word [0x42a220], 0xd7b2
jne 0x404d91
cmp dword [0x42a228], 0
jbe 0x404d91
mov eax, 0x42a21c
call dword [0x42a238]
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 0x404df0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42902c], 0
jne 0x404de5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066dc
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 0x40690c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40675f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40690c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40675f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406928
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4067e8
xor eax, eax
push ebp
push 0x4067e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406518
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 0x4067c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406948
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4067c6
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 0x4067e8
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 0x406902
cmp byte [ebp - 0xd], 0
jne 0x40682f
cmp byte [ebp - 0x12], 0
je 0x406902
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406848
dec ebx
cmp byte [ebx], 0x2e
je 0x406857
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406847
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406902
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406894
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 0x406902
cmp byte [ebp - 0xd], 0
je 0x406902
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 0x406902
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 0x4085dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40862e
test eax, edx
je 0x408631
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4085f1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408617
add ecx, 4
js 0x408607
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408614
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40863d
test edx, edx
jne 0x4085e4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b870
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 0x40b8a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404fd8
jmp 0x40b8b2
mov eax, ebx
mov edx, esi
call fcn.00404f3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8bc
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 0x40b8de
movzx eax, byte [esp]
jmp 0x40b8e0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bde8
mov eax, dword [0x429e60]
cmp byte [eax], 0
je 0x40bfec
mov eax, dword [0x429d20]
call fcn.00403670
call fcn.00402fd0
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.00409134
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 0x40c034
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c022
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x429ce4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42c7f8]
call fcn.004064c0
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