joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406340
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42a44b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404624
call fcn.00406fa1
push 4
mov dword [esp + 0x18], 0
call fcn.00407e46
mov edi, eax
add esp, 4
test edi, edi
je 0x4063b4
push ebx
call fcn.00406e79
mov dword [edi], eax
call fcn.00406c38
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406f62
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4063a8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406f8a
pop ebx
jmp 0x4063b6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4088b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d520]
jne 0x4088bb
repz ret
jmp fcn.0040cf8c
Function at 0x411c52
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040af2f
and dword [ebp - 0x14], 0
cmp dword [0x430374], 0
mov dword [ebp - 0x18], eax
jne 0x411d05
push 0x403944
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411dad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403938
push ebx
call edi
test eax, eax
je 0x411dad
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403928
push ebx
mov dword [0x430374], eax
call edi
push eax
call esi
push 0x403914
push ebx
mov dword [0x430378], eax
call edi
push eax
call esi
push 0x4038f8
push ebx
mov dword [0x43037c], eax
call edi
push eax
call esi
mov dword [0x430384], eax
test eax, eax
je 0x411d05
push 0x4038e0
push ebx
call edi
push eax
call esi
mov dword [0x430380], eax
mov eax, dword [0x430380]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411d5e
cmp dword [0x430384], ecx
je 0x411d5e
push eax
call esi
push dword [0x430384]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411d5e
test ebx, ebx
je 0x411d5e
call edi
test eax, eax
je 0x411d55
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411d55
test byte [ebp - 8], 1
jne 0x411d5e
or dword [ebp + 0x10], 0x200000
jmp 0x411d91
mov eax, dword [0x430378]
cmp eax, dword [ebp - 0x18]
je 0x411d91
push eax
call esi
test eax, eax
je 0x411d91
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411d91
mov eax, dword [0x43037c]
cmp eax, dword [ebp - 0x18]
je 0x411d91
push eax
call esi
test eax, eax
je 0x411d91
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430374]
call esi
test eax, eax
je 0x411dad
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411daf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088b1
leave
ret
Function at 0x428fe0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x7b5100], 0x37
jne 0x429078
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0x404110
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404148
push 0x404198
push 0x4041d8
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b5104]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x435164]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x429290
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b5100]
mov ecx, dword [0x435164]
sub esp, 0x47c
push ebx
push ebp
shr eax, 3
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jbe 0x42948d
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x4292c6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7b5100], 0x1c
jne 0x4292dd
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [edi + 4]
mov edx, dword [0x42e700]
mov eax, dword [0x42e704]
mov esi, dword [edi]
mov ebp, dword [0x42e708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42e70c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x42931a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0x7b4084], ebx
mov eax, dword [esp + 0x18]
add dword [0x7b4084], eax
mov edx, dword [0x7b4084]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7b5100], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x4293b4
lea edx, [esp + 0x34]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x30]
cmp dword [0x7b5100], 0x979
mov dword [0x7b4088], 0xff6b3619
mov dword [0x7b408c], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x429408
mov eax, dword [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0x7b5100]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x42942a
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x429318
cmp eax, 0x8d4
jne 0x429446
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
cmp dword [0x7b5100], 0x17
jne 0x42947c
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x4292c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x47c
ret
Function at 0x412d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x412d4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412d40
mov eax, 1
add ebx, ebx
jne 0x412d63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412d58
jne 0x412d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412d58
xor ecx, ecx
sub eax, 3
jb 0x412d88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412dfa
mov ebp, eax
add ebx, ebx
jne 0x412d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412da0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412dc4
inc ecx
add ebx, ebx
jne 0x412db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412da5
jne 0x412dc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412da5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412de4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412dd5
jmp 0x412d46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412de4
add edi, ecx
jmp 0x412d46
pop esi
mov edi, esi
mov ecx, 0x32f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412e02
cmp byte [edi], 0
jne 0x412e02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x412e07
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412e76
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x120e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12198]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412e34
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1219c]
or eax, eax
je 0x412e70
mov dword [ebx], eax
add ebx, 4
jmp 0x412e51
call dword [esi + 0x121ac]
mov ebp, dword [esi + 0x121a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412eaa
sub esp, 0xffffff80
jmp 0x4082e0
Function at 0x467460
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x412015
lea edi, [esi - 0x11015]
push edi
jmp 0x46747a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467470
mov eax, 1
add ebx, ebx
jne 0x467493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4674a4
jne 0x4674c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4674c3
dec eax
add ebx, ebx
jne 0x4674b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x467488
add ebx, ebx
jne 0x4674bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x467515
xor ecx, ecx
sub eax, 3
jb 0x4674db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46754a
sar eax, 1
mov ebp, eax
jmp 0x4674e6
add ebx, ebx
jne 0x4674e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4674b4
inc ecx
add ebx, ebx
jne 0x4674f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4674b4
add ebx, ebx
jne 0x467501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4674f6
jne 0x467512
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4674f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x467534
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x467526
jmp 0x467476
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x467534
add edi, ecx
jmp 0x467476
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x467552
cmp byte [edi], 0
jne 0x467552
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x467557
mov ebp, dword [esi + 0x676d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4675b2
sub esp, 0xffffff80
jmp 0x407c28
Function at 0x4032c4
Capabilities:
Query or enumerate registry value

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

Function at 0x404008
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x453048], 0
je 0x404069
cmp word [0x45321c], 0xd7b2
jne 0x404031
cmp dword [0x453224], 0
jbe 0x404031
mov eax, 0x453218
call dword [0x453234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x451098
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 0x404090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x451030], 0
jne 0x404085
push 0
push 0x451090
push 0x451098
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053e4
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 0x405614
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405467
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405614
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405467
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405630
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054f0
xor eax, eax
push ebp
push 0x4054e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040522c
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 0x4054ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405650
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4054ce
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 0x4054f0
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 0x40560a
cmp byte [ebp - 0xd], 0
jne 0x405537
cmp byte [ebp - 0x12], 0
je 0x40560a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405550
dec ebx
cmp byte [ebx], 0x2e
je 0x40555f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40554f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40560a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40559c
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 0x40560a
cmp byte [ebp - 0xd], 0
je 0x40560a
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 0x40560a
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 0x405cdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d42
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d2c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d49
lea eax, [ebp - 0x10]
call fcn.00404184
ret

Function at 0x40ac30
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 0x40ac69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404274
jmp 0x40ac72
mov eax, ebx
mov edx, esi
call fcn.004041d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b324
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b19c
mov eax, dword [0x45208c]
cmp byte [eax], 0
je 0x40b3a0
mov eax, dword [0x451eb4]
call fcn.00402980
call fcn.00402824
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.004084a4
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 0x40b3e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x451e64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x453664]
call fcn.004051f0
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 0x40bc3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bd12
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040421c
lea eax, [ebp - 8]
call fcn.00404694
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404644
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bcfc
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bcf5
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 - 8]
call fcn.00404644
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bcdf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bd24
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bcdf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcfc
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd19
lea eax, [ebp - 8]
call fcn.00404184
ret

Function at 0x40c190
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 0x40c1f4
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.004043f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408034
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1fb
lea eax, [ebp - 0xc]
call fcn.00404184
ret

Function at 0x41a31c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x453884
cmp dword [edi], 0
jne 0x41a398
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x453880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x451418
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a2f4
lea eax, [esi + 5]
call fcn.0041a314
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a314
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 0x41a36d
mov dword [0x453880], 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 0x41b5ac
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 0x41b5b2
ret