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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
xor esi, esi
lea edx, [eax + 0x1c]
mov ecx, dword [edx]
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov dword [ebp + esi*4 - 0x150], edi
inc esi
add edx, 4
cmp esi, 0x10
jb 0x41b402
push 0x40
lea ecx, [ebp - 0x148]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x41b433
mov edi, dword [eax + 0x14]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
and dword [ebp - 4], 0
mov dword [ebp - 8], edi
mov edi, dword [eax + 0x18]
mov dword [ebp - 0x10], edi
mov edi, esi
not edi
and edi, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov ebx, ecx
and ebx, esi
xor edi, ebx
rol edx, 5
add edx, edi
mov edi, dword [ebp - 4]
add edx, dword [ebp + edi*4 - 0x150]
mov edi, dword [ebp - 0x10]
inc dword [ebp - 4]
ror esi, 2
cmp dword [ebp - 4], 0x14
lea edx, [edx + edi + 0x5a827999]
mov edi, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
jb 0x41b462
mov dword [ebp - 4], 0x14
mov ebx, dword [ebp - 8]
xor ebx, ecx
mov dword [ebp - 0xc], edx
xor ebx, esi
rol edx, 5
add edx, ebx
mov ebx, dword [ebp - 4]
add edx, dword [ebp + ebx*4 - 0x150]
inc dword [ebp - 4]
ror esi, 2
cmp dword [ebp - 4], 0x28
lea edx, [edx + edi + 0x6ed9eba1]
mov edi, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
jb 0x41b4ac
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x28
mov edi, ecx
xor edi, esi
and edi, dword [ebp - 8]
mov ebx, ecx
and ebx, esi
xor edi, ebx
mov ebx, dword [ebp - 4]
add edi, dword [ebp + ebx*4 - 0x150]
mov dword [ebp - 0xc], edx
rol edx, 5
add edx, dword [ebp - 0x10]
inc dword [ebp - 4]
lea edx, [edi + edx - 0x70e44324]
mov edi, dword [ebp - 8]
ror esi, 2
push 0x3c
mov dword [ebp - 0x10], edi
pop edi
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jb 0x41b4ed
mov dword [ebp - 4], edi
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
xor edi, ecx
mov dword [ebp - 0xc], edx
xor edi, esi
add edi, dword [ebp + ebx*4 - 0x150]
mov ebx, dword [ebp - 8]
rol edx, 5
add edx, dword [ebp - 0x10]
inc dword [ebp - 4]
ror esi, 2
cmp dword [ebp - 4], 0x50
mov dword [ebp - 8], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
lea edx, [edi + edx - 0x359d3e2a]
mov dword [ebp - 0x10], ebx
jb 0x41b533
mov edi, dword [eax + 8]
add edi, edx
mov edx, dword [eax + 0xc]
add edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0x10]
add edx, ecx
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 8]
add ecx, edx
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 8], edi
pop edi
add ecx, ebx
pop esi
mov dword [eax + 0x18], ecx
pop ebx
leave
ret
Function at 0x41b59e
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x41b725
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x224
mov eax, dword [0x441050]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x70]
push ebx
push esi
push edi
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 0x78]
push 0xa0
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x108]
push 0
push eax
mov esi, ecx
call fcn.00422360
mov ebx, dword [ebp + 0x6c]
push esi
lea esi, [ebp - 0x108]
call fcn.0041b275
push 0x28
pop ecx
push dword [ebp + 0x74]
lea edi, [ebp - 0x1a8]
push dword [ebp - 0x1b0]
lea ebx, [ebp - 0x1a8]
rep movsd dword es:[edi], dword [esi]
call fcn.0041b2d3
mov eax, dword [ebp + 0x7c]
add esp, 0x18
push 0x14
dec eax
xor edx, edx
pop ecx
div ecx
inc eax
mov dword [ebp - 0x1bc], eax
je 0x41b89e
and dword [ebp - 0x1b4], 0
xor edx, edx
inc edx
lea eax, [ebp + 0x38]
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1b8], eax
jmp 0x41b7ce
mov edx, dword [ebp - 0x1ac]
xor eax, eax
lea edi, [ebp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, edx
shr eax, 0x18
mov byte [ebp + 0x4c], al
mov eax, edx
shr eax, 0x10
push 0x28
mov byte [ebp + 0x4d], al
pop ecx
mov eax, edx
shr eax, 8
lea esi, [ebp - 0x1a8]
lea edi, [ebp - 0x68]
push 4
mov byte [ebp + 0x4e], al
rep movsd dword es:[edi], dword [esi]
mov byte [ebp + 0x4f], dl
pop eax
mov dword [ebp - 0x1b0], 0x3e8
push eax
lea eax, [ebp + 0x4c]
push eax
lea ebx, [ebp - 0x68]
call fcn.0041b2d3
lea eax, [ebp + 0x4c]
push 0x14
push eax
mov ecx, ebx
call fcn.0041b357
add esp, 0x10
xor eax, eax
mov cl, byte [ebp + eax + 0x4c]
xor byte [ebp + eax + 0x38], cl
inc eax
cmp eax, 0x14
jb 0x41b82d
dec dword [ebp - 0x1b0]
push 0x28
pop ecx
lea esi, [ebp - 0x108]
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
jne 0x41b80e
mov eax, dword [ebp - 0x1b4]
xor ecx, ecx
cmp eax, dword [ebp + 0x7c]
jae 0x41b877
mov edx, dword [ebp - 0x1b8]
mov dl, byte [edx + eax]
mov esi, dword [ebp - 0x1c0]
inc ecx
mov byte [eax + esi], dl
inc eax
cmp ecx, 0x14
jb 0x41b859
inc dword [ebp - 0x1ac]
add dword [ebp - 0x1b4], 0x14
sub dword [ebp - 0x1b8], 0x14
mov eax, dword [ebp - 0x1ac]
dec eax
cmp eax, dword [ebp - 0x1bc]
jb 0x41b7c8
mov ecx, dword [ebp + 0x60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f3bc
add ebp, 0x64
leave
ret
Function at 0x41e9fc
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x441050]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x432ade
call fcn.0042e085
and dword [ebp - 0x10], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41ea68
cmp eax, esi
jge 0x41ea68
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp]
call fcn.00401bbc
and dword [ebp - 4], 0
push 0x436010
push ebx
mov ecx, eax
call fcn.0041e1b3
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401cc5
jmp 0x41ea73
push ebx
mov edi, 0x436018
call fcn.00401bbc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0041f3bc
add ebp, 0x20c
leave
ret

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

Disassembly:
cmp dword [0x442fc0], 0
push esi
jne 0x41f1ea
call fcn.0041f110
test eax, eax
je 0x41f22d
mov eax, dword [0x442fc0]
cmp eax, 1
jne 0x41f20b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41f22d
pop esi
ret
push eax
call dword [0x442fc8]
test eax, eax
jne 0x41f275
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41f231
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x442fc0]
call dword [0x442fc8]
mov edi, eax
test edi, edi
je 0x41f256
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41f272
mov edi, esi
add esi, 0xff0
push edi
push dword [0x442fc0]
call dword [0x442fc4]
add edi, 0x10
cmp edi, esi
jb 0x41f25e
mov eax, edi
pop edi
pop esi
ret
jmp 0x41f1d7

Function at 0x41f3bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441050]
jne 0x41f3c6
repz ret
jmp fcn.004225cc
Function at 0x42a6dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00422d9f
and dword [ebp - 4], 0
cmp dword [0x443b88], 0
mov ebx, eax
jne 0x42a78d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a83e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42a83e
push eax
call fcn.00422d2d
mov dword [esp], 0x435510
push edi
mov dword [0x443b88], eax
call esi
push eax
call fcn.00422d2d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x443b8c], eax
call esi
push eax
call fcn.00422d2d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x443b90], eax
call esi
push eax
call fcn.00422d2d
pop ecx
mov dword [0x443b98], eax
test eax, eax
je 0x42a78d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422d2d
pop ecx
mov dword [0x443b94], eax
mov eax, dword [0x443b94]
cmp eax, ebx
je 0x42a7e5
cmp dword [0x443b98], ebx
je 0x42a7e5
push eax
call fcn.00422da8
push dword [0x443b98]
mov esi, eax
call fcn.00422da8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a7e5
test edi, edi
je 0x42a7e5
call esi
test eax, eax
je 0x42a7dc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a7dc
test byte [ebp - 0xc], 1
jne 0x42a7e5
or dword [ebp + 0x10], 0x200000
jmp 0x42a81e
mov eax, dword [0x443b8c]
cmp eax, ebx
je 0x42a81e
push eax
call fcn.00422da8
pop ecx
test eax, eax
je 0x42a81e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a81e
mov eax, dword [0x443b90]
cmp eax, ebx
je 0x42a81e
push eax
call fcn.00422da8
pop ecx
test eax, eax
je 0x42a81e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x443b88]
call fcn.00422da8
pop ecx
test eax, eax
je 0x42a83e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a840
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4278a4], 0
jne 0x406e79
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406e4f
mov dword [ecx*4 + 0x4278a0], eax
inc ecx
cmp ecx, 0x100
jl 0x406e4a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406ea6
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4278a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406e87
not eax
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402060
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov esi, eax
test esi, esi
jne 0x402091
push str.calloc
call dword [sym.imp.MSVCRT.dll_perror]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov eax, esi
pop esi
pop ebx
ret

Function at 0x402320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
lea ecx, [esp + 8]
push esi
push edi
push ebp
xor edi, edi
push eax
mov ebx, dword [esp + 0x24]
push edi
mov esi, dword [esp + 0x24]
push ecx
push edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push esi
call ebp
test eax, eax
jne 0x402381
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x402381
mov eax, dword [esp + 0x10]
push eax
call fcn.00402060
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
je 0x402381
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor edi, edi
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4025b0
Capabilities:
Terminate process

Disassembly:
push ebx
call dword [sym.imp.MSVCRT.dll___p__environ]
mov eax, dword [eax]
mov ecx, dword [sym.imp.MSVCRT.dll___initenv]
mov dword [ecx], eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll___p___argc]
mov ecx, dword [eax]
push ecx
call section..text
add esp, 8
push eax
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
pop ebx
ret 0x10
Function at 0x402610
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403008
push 0x4027e4
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404960], 0xffffffff
mov eax, dword [0x404960]
mov dword [0x404964], eax
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404930]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40492c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404968], eax
call fcn.004025f0
cmp dword [0x404928], 0
jne 0x4026a0
push 0x4027e0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004027c0
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov eax, dword [0x404924]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x404920]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x402714
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x40270c
cmp al, 0x22
jne 0x402701
cmp byte [esi], 0x22
jne 0x40271e
inc esi
jmp 0x40271e
cmp al, 0x20
jbe 0x40271e
inc esi
cmp byte [esi], 0x20
ja 0x402718
cmp byte [esi], 0
je 0x40272e
cmp byte [esi], 0x20
ja 0x40272e
inc esi
cmp byte [esi], 0
jne 0x402723
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x402755
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402798
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402960
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 0x40299d
xor eax, eax
mov al, 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 0x4029bd
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404900
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b50
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.00404698
test esi, esi
jne 0x402b86
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.00404788
jmp 0x402ba4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a64
mov edi, eax
test esi, esi
je 0x402ba4
cmp dword [ebx], 0
je 0x402ba4
dec esi
jmp 0x402b8d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4036cc
Capabilities:
Query or enumerate registry value

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

Function at 0x404478
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ba048], 0
je 0x4044d9
cmp word [0x4ba21c], 0xd7b2
jne 0x4044a1
cmp dword [0x4ba224], 0
jbe 0x4044a1
mov eax, 0x4ba218
call dword [0x4ba234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b7058
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 0x404500
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b7020], 0
jne 0x4044f5
push 0
push 0x4b7078
push 0x4b7058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40464c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040274c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4ba049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404614
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406140
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 0x406370
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406370
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40638c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40624c
xor eax, eax
push ebp
push 0x406245
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f88
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 0x40622a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40622a
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 0x40624c
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 0x406366
cmp byte [ebp - 0xd], 0
jne 0x406293
cmp byte [ebp - 0x12], 0
je 0x406366
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4062bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406366
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062f8
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 0x406366
cmp byte [ebp - 0xd], 0
je 0x406366
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 0x406366
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 0x4091d4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b48
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4091e8
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.00404b48
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40920a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c12c
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 0x40c165
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404788
jmp 0x40c16e
mov eax, ebx
mov edx, esi
call fcn.004046ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c820
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c698
mov eax, dword [0x4b9328]
cmp byte [eax], 0
je 0x40c888
mov eax, dword [0x4b9060]
call fcn.00402f38
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004097b8
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 0x40c8d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c8be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b8ff4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ba714]
call fcn.00405f4c
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 0x40d64c
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 0x40d6b0
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.00404900
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f14
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6b7
lea eax, [ebp - 0xc]
call fcn.00404698
ret