joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442ae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46ab68
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x482410]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
xor ebx, ebx
push 0x208
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call fcn.0040a9e0
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], ebx
sar eax, 1
jne 0x442b2e
call fcn.0044df21
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp byte [esp + 0x8c], bl
setne cl
push ecx
push edx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x442b7e
push str.mailru::path::special
push str..Path.cpp
push 0x3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x38]
call fcn.0040a820
push 0x477600
lea ecx, [esp + 0x2c]
push ecx
call fcn.0044df31
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x1c]
sar edx, 1
jne 0x442b8f
call fcn.0044df21
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x84]
push eax
mov ecx, esi
call fcn.00401070
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x442bb3
push eax
call fcn.0044d947
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0044d947
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret

Function at 0x4435e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46adcb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x482410]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00443100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x3c], 0
jb 0x443641
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
jmp 0x443648
add eax, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0044e044
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x3c], 2
jb 0x44366d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044d947
add esp, 4
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esi], vtable.mailru::exception.0
mov dword [esi + 0xc], edx
call edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esi + 0x10]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004433f0
mov byte [esp + 0x3c], 3
call edi
mov edx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
push edx
lea eax, [esi + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.004433f0
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 0x10
Function at 0x445800
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 0x24
mov eax, edx
shr eax, 1
test dl, 1
je 0x445813
xor eax, 0xedb88320
test al, 1
je 0x445820
shr eax, 1
xor eax, 0xedb88320
jmp 0x445822
shr eax, 1
test al, 1
je 0x44582f
shr eax, 1
xor eax, 0xedb88320
jmp 0x445831
shr eax, 1
test al, 1
je 0x44583e
shr eax, 1
xor eax, 0xedb88320
jmp 0x445840
shr eax, 1
test al, 1
je 0x44584d
shr eax, 1
xor eax, 0xedb88320
jmp 0x44584f
shr eax, 1
test al, 1
je 0x44585c
shr eax, 1
xor eax, 0xedb88320
jmp 0x44585e
shr eax, 1
test al, 1
je 0x44586b
shr eax, 1
xor eax, 0xedb88320
jmp 0x44586d
shr eax, 1
test al, 1
je 0x44587a
shr eax, 1
xor eax, 0xedb88320
jmp 0x44587c
shr eax, 1
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jb 0x445805
ret

Function at 0x445890
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test edx, edx
jbe 0x4458bd
push ebx
push ebp
movzx ebx, byte [esi]
movzx ebp, al
xor ebx, ebp
shr eax, 8
xor eax, dword [ecx + ebx*4 + 0x24]
dec edx
inc esi
test edx, edx
ja 0x4458a6
pop ebp
pop ebx
mov dword [edi], eax
pop edi
pop esi
ret 0xc
Function at 0x44ad28
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4840e8], 0
push esi
jne 0x44ac9b
call fcn.0044abc1
test eax, eax
je 0x44acde
mov eax, dword [0x4840e8]
cmp eax, 1
jne 0x44acbc
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44acde
pop esi
ret
push eax
call dword [0x4840f0]
test eax, eax
jne 0x44ad26
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 0x44ace2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4840e8]
call dword [0x4840f0]
mov edi, eax
test edi, edi
je 0x44ad07
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x44ad23
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4840e8]
call dword [0x4840ec]
add edi, 0x10
cmp edi, esi
jb 0x44ad0f
mov eax, edi
pop edi
pop esi
ret
jmp 0x44ac88

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

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x44bf5f
mov eax, dword [eax + 4]
jmp 0x44bf62
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44bffa
push esi
call fcn.0044c5b0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
cmp eax, 2
je 0x44bfdf
cmp eax, 3
je 0x44bfdf
cmp eax, 0x7b
je 0x44bfdf
cmp eax, 0xf
je 0x44bfdf
cmp eax, 0x15
je 0x44bfdf
cmp eax, 0x57
je 0x44bfdf
cmp eax, 0xa1
je 0x44bfdf
cmp eax, 0x35
je 0x44bfdf
cmp eax, 0x20
jne 0x44bfd4
mov eax, dword [0x48438c]
mov dword [ecx], eax
mov edx, dword [0x484390]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x48438c]
mov dword [ecx], eax
mov edx, dword [0x484390]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x48438c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x484390]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x44c027
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x44c100
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.0044c5b0
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.0044c5b0
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], eax
jb 0x44c12b
mov eax, dword [edi + 4]
jmp 0x44c12e
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44c14f
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
call fcn.0044c5b0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x44c1a0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0044bf50
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x44c1a0
mov eax, dword [esp + 0x18]
mov edx, dword [0x48438c]
mov ecx, dword [0x484390]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
Function at 0x44c200
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46b4bb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x482410]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x482410]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov edx, dword [esp + 0x2b0]
mov eax, dword [esp + 0x2a8]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
push 0xffffffffffffffff
xor esi, esi
mov dword [esp + 0x18], edx
push esi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], dx
call fcn.00401cb0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x298], esi
cmp eax, esi
je 0x44c2c9
lea edi, [eax - 1]
cmp edi, eax
jbe 0x44c2ae
call fcn.0044df21
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x44c2bd
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x471498
je 0x44c2ce
mov edx, 0x471490
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44c2d3
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004048b0
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x44c300
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x44c343
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x44c326
call edi
mov esi, eax
call fcn.0044c5b0
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x44c3c3
mov edx, dword [esp + 0x24]
push edx
jmp 0x44c3bb
lea eax, [esp + 0x68]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44c350
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00401f80
test byte [esp + 0x3c], 0x10
je 0x44c38b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 3
mov dword [edx], 3
jmp 0x44c39f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 2
mov dword [ecx], 2
mov edx, dword [0x48438c]
mov dword [ebp], edx
mov eax, dword [0x484390]
mov dword [ebp + 4], eax
cmp dword [esp + 0x38], edi
jb 0x44c3c3
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044d947
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0044dd38
add esp, 0x288
ret
Function at 0x44d590
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x46b678
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x482410]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x44d0d0
push 0x4843d8
call fcn.0044d2e0
mov eax, dword [0x4843e0]
add esp, 8
test eax, eax
je 0x44d5ea
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.0044e033
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.00418ed0
int3

Function at 0x44d620
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x46b6a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x482410]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4843e0]
test eax, eax
jne 0x44d652
xor esi, esi
jmp 0x44d65b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x44d687
cmp dword [esi + 0x14], 0
jne 0x44d6c9
cmp dword [esi + 0x10], 0
jne 0x44d6d0
push 0
call fcn.0044d590
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x44d6b5
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44d6b5
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x44d710
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x44d6fe
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x44d6d0
cmp dword [esi + 0x14], 0
je 0x44d677
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x44d735
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x44d766
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44d766
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x44d766
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x44d71a
jmp 0x44d671
Function at 0x44d800
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x46b6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x482410]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x44d780
push 0
push 0
call fcn.0044fd24
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x44d86b
lea ecx, [esp + 0x10]
call fcn.0044e033
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00418ed0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x44d891
cmp eax, 0xffffffff
je 0x44d891
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x44dd38
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x482410]
jne 0x44dd42
repz ret
jmp fcn.00454b4c
Function at 0x462237
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.00454487
and dword [ebp - 4], 0
cmp dword [0x484ed8], 0
mov ebx, eax
jne 0x4622e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x462399
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x462399
push eax
call fcn.00454415
mov dword [esp], 0x473b34
push edi
mov dword [0x484ed8], eax
call esi
push eax
call fcn.00454415
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x484edc], eax
call esi
push eax
call fcn.00454415
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x484ee0], eax
call esi
push eax
call fcn.00454415
pop ecx
mov dword [0x484ee8], eax
test eax, eax
je 0x4622e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00454415
pop ecx
mov dword [0x484ee4], eax
mov eax, dword [0x484ee4]
cmp eax, ebx
je 0x462340
cmp dword [0x484ee8], ebx
je 0x462340
push eax
call fcn.00454490
push dword [0x484ee8]
mov esi, eax
call fcn.00454490
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x462340
test edi, edi
je 0x462340
call esi
test eax, eax
je 0x462337
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x462337
test byte [ebp - 0xc], 1
jne 0x462340
or dword [ebp + 0x10], 0x200000
jmp 0x462379
mov eax, dword [0x484edc]
cmp eax, ebx
je 0x462379
push eax
call fcn.00454490
pop ecx
test eax, eax
je 0x462379
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x462379
mov eax, dword [0x484ee0]
cmp eax, ebx
je 0x462379
push eax
call fcn.00454490
pop ecx
test eax, eax
je 0x462379
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x484ed8]
call fcn.00454490
pop ecx
test eax, eax
je 0x462399
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46239b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4044dc
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 0xf003f
push 0
push 0x404678
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40458c
xor eax, eax
push ebp
push 0x404585
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40456e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404698
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 0x40458c
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
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 0x40466d
cmp byte [ebp - 0xd], 0
jne 0x4045ce
cmp byte [ebp - 0x12], 0
je 0x40466d
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4045e7
dec ebx
cmp byte [ebx], 0x2e
je 0x4045f6
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4045e6
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40466d
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404623
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40466d
cmp byte [ebp - 0xd], 0
je 0x40466d
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40466d
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x4068cc
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.004038b4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4068ee
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x407370
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 0x4073a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040357c
jmp 0x4073b2
mov eax, ebx
mov edx, esi
call fcn.00403530
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40e6c4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [0x41a2e0], 0
je 0x40e6fb
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0040e5c4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x40e751
mov eax, dword [ebp + 8]
mov edx, 0x400
call fcn.004039c4
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004036f0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004038b4
push eax
mov eax, dword [ebp + 0xc]
call fcn.004038b4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
mov eax, dword [ebp - 8]
call fcn.004038b4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.004039c4
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e8ac
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e9d5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x41a2e0], 0
je 0x40e8f2
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0040e5c4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x40e9bf
mov eax, 0x4000
call fcn.00402564
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e9b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040a380
xor eax, eax
push ebp
push 0x40e99b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004038b4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x40e985
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x40e97d
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.0040364c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
call fcn.00406c4c
inc eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x40e95b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9a2
mov eax, dword [ebp - 0xc]
call fcn.0040a43c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9dc
lea eax, [ebp - 0x18]
call fcn.00403498
ret

Function at 0x40ee10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40eecb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040ecb8
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
call fcn.004038b4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40eeb5
xor eax, eax
push ebp
push 0x40eeae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004038b4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40ee97
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eeb5
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eed2
lea eax, [ebp - 0x10]
call fcn.00403498
ret