joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fd120
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0xffffffff
call ebp
mov ebx, eax
mov al, byte [esi + 0x15]
test al, al
jne 0x4fd1ef
mov edi, dword [sym.imp.WS2_32.dll_select]
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x7a120
mov dword [esp + 0x30], 1
call edi
cmp eax, 0xffffffff
je 0x4fd1be
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4fd1ce
call ebp
mov ecx, dword [esp + 0x124]
sub eax, ebx
cmp eax, ecx
jae 0x4fd1e7
mov al, byte [esi + 0x15]
test al, al
je 0x4fd14f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret 4
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4

Function at 0x4fdfa0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov word [esp + 4], 2
mov ax, word [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4fdfc9
mov eax, 0xfba8bc
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x4fdffb
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4fdfe5
mov esi, 0xfba8bc
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4fe01e
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
add esp, 0x10
ret 4
xor eax, eax
pop esi
add esp, 0x10
ret 4
Function at 0x5009f8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541c29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00503510
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], fcn.004e7840
call fcn.0052a2a3
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.0052a2a3
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.005030e0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.005030e0
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.0052a2a3
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.0052a2a3
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.005030e0
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.005030e0
mov dword [edi], 0xfbaa50
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.00503510
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.00503510
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.00503510
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.00503510
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.00503510
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.00500d20
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x500be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.005036e0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.005036e0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.005036e0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.005036e0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.005036e0
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0xfbaa60
call fcn.005032e0
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0xfbaa60
call fcn.005032e0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.0052a2cc
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.0052a2cc
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0xfbaa60
call fcn.005032e0
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xfbaa60
call fcn.005032e0
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.0052a2cc
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.0052a2cc
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.005036e0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x52e78a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x52e7c2
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.0052c7be
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0052c796
jmp 0x52e7ce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x52ff89
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 0x52ffcb
call fcn.00536afe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x52ffcb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x52ffc2
xor eax, eax
jmp 0x52ffd3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052ffd9
pop edi
pop esi
pop ebx
ret 4

Function at 0x53702e
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 0x53705c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53707a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00536f94
jmp 0x53707a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53707a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00536f94
test edi, edi
mov eax, edi
jne 0x537064
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408965
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
push esi
pop esi
mov esi, 0x7409e684
call fcn.00408986
xor dword [ebx], edx
inc ebx
cmp ebx, eax
jne fcn.00408965
add ecx, 0xe43dc47e
or ecx, esi
ret
Function at 0x4b65d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
or ebp, 0xffffffff
jmp 0x4b65f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b65f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b65e8
mov eax, 1
add ebx, ebx
jne 0x4b660b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b661c
jne 0x4b663b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b663b
dec eax
add ebx, ebx
jne 0x4b6628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b6600
add ebx, ebx
jne 0x4b6637
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b668d
xor ecx, ecx
sub eax, 3
jb 0x4b6653
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b66c2
sar eax, 1
mov ebp, eax
jmp 0x4b665e
add ebx, ebx
jne 0x4b665e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b662c
inc ecx
add ebx, ebx
jne 0x4b666c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b662c
add ebx, ebx
jne 0x4b6679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b666e
jne 0x4b668a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b666e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b66ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b669e
jmp 0x4b65ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b66ac
add edi, ecx
jmp 0x4b65ee
pop esi
mov edi, esi
mov ecx, 0x3493
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b66ca
cmp byte [edi], 0x4c
jne 0x4b66ca
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 0x4b66cf
lea edi, [esi + 0xb2000]
mov eax, dword [edi]
or eax, eax
je 0x4b6747
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc4218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc436c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b66fc
mov ecx, edi
jns 0x4b672b
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 + 0xc4370]
or eax, eax
je 0x4b6741
mov dword [ebx], eax
add ebx, 4
jmp 0x4b6719
call dword [esi + 0xc4380]
mov ebp, dword [esi + 0xc4374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4b677b
sub esp, 0xffffff80
jmp 0x417770
Function at 0x438cb6
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
add edx, edi
inc edi
inc edx
call fcn.00438cf6
or edx, edx
sub edx, edi
sub edi, 0x19ae0f09
xor dword [ecx], ebx
sub edx, 1
inc ecx
sub edx, 0xf84e8733
or edx, edi
dec edx
cmp ecx, esi
jne fcn.00438cb6
mov edx, 0xa9ef0aac
add edx, edx
ret
Function at 0x4031c8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403204
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403224
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405a40
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034bc
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.004057d0
test esi, esi
jne 0x4034f2
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.004058c0
jmp 0x403510
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403360
mov edi, eax
test esi, esi
je 0x403510
cmp dword [ebx], 0
je 0x403510
dec esi
jmp 0x4034f9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4045e8
Capabilities:
Query or enumerate registry value

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

Function at 0x40557c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e104c], 0
je 0x4055dd
cmp word [0x4e1220], 0xd7b2
jne 0x4055a5
cmp dword [0x4e1228], 0
jbe 0x4055a5
mov eax, 0x4e121c
call dword [0x4e1238]
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 0x405604
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4dc030], 0
jne 0x4055f9
push 0
push 0x4dc780
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405754
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4dc038], 0
je 0x40577a
mov edx, esi
mov eax, ebx
call dword [0x4dc038]
jmp 0x405789
mov eax, 8
call fcn.00402fec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40571c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407424
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 0x407654
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4074a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407654
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4074a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407670
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407530
xor eax, eax
push ebp
push 0x407529
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407260
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 0x40750e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407690
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40750e
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 0x407530
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 0x40764a
cmp byte [ebp - 0xd], 0
jne 0x407577
cmp byte [ebp - 0x12], 0
je 0x40764a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407590
dec ebx
cmp byte [ebx], 0x2e
je 0x40759f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40758f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40764a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4075dc
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 0x40764a
cmp byte [ebp - 0xd], 0
je 0x40764a
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 0x40764a
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 0x407530
Capabilities:
Get geographical location

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 0x407654
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4074a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407654
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4074a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407670
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407530
xor eax, eax
push ebp
push 0x407529
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407260
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 0x40750e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407690
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40750e
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 0x407530
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 0x40764a
cmp byte [ebp - 0xd], 0
jne 0x407577
cmp byte [ebp - 0x12], 0
je 0x40764a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407590
dec ebx
cmp byte [ebx], 0x2e
je 0x40759f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40758f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40764a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4075dc
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 0x40764a
cmp byte [ebp - 0xd], 0
je 0x40764a
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 0x40764a
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 0x40a094
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a0e6
test eax, edx
je 0x40a0e9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a0a9
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 0x40a0cf
add ecx, 4
js 0x40a0bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a0cc
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 0x40a0f5
test edx, edx
jne 0x40a09c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405c60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b42d
test al, 0x10
je 0x40b431
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405c60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b451
test al, 0x10
jne 0x40b455
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b554
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405c60
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40b568
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405c60
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40b58a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40f654
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 0x40f68d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004058c0
jmp 0x40f696
mov eax, ebx
mov edx, esi
call fcn.00405824
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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