joyce8/EMBER2024-capa huggingface dataset:
Function at 0x515c2a
Capabilities:
Get graphical window text

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

Function at 0x517318
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 0x51735a
call fcn.0051d097
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51735a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x517351
xor eax, eax
jmp 0x517362
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00517368
pop edi
pop esi
pop ebx
ret 4

Function at 0x51d5c7
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 0x51d5f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51d613
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051d52d
jmp 0x51d613
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51d613
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051d52d
test edi, edi
mov eax, edi
jne 0x51d5fd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409580
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x18]
push 0
test eax, eax
je 0x4095e9
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x8b4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8b41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8b407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b406a
add dl, dl
jne 0x8b4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b40dc
xor eax, eax
add dl, dl
jne 0x8b4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b417d
add dl, dl
jne 0x8b40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8b40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8b4075
mov eax, 1
add dl, dl
jne 0x8b40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b40e1
sub eax, ebx
mov ebx, 1
jne 0x8b4128
mov ecx, 1
add dl, dl
jne 0x8b410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8b413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b4136
cmp eax, 0x7d00
jae 0x8b416d
cmp eax, 0x500
jb 0x8b4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b4075
cmp eax, 0x7f
ja 0x8b4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8b419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8b4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xa26058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa261a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa2607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2606a
add dl, dl
jne 0xa26089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa260dc
xor eax, eax
add dl, dl
jne 0xa26096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2617d
add dl, dl
jne 0xa260a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa260d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa26075
mov eax, 1
add dl, dl
jne 0xa260ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa260e1
sub eax, ebx
mov ebx, 1
jne 0xa26128
mov ecx, 1
add dl, dl
jne 0xa2610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa26119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa26105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa26075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa2613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa2614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa26136
cmp eax, 0x7d00
jae 0xa2616d
cmp eax, 0x500
jb 0xa26168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa26075
cmp eax, 0x7f
ja 0xa26170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa26075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa2619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa26075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4013ec
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013fe
mov eax, dword [0x4c808b]
shl eax, 2
mov dword [0x4c808f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0047eddc
pop edx
call fcn.0047ed40
call fcn.0047ee1c
push 0
call fcn.004812d8
pop ecx
push 0x4c8034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4c8093], eax
push 0
jmp fcn.00487388

Function at 0x4028bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor esi, esi
mov eax, esi
xor edx, edx
mov dl, al
mov byte [ebp + edx - 0x10c], al
inc esi
cmp esi, 0x100
jb 0x4028ca
mov bl, 0
mov esi, ebx
mov byte [ebp - 1], bl
and esi, 0xff
mov edi, esi
cmp esi, 0x100
lea eax, [ebp + esi - 0x10c]
mov dword [ebp - 8], eax
jae 0x402941
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov cl, byte [edx + edi]
xor edx, edx
add cl, byte [eax]
lea eax, [ebp - 0x10c]
add bl, cl
inc edi
and bl, 0xff
mov dl, bl
add edx, eax
add eax, esi
push edx
push eax
call fcn.004028a4
add esp, 8
mov edx, dword [ebp + 0x10]
cmp byte [edx + edi], 0
jne 0x402935
xor edi, edi
inc esi
inc dword [ebp - 8]
cmp esi, 0x100
jb 0x402901
mov bl, 0
mov byte [ebp - 1], bl
mov esi, ebx
and esi, 0xff
mov eax, dword [ebp + 8]
lea edx, [eax + esi]
mov dword [ebp - 0xc], edx
cmp esi, dword [ebp + 0xc]
jae 0x4029b9
mov cl, byte [ebp - 1]
xor edx, edx
inc ecx
lea eax, [ebp - 0x10c]
and cl, 0xff
mov byte [ebp - 1], cl
movzx edi, byte [ebp - 1]
mov ecx, edi
add bl, byte [ebp + edi - 0x10c]
and bl, 0xff
mov dl, bl
add edx, eax
add ecx, eax
push edx
push ecx
call fcn.004028a4
xor edx, edx
mov al, byte [ebp + edi - 0x10c]
mov dl, bl
xor ecx, ecx
add esp, 8
inc esi
add al, byte [ebp + edx - 0x10c]
mov edx, dword [ebp - 0xc]
mov cl, al
mov al, byte [ebp + ecx - 0x10c]
xor byte [edx], al
inc dword [ebp - 0xc]
cmp esi, dword [ebp + 0xc]
jb 0x40295c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407200
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 0
jne 0x407215
push ebx
call fcn.00407840
pop ecx
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x407230
push 0
push 0
push esi
push 3
mov eax, dword [ebx + 0x10]
push eax
call sub.WININET.DLL_InternetOpenA
mov dword [ebx], eax
jmp 0x407243
push 0
push 0
push 0
push 0
mov edx, dword [ebx + 0x10]
push edx
call sub.WININET.DLL_InternetOpenA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x40724c
mov al, 1
jmp 0x40724e
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x407338
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0xa
push 0
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
push 0x20000013
mov ecx, dword [ebx + 8]
push ecx
call sub.WININET.DLL_HttpQueryInfoA
cmp dword [ebp - 8], 0x12c
jb 0x407385
cmp dword [ebp - 8], 0x190
jae 0x407385
push 0x21
push ebx
call fcn.00407918
add esp, 8
mov dword [ebx + 0x18], eax
mov al, 1
jmp 0x407387
xor eax, eax
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x407840
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
push str.Mozilla_5.0__Windows_NT_5.1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_37.0.2062.124_Safari_537.36
call fcn.00402384
add esp, 8
mov dword [ebx + 0x10], eax
pop ebx
pop ebp
ret

Function at 0x40785c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x40790f
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00480234
add esp, 0xc
lea edi, [ebx + 0x29]
push 0x105
push 0
push edi
call fcn.00480234
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0x104
push 0x105
push 0
lea edi, [ebx + 0x130]
push edi
call fcn.00480234
add esp, 0xc
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x104
push 0x105
push 0
lea edi, [ebx + 0x235]
push edi
call fcn.00480234
add esp, 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x3c]
push eax
push 0x10000000
push esi
call fcn.00480314
pop ecx
push eax
push esi
call sub.WININET.DLL_InternetCrackUrlA
mov dl, byte [ebp - 0x30]
mov byte [ebx + 0x28], dl
mov cx, word [ebp - 0x24]
mov word [ebx + 0x12e], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4097a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x4097cc
xor eax, eax
jmp 0x4097f5
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
push 0
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
push esi
call sub.KERNEL32.DLL_WriteFile
test eax, eax
push esi
setne bl
and ebx, 1
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x409ae8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xc
call fcn.0047e46c
pop ecx
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
push 0
push 0
push eax
push 0x409884
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
pop ebp
ret

Function at 0x409be8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push 8
push 0
lea eax, [ebx + 0x10]
push eax
call fcn.00480234
add esp, 0xc
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
pop ebp
ret
Function at 0x40b668
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x4cbd10
test edx, edx
jne 0x40b687
xor eax, eax
jmp 0x40b7a5
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x40b6a4
push esi
push edx
push eax
call fcn.0040b7ac
add esp, 0xc
jmp 0x40b7a5
push esi
push edx
push eax
call fcn.0040ba6c
add esp, 0xc
jmp 0x40b7a5
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40e850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x10c
push eax
mov esi, 0x1b7
push esi
call sub.USER32.DLL_GetClassNameA
mov byte [ebx], 0
mov byte [ebx + 0x21], 0
push 0x104
lea edx, [ebp - 0x210]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov byte [ebx + 0x125], 0
mov byte [ebx + 0x229], 0
mov byte [ebx + 0x32d], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40eb58
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffabc
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push eax
call fcn.0047e448
pop ecx
xor edx, edx
mov dword [ebx], edx
lea ecx, [ebp - 0x140]
push ecx
push str.file_13A3ABAD_320
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40ebca
push 0x4cea78
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
je 0x40ebb3
push 0x4cea7a
lea edx, [ebp - 0x114]
push edx
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
lea ecx, [ebp - 0x140]
push ecx
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40eb8b
push esi
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebx + 8]
push eax
call fcn.0047e448
pop ecx
xor edx, edx
mov dword [ebx + 8], edx
xor ecx, ecx
mov dword [ebx + 4], ecx
xor eax, eax
mov dword [ebx + 0xc], eax
mov ebx, 0x2b56
push 0x401
push ebx
call sub.USER32.DLL_GetClassLongA
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40edf8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffab4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
push eax
push 0
call dword [ebx + 0x10]
mov esi, eax
test esi, esi
jne 0x40ee1d
xor eax, eax
jmp 0x40ef3b
mov edx, dword [ebx + 4]
push edx
mov ecx, dword [ebx]
push ecx
push esi
call fcn.004801c4
add esp, 0xc
mov edi, esi
mov dword [ebp - 4], 0x2e57
push 0x41a
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_GetClassLongA
mov eax, dword [edi]
add edi, eax
add edi, 4
lea edx, [ebp - 0x52c]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test edi, edi
je 0x40ef34
mov dword [ebp - 8], 0x1668
mov ecx, dword [ebp - 8]
push ecx
call sub.GDI32.DLL_GetBkMode
lea eax, [ebp - 0xc]
push eax
push 0x40
mov edx, dword [ebx + 4]
push edx
push esi
call dword [ebx + 0x14]
test eax, eax
jne 0x40ef28
mov esi, 0x4cea24
lea edi, [ebp - 0x540]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push 1
lea eax, [ebp - 0x540]
push eax
call sub.ADVAPI32.DLL_InitializeSecurityDescriptor
push 0
push 0
push 1
lea edx, [ebp - 0x540]
push edx
call sub.ADVAPI32.DLL_SetSecurityDescriptorDacl
mov ecx, dword [0x4cea38]
lea eax, [ebp - 0x540]
mov dword [ebp - 0x54c], ecx
mov ecx, dword [0x4cea3c]
mov dword [ebp - 0x548], ecx
mov ecx, dword [0x4cea40]
mov dword [ebp - 0x544], ecx
lea edx, [ebp - 0x54c]
mov dword [ebp - 0x54c], 0xc
mov dword [ebp - 0x548], eax
push str.event_329493421_320
push 0
push 0
push edx
call sub.KERNEL32.DLL_CreateEventA
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_ResetEvent
push 0xc8
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40ef3b
mov edx, dword [ebx + 8]
push edx
call edi
mov al, 1
jmp 0x40ef3b
call sub.KERNEL32.DLL_GetVersion
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f0f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x40f114
test ebx, ebx
je 0x40f114
test edi, edi
jne 0x40f118
xor eax, eax
jmp 0x40f143
push esi
call fcn.00480314
pop ecx
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, ebx
mov ebx, edx
cmp edi, ecx
jbe 0x40f13e
mov eax, ecx
xor edx, edx
div dword [ebp - 4]
mov al, byte [esi + edx]
xor byte [ebx], al
inc ecx
inc ebx
cmp edi, ecx
ja 0x40f12c
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40f14c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x400
call fcn.0047e610
pop ecx
mov ebx, eax
push 0x400
push ebx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
jne 0x40f17f
push ebx
call fcn.0047e448
pop ecx
xor eax, eax
jmp 0x40f1d9
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
push ebx
call fcn.0047e448
pop ecx
cmp esi, 0xffffffff
jne 0x40f1a9
xor eax, eax
jmp 0x40f1d9
xor eax, eax
push 2
push 0
lea edx, [edi + eax]
add edx, dword [ebp + 0x10]
neg edx
push edx
push esi
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea ecx, [ebp - 4]
push ecx
push edi
mov eax, dword [ebp + 8]
push eax
push esi
call sub.KERNEL32.DLL_ReadFile
mov ebx, eax
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41d614
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4db7fc
cmp dword [edi], 0
jne 0x41d690
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4db7f8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4cec84
mov ecx, 2
call fcn.0042e81c
mov edx, 0x41d5ec
lea eax, [esi + 5]
call fcn.0041d60c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d60c
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 0x41d665
mov dword [0x4db7f8], 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 0x421b28
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x421b61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004300d8
jmp 0x421b6a
mov eax, ebx
mov edx, esi
call fcn.0043003c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421b74
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 0x421b95
mov al, byte [esp]
jmp 0x421b97
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42221c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x422094
mov eax, dword [0x4db0c0]
cmp byte [eax], 0
je 0x422289
mov eax, dword [0x4db0c4]
call fcn.0042ebd8
call fcn.0042e788
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0042038c
push eax
lea eax, [esp + 0x50]
push eax
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 0x4222d0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4222bf
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4daf80]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4db2b8]
call fcn.00431734
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x422e18
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 0x422e7c
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00430250
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00420064
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422e83
lea eax, [ebp - 0xc]
call fcn.0042ffe8
ret

Function at 0x42f30c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4cf1bc]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42f3a4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42f384
xor eax, eax
push ebp
push 0x42f37d
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 0x42f3c0
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 0x42f384
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4cf1bc]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4cf1bc], ax
mov esp, ebp
pop ebp
ret

Function at 0x42fe6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dbb20], 0
je 0x42fecd
cmp word [0x4dbcf4], 0xd7b2
jne 0x42fe95
cmp dword [0x4dbcfc], 0
jbe 0x42fe95
mov eax, 0x4dbcf0
call dword [0x4dbd0c]
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 0x42fef4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4cf1cc], 0
jne 0x42fee9
push 0
push 0x4cf224
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret