joyce8/EMBER2024-capa huggingface dataset:
Function at 0x571305
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00571281
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x571474
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x571474
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x571429
jg 0x571361
test eax, eax
je 0x57141f
push 1
push 0x1000
call fcn.00561d71
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x571384
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x571416
push 0x8000
push ebx
call fcn.0055bc06
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5713ad
jg 0x5713a8
cmp ecx, 0x1000
jb 0x5713ad
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00565eba
add esp, 0x10
cmp eax, 0xffffffff
je 0x5713f2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5713a8
jl 0x5713d9
test ecx, ecx
jne 0x57139a
push dword [ebp - 0xc]
push ebx
call fcn.0055bc06
push esi
call fcn.00561d37
add esp, 0xc
xor ebx, ebx
jmp 0x571482
cmp byte [edi + 0x24], 0
je 0x571409
cmp dword [edi + 0x20], 5
jne 0x571409
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x571414
mov ebx, dword [edi + 0x18]
jmp 0x571416
xor ebx, ebx
push esi
call fcn.00561d37
pop ecx
jmp 0x571482
test ecx, ecx
jg 0x5713eb
jl 0x571429
test eax, eax
jae 0x5713eb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005662dc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x571449
cmp byte [edi + 0x1c], 0
je 0x5713eb
jmp 0x57147a
push ebx
call fcn.00568d09
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5713eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x571482
cmp byte [edi + 0x1c], 0
je 0x57147f
mov ebx, dword [edi + 0x18]
jmp 0x571482
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005662dc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x572b00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x572b2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x572b2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4030d0
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 0x40310c
movzx eax, 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 0x40312c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405638
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033c4
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.004053c8
test esi, esi
jne 0x4033fa
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.004054b8
jmp 0x403418
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403268
mov edi, eax
test esi, esi
je 0x403418
cmp dword [ebx], 0
je 0x403418
dec esi
jmp 0x403401
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4042d0
Capabilities:
Query or enumerate registry value

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

Function at 0x405190
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63504c], 0
je 0x4051f1
cmp word [0x635220], 0xd7b2
jne 0x4051b9
cmp dword [0x635228], 0
jbe 0x4051b9
mov eax, 0x63521c
call dword [0x635238]
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 0x405218
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c030], 0
jne 0x40520d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409658
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4096aa
test eax, edx
je 0x4096ad
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40966d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409693
add ecx, 4
js 0x409683
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409690
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4096b9
test edx, edx
jne 0x409660
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405858
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f76
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x409f97
cmp ebx, 3
je 0x409f97
cmp ebx, 0x7b
je 0x409f97
mov eax, esi
call fcn.00409f18
test al, al
jne 0x409f9b
xor eax, eax
jmp 0x409f9d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405858
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409fb9
test al, 0x10
jne 0x409fbd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cd1c
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 0x40cd55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054b8
jmp 0x40cd5e
mov eax, ebx
mov edx, esi
call fcn.0040541c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cd68
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 0x40cd8a
movzx eax, byte [esp]
jmp 0x40cd8c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d41c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d294
mov eax, dword [0x633ef4]
cmp byte [eax], 0
je 0x40d498
mov eax, dword [0x633b48]
call fcn.00403850
call fcn.00403024
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a390
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40d4e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d4ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x633abc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6377f8]
call fcn.004069b0
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 0x40dda0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40de76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405460
lea eax, [ebp - 4]
call fcn.004058b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405858
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40de60
mov eax, ebx
call fcn.00402ec8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40de59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405858
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40de43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40de88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40de43
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de60
mov eax, dword [ebp - 0x10]
call fcn.00402ee4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de7d
lea eax, [ebp - 4]
call fcn.004053c8
ret
Function at 0x41fd20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6399ec
cmp dword [edi], 0
jne 0x41fd9c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x6399e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48cb0c
mov ecx, 2
call fcn.00403168
mov edx, 0x41fcf8
lea eax, [esi + 5]
call fcn.0041fd18
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fd18
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 0x41fd71
mov dword [0x6399e8], 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 0x41ff78
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4201a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
cmp byte [ebp + eax - 0x109], 0x5c
je 0x41ffd2
mov byte [ebp + eax - 0x108], 0x5c
mov byte [ebp + eax - 0x107], 0
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405638
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 4]
mov ecx, 0x4201c0
call fcn.004056e0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405858
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov ebx, eax
test ebx, ebx
je 0x420023
push 0x4201d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6399f0], eax
push 0
push 0
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405638
lea eax, [ebp - 0x110]
mov edx, 0x4201f4
call fcn.00405694
mov eax, dword [ebp - 0x110]
call fcn.00405858
push eax
call sub.kernel32.dll_LoadLibraryExA_1
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405638
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x420208
call fcn.004056e0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405858
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov ebx, eax
test ebx, ebx
je 0x420183
push 0x420214
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6399f4], eax
push 0x420228
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6399f8], eax
push 0x420238
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a24], eax
push 0x420248
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a28], eax
push 0x42025c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6399fc], eax
push 0x420270
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a00], eax
push 0x420284
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a04], eax
push 0x420294
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a08], eax
push 0x4202a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a0c], eax
push 0x4202bc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a10], eax
push 0x4202d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a14], eax
push 0x4202e4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a18], eax
push 0x4202fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a1c], eax
push 0x420318
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x639a20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4201b0
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.004053ec
lea eax, [ebp - 4]
call fcn.004053c8
ret
Function at 0x42051c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x42052f
cmp dword [esi + 0x2b], 0
je 0x42053d
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x4205c3
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x420560
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x4205c3
push eax
push eax
push dword [ebp + 0xc]
call sub.kernel32.dll_LoadResource
pop ecx
or eax, eax
jne 0x42057a
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4205c3
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x420598
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x4205c3
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.00421e0c
or eax, eax
jne 0x4205b7
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x4205c3
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc

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

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42304b
test al, 0x10
jne 0x42304e
xor eax, eax
ret
mov al, 1
ret

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

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42307f
test al, 0x10
je 0x423082
xor eax, eax
ret
mov al, 1
ret

Function at 0x423190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 0x12
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], 0x5024048b
mov byte [ebx + 4], 0xb8
lea eax, [ebx + 9]
mov dword [eax], 0x4244489
mov byte [ebx + 0xd], 0xe9
lea eax, [ebx + 5]
mov dword [eax], esi
sub edi, ebx
sub edi, 0x12
lea eax, [ebx + 0xe]
mov dword [eax], edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x423584
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4235ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004055c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00423570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4235f5
lea eax, [ebp - 0x10c]
call fcn.004053c8
ret
Function at 0x4235fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423666
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004055c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00423570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42366d
lea eax, [ebp - 0x10c]
call fcn.004053c8
ret

Function at 0x423674
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4236a4
push esp
call sub.user32.dll_TranslateMessage
push esp
call sub.user32.dll_DispatchMessageA
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, esi
jb 0x423682
add esp, 0x1c
pop esi
pop ebx
ret

Function at 0x4237d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push ebp
push 0x423859
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0x423868
push 0
push edx
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x423843
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004055c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x423829
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423860
lea eax, [ebp - 0xc]
call fcn.004053c8
ret

Function at 0x423a50
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 0x423a89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054b8
jmp 0x423a92
mov eax, ebx
mov edx, esi
call fcn.0040541c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423a9c
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 0x423abe
movzx eax, byte [esp]
jmp 0x423ac0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4249ac
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x424a36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edx
mov edx, 0x80000301
call fcn.00425508
mov esi, eax
cmp esi, 0xffffffff
setne bl
test bl, bl
je 0x424a20
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
lea eax, [ebp - 4]
mov ecx, edi
xor edx, edx
call fcn.004054b8
lea eax, [ebp - 4]
call fcn.004058b8
mov edx, eax
mov ecx, edi
mov eax, esi
call fcn.00423054
mov eax, esi
call fcn.00425550
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00424694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a3d
lea eax, [ebp - 4]
call fcn.004053c8
ret

Function at 0x425188
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x1d], 1
pop ebx
ret

Function at 0x42519c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x1c], 0
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x4251b7
mov byte [ebx + 0x1c], 1
pop ebx
ret
cmp word [ebx + 0x3a], 0
je 0x4251c6
mov edx, ebx
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
pop ebx
ret

Function at 0x427f38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405858
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x427f90
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x634154]
mov dl, 1
mov eax, dword [0x427a44]
call fcn.0040d5dc
call fcn.00404d34
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427b4c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x428dec
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 0x428df2
ret