joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a2620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6cd72e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.006a2f40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x72460c
call fcn.006bfb73
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x6a26b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006bfb73
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x6a26ac
push 0
mov ecx, eax
call fcn.00699750
mov dword [esi + 0xc], eax
jmp 0x6a26b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x6a26b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x6c2203
Capabilities:
Get graphical window text

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

Function at 0x6c38f1
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 0x6c3933
call fcn.006c93aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6c3933
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6c392a
xor eax, eax
jmp 0x6c393b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006c3941
pop edi
pop esi
pop ebx
ret 4

Function at 0x6c98da
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_1]
cmp dword [esp + 0x10], 0
jne 0x6c9908
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6c9926
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006c9840
jmp 0x6c9926
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6c9926
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006c9840
test edi, edi
mov eax, edi
jne 0x6c9910
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x10002e9b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
invalid
push dword [eax - 0x65e7a3a]
invalid
call [ebp - 0x65d7a3a]
invalid
invalid
cdq

Function at 0x10002eb6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cdq
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
test dword [ebp - 0x6b000007], esp
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
invalid
invalid
test al, 0xf9
invalid

Function at 0x10002ec6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cdq
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
test dword [ebp - 0x6b000007], esp
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
invalid
invalid
test al, 0xf9
invalid

Function at 0x10003292
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
call fcn.10002357
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10002389
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000233e
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10002379
inc ebp
sbb byte [esi + ebx*2 + 0x10468], bh
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x4a3b58
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x4c56a8]
cmp byte [eax], 0
jne 0x4a3b86
mov ecx, 0xaf
mov edx, 0x4a3bd4
mov eax, 0x4a3c08
call fcn.00404c4c
mov eax, ebx
call fcn.004053cc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4a3bc5
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405578
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a3c1c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x4c56a8]
cmp byte [eax], 0
jne 0x4a3c3f
mov ecx, 0xbd
mov edx, 0x4a3c80
mov eax, 0x4a3cb4
call fcn.00404c4c
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x4a3c72
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x4a3c72
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x4a3c72
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4a8b14
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 0x4a8b78
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
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.00404ef4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040a04c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8b7f
lea eax, [ebp - 0xc]
call fcn.00404c74
ret

Function at 0x4a8c24
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4a8c80
push esp
push 0x40
push 6
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x4a8c4f
call fcn.0040f618
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402cd8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x4a8c80
call fcn.0040f618
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4b1540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4b16c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x276]
sub al, 2
jb 0x4b16a9
cmp byte [ebx + 0x268], 0
je 0x4b16a9
mov eax, dword [ebp - 4]
call fcn.004aa440
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x4b16a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 6]
sub ax, 8
je 0x4b15e6
dec ax
je 0x4b15bc
sub ax, 0x12
jne 0x4b1600
call fcn.004046f0
jmp 0x4b16a9
cmp byte [ebx + 0x269], 0
je 0x4b1688
mov eax, ebx
call fcn.0044ec90
test al, al
je 0x4b1688
xor edx, edx
mov eax, ebx
call fcn.0044ecb4
jmp 0x4b1688
mov eax, dword [esi]
call fcn.00405620
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.0040580c
jmp 0x4b1688
cmp byte [ebx + 0x269], 0
je 0x4b161d
mov eax, ebx
call fcn.0044ec90
test al, al
jne 0x4b161d
mov dl, 1
mov eax, ebx
call fcn.0044ecb4
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x4b1635
mov eax, esi
call fcn.004053cc
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
mov dx, word [ebp - 6]
call fcn.004054e4
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.0040568c
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.004b1370
test al, al
je 0x4b1688
lea eax, [ebp - 0x14]
mov dx, word [ebp - 6]
call fcn.004054e4
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040562c
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b16a9
mov eax, dword [ebp - 4]
mov dx, word [ebp - 6]
call fcn.004aa474
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b16cb
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004053e4
ret
Function at 0x4bd428
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bd6c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x4bd695
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x22c]
mov dl, 1
mov al, 0x19
call fcn.004940c8
push dword [ebp - 0x22c]
call fcn.0040c19c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x230]
mov eax, 0x4bd6e0
call fcn.0040ce14
push dword [ebp - 0x230]
push 0x4bd6fc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405004
cmp dword [ebp - 8], 0
je 0x4bd68b
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.00403218
lea eax, [ebp - 0x1d4]
call fcn.00402fb4
call fcn.00402c44
mov edx, 0x4bd70c
lea eax, [ebp - 0x1d4]
call fcn.00405360
call fcn.00403898
call fcn.00402c44
mov edx, 0x4bd71c
lea eax, [ebp - 0x1d4]
call fcn.00405360
mov edx, esi
call fcn.00405360
mov dl, 0x22
call fcn.0040385c
call fcn.00403898
call fcn.00402c44
mov edx, 0x4bd72c
lea eax, [ebp - 0x1d4]
call fcn.00405360
mov edx, esi
call fcn.00405360
mov edx, 0x4bd740
call fcn.00405360
call fcn.00403898
call fcn.00402c44
test bl, bl
je 0x4bd598
lea edx, [ebp - 0x234]
mov eax, esi
call fcn.0040a710
mov eax, dword [ebp - 0x234]
push eax
mov edx, 0x4bd758
lea eax, [ebp - 0x1d4]
call fcn.00405360
pop edx
call fcn.00405360
mov dl, 0x22
call fcn.0040385c
call fcn.00403898
call fcn.00402c44
push 0x4bd71c
push dword [ebp - 8]
push 0x4bd768
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.00405004
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d4]
call fcn.00405360
call fcn.00403898
call fcn.00402c44
lea eax, [ebp - 0x1d4]
call fcn.004032e0
call fcn.00402c44
lea eax, [ebp - 0x218]
xor ecx, ecx
mov edx, 0x44
call fcn.00403484
mov dword [ebp - 0x218], 0x44
mov dword [ebp - 0x1ec], 1
mov word [ebp - 0x1e8], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a710
mov eax, dword [ebp - 0x23c]
call fcn.00405144
push eax
push 0
push 0x44
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405144
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x4bd68b
push 0xfffffffffffffff1
mov eax, dword [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
mov eax, dword [ebp - 0x228]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov eax, dword [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bd69f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd6cc
lea eax, [ebp - 0x23c]
mov edx, 5
call fcn.00404c98
lea eax, [ebp - 8]
call fcn.00404c74
ret
Function at 0x4bfd78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
xor ecx, ecx
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405134
xor eax, eax
push ebp
push 0x4bfe6f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x458], 0
je 0x4bfe2e
lea edx, [ebp - 0x1d8]
mov eax, 0x4bfe84
call fcn.0047bb8c
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 8]
mov ecx, 0x4bfe98
call fcn.00404f90
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.00403218
xor eax, eax
push ebp
push 0x4bfe27
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
call fcn.00402fb4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d4]
call fcn.00405360
call fcn.00403898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfe49
lea eax, [ebp - 0x1d4]
call fcn.004032e0
ret
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405144
push eax
push 0x4bfea8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfe76
lea eax, [ebp - 0x1d8]
call fcn.00404c74
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c98
ret

Function at 0xb21901
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0xb21910
jg 0xb21920
jb 0xb2190b
jmp 0xb21b16
ret
popal
jmp 0x826d08
Function at 0x402591
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4025f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4025e8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4025e8
mov eax, dword [ebp - 4]
jmp 0x402604
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4025c5
mov eax, 0
leave
ret
Function at 0x4033ec
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 0x403428
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 0x403448
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004056d4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4036f0
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.00405464
test esi, esi
jne 0x403726
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.00405554
jmp 0x403744
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004035f4
mov edi, eax
test esi, esi
je 0x403744
cmp dword [ebx], 0
je 0x403744
dec esi
jmp 0x40372d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404338
Capabilities:
Query or enumerate registry value

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

Function at 0x405210
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52404c], 0
je 0x405271
cmp word [0x524220], 0xd7b2
jne 0x405239
cmp dword [0x524228], 0
jbe 0x405239
mov eax, 0x52421c
call dword [0x524238]
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 0x405298
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51802c], 0
jne 0x40528d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053e8
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 [0x518034], 0
je 0x40540e
mov edx, esi
mov eax, ebx
call dword [0x518034]
jmp 0x40541d
mov eax, 8
call fcn.00403174
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4053b0
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 0x406e38
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 0x407068
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ebb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407068
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ebb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407084
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406f44
xor eax, eax
push ebp
push 0x406f3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406c74
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 0x406f22
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4070a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406f22
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 0x406f44
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 0x40705e
cmp byte [ebp - 0xd], 0
jne 0x406f8b
cmp byte [ebp - 0x12], 0
je 0x40705e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406fa4
dec ebx
cmp byte [ebx], 0x2e
je 0x406fb3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406fa3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40705e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406ff0
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 0x40705e
cmp byte [ebp - 0xd], 0
je 0x40705e
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 0x40705e
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 0x40c3c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c416
test eax, edx
je 0x40c419
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40c3d9
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 0x40c3ff
add ecx, 4
js 0x40c3ef
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40c3fc
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 0x40c425
test edx, edx
jne 0x40c3cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058f4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40d089
test al, 0x10
je 0x40d08d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058f4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40d0ad
test al, 0x10
jne 0x40d0b1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d258
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058f4
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40d26c
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.004058f4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40d28e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x410d54
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 0x410d8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405554
jmp 0x410d96
mov eax, ebx
mov edx, esi
call fcn.004054b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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