joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c547
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041cecc
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c57e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041c159
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41c5d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x41c5f6
cmp dword [edi + 0x54], 0
jne 0x41c5f6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041cecc
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041c59d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x41d706
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x46b800]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x41d79e
push 0x458444
push 4
push eax
call fcn.0043fa18
push eax
call fcn.00405af0
add esp, 0x10
push ebx
push edi
call fcn.0043f5f5
mov edi, dword [eax]
call fcn.0043f5f5
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043f59b
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0043f5f5
cmp dword [eax], ebx
je 0x41d7b5
call fcn.0043f5f5
push dword [eax]
call fcn.0040b85f
pop ecx
jmp 0x41d7bc
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41d752
jmp 0x41d82e
call fcn.0043f5f5
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x41d82a
cmp dword [ebp - 0x3c], esi
jae 0x41d82a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0043eb50
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x41d81c
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41d81c
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41d81c
push ebx
push ebx
push esi
jmp 0x41d822
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x41d82c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.0043c2a6
add ebp, 0xe0
leave
ret
Function at 0x41f4a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41f4e9
call fcn.0041cecc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f4e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41f52c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41f515
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41f515
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41f529
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42675a
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 0x426788
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4267a6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004266c4
jmp 0x4267a6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4267a6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004266c4
test edi, edi
mov eax, edi
jne 0x426790
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46ed78]
test ecx, ecx
je 0x426869
jmp 0x426759
ret 8

Function at 0x43c2a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46b800]
jne 0x43c2b0
repz ret
jmp fcn.00441178
Function at 0x445773
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46c108]
je 0x44578e
inc edi
cmp edi, 0x17
jb 0x44577f
cmp edi, 0x17
jae 0x44590e
push ebp
push 3
call fcn.0044c4d3
cmp eax, 1
pop ecx
je 0x4458da
push 3
call fcn.0044c4d3
test eax, eax
pop ecx
jne 0x4457c2
cmp dword [0x46b7f8], 1
je 0x4458da
cmp ebx, 0xfc
je 0x44590d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46f378
push ebp
call fcn.0043fa18
add esp, 0xc
test eax, eax
je 0x4457f8
push esi
push esi
push esi
push esi
push esi
call fcn.004415ef
add esp, 0x14
push 0x104
mov esi, 0x46f391
push esi
push 0
mov byte [0x46f495], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44583c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043fa18
add esp, 0xc
test eax, eax
je 0x44583c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004415ef
add esp, 0x14
push esi
call fcn.0043f480
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x445881
push esi
call fcn.0043f480
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46f68c
push 0x45bc94
sub ecx, eax
push ecx
push eax
call fcn.0043ecf9
add esp, 0x14
test eax, eax
je 0x445881
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004415ef
add esp, 0x14
jmp 0x445883
xor esi, esi
push 0x45bc90
push ebx
push ebp
call fcn.0043fb04
add esp, 0xc
test eax, eax
je 0x4458a3
push esi
push esi
push esi
push esi
push esi
call fcn.004415ef
add esp, 0x14
push dword [edi*8 + 0x46c10c]
push ebx
push ebp
call fcn.0043fb04
add esp, 0xc
test eax, eax
je 0x4458c5
push esi
push esi
push esi
push esi
push esi
call fcn.004415ef
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044c316
add esp, 0xc
jmp 0x44590d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44590d
cmp ebp, 0xffffffff
je 0x44590d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46c10c]
push dword [esi]
call fcn.0043f480
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44c316
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00443a62
xor ebx, ebx
cmp dword [0x46f8d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44c3ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44c4cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45ce3c
push edi
call esi
cmp eax, ebx
je 0x44c4cc
push eax
call fcn.004439f4
mov dword [esp], 0x45ce2c
push edi
mov dword [0x46f8d4], eax
call esi
push eax
call fcn.004439f4
mov dword [esp], 0x45ce18
push edi
mov dword [0x46f8d8], eax
call esi
push eax
call fcn.004439f4
mov dword [0x46f8dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043f7a5
test eax, eax
pop ecx
pop ecx
je 0x44c3ba
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004415ef
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44c3ec
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004439f4
cmp eax, ebx
pop ecx
mov dword [0x46f8e4], eax
je 0x44c3ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004439f4
pop ecx
mov dword [0x46f8e0], eax
mov eax, dword [0x46f8e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44c471
cmp dword [0x46f8e4], ecx
je 0x44c471
push eax
call fcn.00443a6b
push dword [0x46f8e4]
mov esi, eax
call fcn.00443a6b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44c471
cmp edi, ebx
je 0x44c471
call esi
cmp eax, ebx
je 0x44c43e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44c43e
test byte [ebp - 0x18], 1
jne 0x44c471
lea eax, [ebp - 0x10]
push eax
call fcn.0043f7dc
test eax, eax
pop ecx
je 0x44c459
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004415ef
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44c468
or dword [ebp + 0x10], 0x200000
jmp 0x44c4ac
or dword [ebp + 0x10], 0x40000
jmp 0x44c4ac
mov eax, dword [0x46f8d8]
cmp eax, dword [ebp - 8]
je 0x44c4ac
push eax
call fcn.00443a6b
cmp eax, ebx
pop ecx
je 0x44c4ac
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44c4ac
mov eax, dword [0x46f8dc]
cmp eax, dword [ebp - 8]
je 0x44c4ac
push eax
call fcn.00443a6b
cmp eax, ebx
pop ecx
je 0x44c4ac
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46f8d4]
call fcn.00443a6b
cmp eax, ebx
pop ecx
je 0x44c4cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44c4ce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ffa6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46b800]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044ff3b
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.0043eb50
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 0x44fff5
cmp dword [ebp - 0x1c], 5
jb 0x45000d
jmp 0x450009
cmp dword [ebp - 0x10], 1
jne 0x45000d
cmp dword [ebp - 0x1c], 4
ja 0x450009
jne 0x45000d
cmp dword [ebp - 0x18], 0
jbe 0x45000d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45d700
call fcn.0044fe0f
test eax, eax
jge 0x45002e
mov byte [0x46fa24], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043c2a6
add ebp, 0x78
leave
ret
Function at 0x2e13700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02e1378f
jae 0x2e1370e
xor ecx, ecx
call fcn.02e1378f
jae 0x2e1373d
xor eax, eax
call fcn.02e1378f
jae 0x2e1374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02e1378f
adc al, al
jae 0x2e1372f
jne 0x2e13779
stosb byte es:[edi], al
jmp 0x2e13711
call fcn.02e1379b
sub ecx, ebx
jne 0x2e13756
call fcn.02e13799
jmp 0x2e13775
lodsb al, byte [esi]
shr eax, 1
je 0x2e13783
adc ecx, ecx
jmp 0x2e13772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02e13799
cmp eax, 0x7d00
jae 0x2e13772
cmp ah, 5
jae 0x2e13773
cmp eax, 0x7f
ja 0x2e13774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2e13711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4ee6c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.ofre
lea edi, [esi - 0x9a000]
push edi
or ebp, 0xffffffff
jmp 0x4ee6e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ee6e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee6d8
mov eax, 1
add ebx, ebx
jne 0x4ee6fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ee70c
jne 0x4ee72b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee72b
dec eax
add ebx, ebx
jne 0x4ee718
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ee6f0
add ebx, ebx
jne 0x4ee727
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ee77d
xor ecx, ecx
sub eax, 3
jb 0x4ee743
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ee7b2
sar eax, 1
mov ebp, eax
jmp 0x4ee74e
add ebx, ebx
jne 0x4ee74e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee71c
inc ecx
add ebx, ebx
jne 0x4ee75c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee71c
add ebx, ebx
jne 0x4ee769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ee75e
jne 0x4ee77a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ee75e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ee79c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ee78e
jmp 0x4ee6de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ee79c
add edi, ecx
jmp 0x4ee6de
pop esi
mov edi, esi
mov ecx, 0x4887
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ee7ba
cmp byte [edi], 0x15
jne 0x4ee7ba
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 0x4ee7bf
lea edi, [esi + 0xe6000]
mov eax, dword [edi]
or eax, eax
je 0x4ee837
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf6aa8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf6bd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ee7ec
mov ecx, edi
jns 0x4ee81b
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 + 0xf6bd8]
or eax, eax
je 0x4ee831
mov dword [ebx], eax
add ebx, 4
jmp 0x4ee809
call dword [esi + 0xf6be8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ee868
cmp al, 0xef
ja 0x4ee85b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ee83d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ee84a
mov ebp, dword [esi + 0xf6bdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4ee89c
sub esp, 0xffffff80
jmp 0x453254
Function at 0x42b0ef
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0042b098
test eax, eax
je 0x42b248
lea ecx, [esp + 0x18]
call fcn.0042b098
lea ecx, [esp + 0x18]
test eax, eax
je 0x42b1b7
call fcn.0042b098
test eax, eax
je 0x42b179
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0042b098
lea edi, [eax + edi*2]
dec ebx
jne 0x42b14f
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x42b170
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x42b173
mov byte [edx], 0
inc edx
jmp 0x42b25a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x42b1af
test ecx, ecx
je 0x42b243
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b1a1
jmp 0x42b23f
xor ebp, ebp
inc ebp
jmp 0x42b243
call fcn.0042b0ce
test edi, edi
jne 0x42b1ec
cmp eax, 2
jne 0x42b1e7
lea ecx, [esp + 0x18]
call fcn.0042b0ce
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x42b243
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x42b1dc
jmp 0x42b23f
sub eax, 3
jmp 0x42b1ef
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.0042b0ce
mov ecx, eax
cmp esi, 0x7d00
jb 0x42b216
inc ecx
cmp esi, 0x500
jb 0x42b21f
inc ecx
cmp esi, 0x80
jae 0x42b22a
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x42b243
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b236
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x42b260
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x42b11f
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b3e5
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x42b417
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x42b3f8
jmp 0x42b41b
mov eax, dword [esp + 0x10]
test edi, edi
je 0x42b425
xor byte [esi], al
inc esi
dec edi
jne 0x42b41f
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x404dfc
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404fb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e5d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404fd4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404ecf
xor eax, eax
push ebp
push 0x404ec8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404c54
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404eb1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ff4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ecf
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA_1
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404fb0
cmp byte [ebp - 0xd], 0
jne 0x404f11
cmp byte [ebp - 0x12], 0
je 0x404fb0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404f2a
dec ebx
cmp byte [ebx], 0x2e
je 0x404f39
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404f29
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404fb0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404f66
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404fb0
cmp byte [ebp - 0xd], 0
je 0x404fb0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404fb0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
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 0x4085e8
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
test eax, eax
jle 0x408621
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039b4
jmp 0x40862a
mov eax, ebx
mov edx, esi
call fcn.00403920
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408634
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 0x408655
mov al, byte [esp]
jmp 0x408657
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413a9c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x413aa2
ret

Function at 0x415e54
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x415ea5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415e8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415e7c
jmp 0x415ea5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x415e8d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4212cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x446778], 0
sete dl
or al, dl
jne 0x42140c
mov eax, dword [0x44677c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x446778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4213db
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x446778]
call fcn.0040d2d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4213d3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4213d3
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4213d3
mov eax, dword [ebp - 0x14]
call fcn.004295d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4213d3
push ebp
call fcn.00421288
pop ecx
test al, al
jne 0x4213d3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42138f
mov eax, dword [ebp - 0x14]
call fcn.00427f60
dec eax
jle 0x4213d3
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402e20
cmp byte [ebp - 1], 0
je 0x4213d3
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4213d3
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44677c]
call fcn.00420ad4
inc edi
dec esi
jne 0x421322
mov eax, dword [0x44677c]
cmp dword [eax + 8], 0
jle 0x4213f3
mov eax, dword [0x44677c]
call fcn.00420b64
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42140c
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004210f0
pop ecx
test al, al
jne 0x42140c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret