joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aa27c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x100aa28b
pop dword [ebp - 0x3c]
mov eax, 0x1649a2c6
sub eax, 0x63f003b
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x7f810
push 0
mov eax, 0x88906661
add eax, 0x877e3bd3
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4db5
mov esi, eax
mov edi, 0x50fc79ce
sub edi, 0x40e395ce
add edi, dword [ebp - 0x3c]
mov ebx, 0xc23905d1
add dword [ebp - 0x34], ebx
mov edx, dword [edi]
xor edx, ebx
sub dword [ebp - 0xc], 0x82aa4f78
mov dword [esi], edx
mov dword [ebp - 0x34], 0x8b30eb3a
add esi, 0xb8abb75f
add esi, 0x475448a5
add edi, 0x52f63707
sub edi, 0x52f63703
loop 0x100aa2de
add eax, 0x129a7
mov ebx, eax
add eax, 0x3a0c939
add eax, 0xfc5f36cc
mov ecx, 0xa7343518
sub ecx, 0x97343518
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x100aa45b
Capabilities:
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x100e7a12
call fcn.1000131b
mov ebx, ecx
mov ecx, dword [ebx + 0x5c]
xor edi, edi
test ecx, ecx
je 0x100aa4d8
mov eax, dword [vtable.VprocessGlobals.0]
mov edi, dword [eax + 0x24]
call fcn.100ab8dd
mov ecx, dword [ebx + 0x5c]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
and dword [ebp - 4], 0
push esi
push dword [eax]
mov esi, 0x10178fec
push str.The_error___s__with_hr:_d_in_the_thread_context_was_not_processed_before_thread_detach._The_full_error_log_entry_follows.
push 1
push 0
push esi
call edi
or dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
push dword [ebx + 0x5c]
mov eax, dword [vtable.VprocessGlobals.0]
mov ecx, esi
push 1
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
je 0x100aa4d3
mov eax, dword [ecx]
push 1
call dword [eax]
xor edi, edi
mov dword [ebx + 0x5c], edi
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x100aa515
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
push 0x100209e6
mov ecx, esi
mov dword [ebp - 0x1c], 0x100706e5
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.100aa27c
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_4537
or dword [ebp - 4], 0xffffffff
push esi
call fcn.100aa27c
pop ecx
mov dword [ebx + 0x30], edi
cmp dword [ebx + 0x74], edi
jle 0x100aa52b
mov ecx, ebx
mov dword [ebx + 0x74], 1
call sym.fpsrvutl.dll_Ordinal_2309
push edi
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.100013b7
ret
Function at 0x100ab1e5
Capabilities:
Get thread local storage value

Disassembly:
push 0xc
mov eax, 0x100e2f44
call fcn.1000131b
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x1017c79c
lock inc dword [0x1017c790]
and dword [ebp - 4], 0
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x100ab238
lea eax, [edi + 0x60]
mov ecx, dword [eax]
cmp dword [ecx - 4], 0
je 0x100ab238
push eax
lea ecx, [ebp - 0x10]
call fcn.100aa27c
mov eax, dword [edi + 0x2c]
shr eax, 2
and al, 1
jmp 0x100ab261
lea eax, [ebp - 0x14]
push eax
call fcn.100aa27c
push eax
lea ecx, [ebp - 0x10]
call fcn.100aa27c
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
push 0
call fcn.100047aa
mov al, byte [0x1017ca42]
test al, al
jne 0x100ab27a
mov dword [esi], 0x1017c79c
lock inc dword [0x1017c790]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0xc]
jmp 0x100ab285
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
lea ecx, [eax - 0xc]
lock inc dword [ecx]
call sym.fpsrvutl.dll_Ordinal_5727
mov eax, esi
call fcn.100013b7
ret

Function at 0x100ab801
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, ecx
mov word [esi], ax
test ebx, ebx
je 0x100ab84c
push edi
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x100ab84b
movzx ecx, word [edi + 0x68]
movzx eax, bx
mov word [esi], cx
cmp cx, ax
jne 0x100ab83d
xor eax, eax
mov word [esi], ax
jmp 0x100ab84b
push eax
call fcn.100aa27c
push eax
mov ecx, edi
call fcn.100aa27c
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x100ab99f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
lock inc dword [edi]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push esi
push 0x100aba0a
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 8], ecx
test eax, eax
jne 0x100ab9eb
mov dword [esi + 4], ebx
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x100ab9e7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor al, al
jmp 0x100ab9f0
mov dword [esi + 4], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100ab9f7
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_TerminateThread]
pop ebp
ret 4
Function at 0x100aec97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
movsx eax, byte [edi + 8]
push eax
push dword [edi + 0x50]
mov eax, dword [vtable.VprocessGlobals.0]
push str.VdirectUpdateLock::endUpdate__InFilePath___s__Locked___d_n
push 3
push ebx
push 0x10178fec
call dword [eax + 0x24]
add esp, 0x18
cmp dword [edi + 0xb0], ebx
jne 0x100aece6
mov eax, dword [edi]
push 8
pop ecx
mov edx, dword [eax + 0x14]
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, ecx
mov ecx, edi
push eax
call edx
test eax, eax
jne 0x100aed84
mov eax, dword [edi + 0x12c]
push esi
cmp eax, 0xffffffff
je 0x100aed66
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
test eax, eax
jne 0x100aed8a
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x134]
push dword [edi + 0x124]
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x100aed8a
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x134]
jne 0x100aed8a
cmp byte [edi + 0x130], bl
jne 0x100aed48
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
je 0x100aed8a
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x100aed5f
mov esi, 0x20006
jmp 0x100aed8f
or dword [edi + 0x12c], 0xffffffff
push dword [edi + 0x124]
call fcn.100aa27c
mov dword [edi + 0x124], ebx
xor eax, eax
mov byte [edi + 8], bl
mov dword [edi + 0xb0], ebx
pop ecx
pop esi
pop edi
pop ebx
leave
ret 4
mov esi, 0x2000c
mov ebx, dword [edi + 0x68]
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edx, eax
mov ecx, esi
call fcn.1005ca7d
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 8]
push dword [edi + 0x124]
call fcn.100aa27c
and dword [edi + 0x124], 0
mov eax, esi
jmp 0x100aed82
Function at 0x100b78af
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x10148250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [0x10150ddc]
mov edi, dword [ebp + 8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100b7903
cmp dword [esi + 0xc], 0
jle 0x100b7903
mov ecx, dword [esi + 0x10]
cmp dword [ecx], 0
je 0x100b7903
push 0xffffffffffffffff
push dword [ecx]
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
jmp 0x100b791d
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push str.thread_0x_x
lea eax, [ebp - 0x84]
push 0xffffffffffffffff
push eax
call fcn.100aa27c
mov eax, dword [vtable.VprocessGlobals.0]
add esp, 0x10
cmp byte [0x1017bdda], 0
push edi
je 0x100b7946
push ebx
push str._Assert_failure_in__s_xx____.400s_
push 0
push 0
push 0x10178fec
call dword [eax + 0x24]
add esp, 0x18
jmp 0x100b795e
push dword [ebp + 0x10]
push ebx
push str._Assert_failure_in__s__d___.400s_
push 0
push 8
push 0x10178fec
call dword [eax + 0x24]
add esp, 0x1c
cmp byte [0x1017bddd], 0
jne 0x100b7a28
mov ecx, str.SoftwareMicrosoftFrontPageServerExtensionsNoAssertMsgBox
call fcn.100aa27c
test al, al
jne 0x100b79e3
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push ebx
push eax
push str.Assert_failed__Vframework___s___File__.200s__line__d_nExpression___.400s_n_click_Retry_to_debug_
lea eax, [ebp - 0x484]
push 0xffffffffffffffff
push eax
call fcn.100aa27c
add esp, 0x1c
mov ecx, str.SoftwareMicrosoftFrontPageServerExtensionsIgnoreAsserts
call fcn.100aa27c
push 3
pop ecx
push 5
test al, al
pop edx
cmovne ecx, edx
cmp byte [0x1014af8c], 0
je 0x100b79d1
push 0x12
push 0x1012551c
lea eax, [ebp - 0x484]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, eax
cmp ecx, 3
je 0x100b79e3
cmp ecx, 4
jne 0x100b7a28
call dword [sym.imp.kernel32.dll_DebugBreak]
jmp 0x100b7a28
test esi, esi
je 0x100b7a28
cmp dword [0x1017ca10], 0
je 0x100b79fc
mov ecx, 0x2d0
call fcn.100aa27c
jmp 0x100b7a08
push 0x2d0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov esi, eax
test esi, esi
je 0x100b7a20
lea eax, [esi + 4]
mov dword [esi], vtable.VassertContextStatus.0
push eax
call dword [sym.imp.kernel32.dll_RtlCaptureContext]
jmp 0x100b7a22
xor esi, esi
push esi
call fcn.100aa27c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100013a8
leave
ret 0xc
Function at 0x100b7a39
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100b7ac1
mov eax, dword [vtable.VprocessGlobals.0]
push ebx
push edi
push dword [ebp + 0x10]
xor edi, edi
mov ebx, 0x10178fec
cmp byte [0x1017bddd], 0
push dword [ebp + 0xc]
je 0x100b7a6a
push str._nUnexpected_status_in_file:__s__line:_xx__n
push edi
push edi
jmp 0x100b7a72
push str._nUnexpected_status_in_file:__s__line:__d__n
push edi
push 8
push ebx
call dword [eax + 0x24]
mov eax, dword [vtable.VprocessGlobals.0]
add esp, 0x18
mov ecx, ebx
push esi
push edi
call dword [eax + 0xc]
mov eax, dword [vtable.VprocessGlobals.0]
push 0x100ef728
push edi
push edi
push ebx
call dword [eax + 0x24]
add esp, 0x10
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
pop edi
pop ebx
test eax, eax
je 0x100b7ab9
cmp byte [0x1017bddd], 0
jne 0x100b7ab9
push esi
call fcn.100aa27c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
pop ebp
ret 0xc
Function at 0x100d41dd
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x100e9902
call fcn.1000131b
mov esi, ecx
mov dword [ebp - 0x10], esi
push 1
push 1
xor ebx, ebx
push ebx
push ebx
call fcn.100aa27c
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
mov al, byte [ebp + 0xc]
push ebx
mov byte [esi + 0x54], al
mov al, byte [ebp + 0x14]
push ebx
push 8
mov dword [esi], vtable.SMP_HEAP.0
mov byte [esi + 0x55], 1
mov byte [esi + 0x56], al
mov word [esi + 0x34], bx
call fcn.100d1f77
push ebx
push ebx
push 0x14
mov ecx, esi
mov dword [esi + 0x38], eax
call fcn.100d1f77
push ebx
push ebx
push 8
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.100d1f77
push ebx
push ebx
push 0xc
mov ecx, esi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
call fcn.100d1f77
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x48], eax
test ecx, ecx
je 0x100d42a9
cmp dword [esi + 0x3c], ebx
je 0x100d42a9
cmp dword [esi + 0x40], ebx
je 0x100d42a9
test eax, eax
je 0x100d42a9
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
mov eax, dword [esi + 0x40]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov edi, dword [esi + 0x48]
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
setne cl
mov byte [edi], cl
je 0x100d42b3
cmp eax, 0x40000000
jge 0x100d42b3
lea eax, [eax*4 + 0xe10]
mov dword [edi + 8], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x34], 1
mov eax, esi
call fcn.100013b7
ret 0x14
mov ecx, str.No_TLS_available
call fcn.100aa27c
int3

Function at 0x100d4799
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x100d47d3
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100d47c1
lea ecx, [eax + 8]
mov eax, dword [ecx]
pop esi
mov eax, dword [eax + 0xc]
pop ebp
jmp eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100d1e75
jmp 0x100d47d5
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401aea
cmp dword [ebp - 0x118], 0
je 0x401aea
jmp 0x401b4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401b4c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4360b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4360d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4360cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401980
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401aea
mov esp, ebp
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x174b3e77
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x8d03ae3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x4011f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40414d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401238
xor eax, eax
jmp 0x401253
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Terminate process

Disassembly:
mov ecx, 0x404240
push ecx
jmp fcn.004025ab
Function at 0x402a58
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.0040447c
test esi, esi
jne 0x402a8e
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.0040456c
jmp 0x402aac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040296c
mov edi, eax
test esi, esi
je 0x402aac
cmp dword [ebx], 0
je 0x402aac
dec esi
jmp 0x402a95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403580
Capabilities:
Query or enumerate registry value

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

Function at 0x404300
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cb04c], 0
je 0x404361
cmp word [0x4cb220], 0xd7b2
jne 0x404329
cmp dword [0x4cb228], 0
jbe 0x404329
mov eax, 0x4cb21c
call dword [0x4cb238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c9058
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 0x404388
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c9020], 0
jne 0x40437d
push 0
push 0x4c9078
push 0x4c9058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b6f8
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 0x40b731
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040456c
jmp 0x40b73a
mov eax, ebx
mov edx, esi
call fcn.004044d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b744
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 0x40b765
mov al, byte [esp]
jmp 0x40b767
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bdec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc64
mov eax, dword [0x4cae88]
cmp byte [eax], 0
je 0x40be54
mov eax, dword [0x4cac10]
call fcn.00402e14
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408edc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40be9c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be8a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cabb8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cb718]
call fcn.00405c28
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

Function at 0x40cbe8
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 0x40cc4c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004046e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc53
lea eax, [ebp - 0xc]
call fcn.0040447c
ret
Function at 0x420ac4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cba24
cmp dword [edi], 0
jne 0x420b40
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4cba20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c9538
mov ecx, 2
call fcn.0040292c
mov edx, 0x420a9c
lea eax, [esi + 5]
call fcn.00420abc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420abc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x420b15
mov dword [0x4cba20], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42218c
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 0x422192
ret

Function at 0x4248c0
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 0x424911
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4248f8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4248e8
jmp 0x424911
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 0x4248f9
pop ebx
mov esp, ebp
pop ebp
ret