joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044bc40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044bcc0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044bcc0
lea ecx, [esi + 0xc]
call fcn.004602f6
lea ecx, [esi + 0x10]
call fcn.004602f6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044e4f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044e4f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044e4f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046036b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046036b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44cd38
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46eab8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44cd48
call fcn.0044d260
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44ce2b
cmp byte [edi], 0
je 0x44ce2b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44cd6d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044ba60
test eax, eax
jne 0x44cd8d
push 0x555460
lea ecx, [esi + 0x38]
call fcn.004604a8
jmp 0x44ce2b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044bab0
test eax, eax
jne 0x44cdbc
mov ecx, esi
call fcn.0044bbb0
push edi
add esi, 0x38
push 0x55543c
push esi
call fcn.0045e307
add esp, 0xc
jmp 0x44ce2b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044dae0
test eax, eax
je 0x44ce24
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044cf00
test eax, eax
jne 0x44ce40
push edi
lea eax, [esi + 0x38]
push 0x555418
push eax
call fcn.0045e307
add esp, 0xc
mov ecx, esi
call fcn.0044d260
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44cee8
mov ecx, dword [0x5556d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045e307
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044bb60
test eax, eax
jne 0x44ceaa
push 0x5553fc
lea ecx, [esi + 0x38]
call fcn.004604a8
jmp 0x44ceba
push 0xfa
mov ecx, esi
call fcn.0044dae0
test eax, eax
jne 0x44ced7
mov ecx, esi
call fcn.0044d260
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046036b
jmp 0x44ce2b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046036b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46270f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462747
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004607c6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046079e
jmp 0x462753
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463dfd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463e3f
call fcn.0046997e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463e3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463e36
xor eax, eax
jmp 0x463e47
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463e4d
pop edi
pop esi
pop ebx
ret 4

Function at 0x469eae
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x469edc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469efa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469e14
jmp 0x469efa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469efa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469e14
test edi, edi
mov eax, edi
jne 0x469ee4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x50a7d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xad000]
push edi
or ebp, 0xffffffff
jmp 0x50a7f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50a7f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50a7e8
mov eax, 1
add ebx, ebx
jne 0x50a80b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50a81c
jne 0x50a83b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50a83b
dec eax
add ebx, ebx
jne 0x50a828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50a800
add ebx, ebx
jne 0x50a837
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50a88d
xor ecx, ecx
sub eax, 3
jb 0x50a853
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50a8c2
sar eax, 1
mov ebp, eax
jmp 0x50a85e
add ebx, ebx
jne 0x50a85e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50a82c
inc ecx
add ebx, ebx
jne 0x50a86c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50a82c
add ebx, ebx
jne 0x50a879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50a86e
jne 0x50a88a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50a86e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50a8ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50a89e
jmp 0x50a7ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50a8ac
add edi, ecx
jmp 0x50a7ee
pop esi
mov edi, esi
mov ecx, 0x3689
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50a8ca
cmp byte [edi], 0x13
jne 0x50a8ca
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 0x50a8cf
lea edi, [esi + 0x107000]
mov eax, dword [edi]
or eax, eax
je 0x50a93e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10bb64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10bc58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50a8fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10bc60]
or eax, eax
je 0x50a938
mov dword [ebx], eax
add ebx, 4
jmp 0x50a919
call dword [esi + 0x10bc5c]
mov ebp, dword [esi + 0x10bc64]
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 0x50a972
sub esp, 0xffffff80
jmp 0x4861b0
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x41012f]
shl eax, 2
mov dword [0x410133], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004035f8
pop edx
call fcn.00402994
call fcn.004035fc
push 0
call fcn.00404984
pop ecx
push 0x4100d8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x410137], eax
push 0
jmp fcn.0040dbf0

Function at 0x401ccc
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
mov eax, dword [0x411fa4]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x20]
push edx
push ebx
call sub.KERNEL32.DLL_GetConsoleScreenBufferInfo
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
movsx eax, word [ebp - 0x20]
movsx edx, word [ebp - 0x1e]
imul edx
push eax
push 0x20
push ebx
call sub.KERNEL32.DLL_FillConsoleOutputCharacterA
push dword [ebp - 4]
push ebx
call sub.KERNEL32.DLL_SetConsoleCursorPosition
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d16
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ax, word [ebp + 8]
mov word [ebp - 4], ax
mov dx, word [ebp + 0xc]
mov word [ebp - 2], dx
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401d4c
push str.locate_console_error1
call fcn.004063d0
pop ecx
push 1
call fcn.0040c6dc
pop ecx
push dword [ebp - 4]
push ebx
call sub.KERNEL32.DLL_SetConsoleCursorPosition
test eax, eax
jne 0x401d78
movsx eax, word [ebp - 2]
push eax
movsx edx, word [ebp - 4]
push edx
push str.__d___d_locate_console_error2
call fcn.004063d0
add esp, 0xc
push 1
call fcn.0040c6dc
pop ecx
pop ebx
pop ecx
pop ebp
ret

Function at 0x4022e8
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
push ebx
push 0x400
lea eax, [ebp - 0x800]
push eax
call sub.KERNEL32.DLL_GetConsoleTitleA
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
call sub.KERNEL32.DLL_GetTickCount
push eax
push str._d__d
lea edx, [ebp - 0x400]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0x10
lea ecx, [ebp - 0x400]
push ecx
call sub.KERNEL32.DLL_SetConsoleTitleA
push 0x28
call sub.KERNEL32.DLL_Sleep
lea eax, [ebp - 0x400]
push eax
push 0
call sub.USER32.DLL_FindWindowA
mov ebx, eax
lea eax, [ebp - 0x800]
push eax
call sub.KERNEL32.DLL_SetConsoleTitleA
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402451
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00403bf8
add esp, 0xc
mov dword [ebp - 0x44], 0x44
push 0x10
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.00403bf8
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4024b9
call sub.KERNEL32.DLL_GetLastError
push eax
push str.CreateProcess_failed___d__n
call fcn.004063d0
add esp, 8
or eax, 0xffffffff
jmp 0x4024cc
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x50]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
ret

Function at 0x402549
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb00
push ebx
push esi
mov esi, dword [ebp + 0xc]
call fcn.004024f0
test eax, eax
je 0x402568
or eax, 0xffffffff
jmp 0x4025f4
push dword [ebp + 8]
push 0
push 0x411
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
test ebx, ebx
jne 0x402582
or eax, 0xffffffff
jmp 0x4025f4
push 0x500
lea edx, [ebp - 0x500]
push edx
push 0
push ebx
call dword [0x411fac]
test eax, eax
jne 0x4025a6
push ebx
call sub.KERNEL32.DLL_CloseHandle
or eax, 0xffffffff
jmp 0x4025f4
lea edx, [ebp - 0x500]
push edx
call fcn.004024d0
pop ecx
push esi
call fcn.004024d0
pop ecx
push esi
lea ecx, [ebp - 0x500]
push ecx
call fcn.00403d2c
add esp, 8
test eax, eax
je 0x4025d9
push ebx
call sub.KERNEL32.DLL_CloseHandle
or eax, 0xffffffff
jmp 0x4025f4
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
mov esi, eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
jne 0x4025f2
or eax, 0xffffffff
jmp 0x4025f4
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4032ec
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x404dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x404def
mov eax, dword [0x413150]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x404dfc
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x404e29
je 0x404e3b
sub ecx, 0x100
je 0x404e49
sub ecx, 0x100
je 0x404e50
sub ecx, 0x100
je 0x404e42
jmp 0x404e57
sub ecx, 0x600
je 0x404e50
sub ecx, 0x100
je 0x404e3b
jmp 0x404e57
mov edi, 1
jmp 0x404e5c
mov edi, 2
jmp 0x404e5c
mov edi, 4
jmp 0x404e5c
mov edi, 5
jmp 0x404e5c
mov edi, 3
test byte [ebp + 0xd], 1
je 0x404e83
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x412bc8]
test al, 0x80
je 0x404e7c
mov ebx, 0x80
jmp 0x404e95
mov ebx, 1
jmp 0x404e95
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x404e95
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x404ea7
je 0x404eb0
dec eax
je 0x404eb9
jmp 0x404ec2
mov dword [ebp - 4], 0x80000000
jmp 0x404ed1
mov dword [ebp - 4], 0x40000000
jmp 0x404ed1
mov dword [ebp - 4], 0xc0000000
jmp 0x404ed1
push 1
call fcn.00406014
pop ecx
mov ebx, eax
jmp 0x404fc1
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x404eed
sub eax, 0x10
je 0x404ef4
sub eax, 0x10
je 0x404efd
sub eax, 0x10
je 0x404f06
jmp 0x404f06
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x404f0d
mov dword [ebp - 8], 1
jmp 0x404f0d
mov dword [ebp - 8], 2
jmp 0x404f0d
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x404f7a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x404f6f
test byte [ebp + 0xd], 1
je 0x404f6a
mov ebx, 0x50
jmp 0x404f6f
mov ebx, 2
push ebx
call fcn.00406014
pop ecx
mov ebx, eax
jmp 0x404fc1
mov edi, esi
push edi
call fcn.00404d40
pop ecx
test eax, eax
je 0x404f8e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x404f9a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00405d58
add esp, 8
mov ebx, eax
inc eax
jne 0x404fc1
push 4
call fcn.00406014
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.004028a4
pop ecx
mov ebx, eax
test eax, eax
jne 0x405b34
xor eax, eax
jmp 0x405bdd
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x405b55
cmp esi, 0x104
jb 0x405b60
push ebx
call fcn.004028b4
pop ecx
xor eax, eax
jmp 0x405bdd
cmp byte [ebx + 1], 0x3a
jne 0x405b90
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x405b90
push ebx
call fcn.004028b4
pop ecx
xor eax, eax
jmp 0x405bdd
inc esi
test edi, edi
je 0x405bd3
cmp esi, dword [ebp + 0x10]
jbe 0x405ba5
push ebx
call fcn.004028b4
pop ecx
xor eax, eax
jmp 0x405bdd
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004028b4
pop ecx
mov eax, edi
jmp 0x405bdd
push esi
push ebx
call fcn.004028c4
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x405c18
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x405c5d
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x405c4c
cmp eax, dword [ebp + 0x10]
jle 0x405ce6
mov dword [0x4143b0], 8
xor eax, eax
jmp 0x405d51
cmp dword [0x41b7cc], 1
jne 0x405ca2
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x405ce6
xor eax, eax
jmp 0x405d51
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x405ce2
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x405ce6
xor eax, eax
jmp 0x405d51
lea edx, [ebp - 0x10c]
push edx
call fcn.00403da8
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x405d06
mov dword [0x4143b0], 0x22
xor eax, eax
jmp 0x405d51
test edi, edi
jne 0x405d28
mov edx, dword [ebp + 0x10]
push edx
call fcn.004028a4
pop ecx
mov edi, eax
test eax, eax
jne 0x405d28
mov dword [0x4143b0], 8
xor eax, eax
jmp 0x405d51
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00403c9c
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00403da8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00403da8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x413da5
lea ecx, [ebp - 0x200]
push ecx
call fcn.00403c9c
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00403da8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0040a28c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4091b9
push esi
call fcn.00403da8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00403da8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004028a4
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x409190
xor eax, eax
jmp 0x409240
push esi
call fcn.00403da8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00403da8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00403bf8
add esp, 0xc
jmp 0x4091f9
mov edi, dword [ebx + 0x24]
push edi
call fcn.00403da8
pop ecx
push eax
push esi
call fcn.00403da8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00403da8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004028c4
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4091f9
xor eax, eax
jmp 0x409240
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00403c9c
add esp, 8
push 0x413da7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00403c9c
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00403c9c
add esp, 8
push 0x413da9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00403c9c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c3d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40c432
call fcn.0040c380
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00403da8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00403da8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40c490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4143b8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40c56a
cmp dword [0x4143b4], 0
jne 0x40c56a
cmp dword [0x4145fc], 0
je 0x40c524
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040c280
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c50a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040c280
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c50a
lea ebx, [ebp - 0x84]
jmp 0x40c50b
inc ebx
call fcn.0040c44c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40c5a5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4143bc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00403da8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4143bf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40c5a5
cmp dword [0x4143b4], 0
je 0x40c584
cmp dword [0x4143b4], 0xffffffff
je 0x40c5a5
push esi
call dword [0x4143b4]
pop ecx
mov eax, dword [0x4143b8]
test eax, eax
je 0x40c5a5
cmp dword [0x4143b8], 0xffffffff
je 0x40c5a5
cmp byte [eax], 0
je 0x40c5a5
push esi
push eax
call fcn.0040c3d0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret