joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412dea
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d0
push edi
mov dword [ebp - 0x8d0], ecx
mov ecx, dword [ebp - 0x8d0]
call fcn.00412f98
and eax, 0xff
test eax, eax
jne 0x412e13
jmp 0x412f93
mov ecx, dword [ebp - 0x8d0]
call fcn.00412bfb
mov dword [ebp - 4], 0
mov byte [ebp - 0x888], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x887]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x868], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x867]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x468], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x467]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x8cc], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x8cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x88c], 0
mov byte [ebp - 0x68], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x67]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88c]
push eax
push 0
push 0
push 0x41c1c0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x88c]
push ecx
push str._02x
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x888]
push eax
call fcn.004129fb
add esp, 4
lea ecx, [ebp - 0x888]
push ecx
lea edx, [ebp - 0x868]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x868]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x41c1cc
lea edx, [ebp - 0x868]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x8cc]
push eax
lea ecx, [ebp - 0x868]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x868]
push edx
call fcn.00415404
add esp, 0xc
lea eax, [ebp - 0x8cc]
push eax
push 0x41c1d0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x888]
push edx
push 0x41c5a4
push str.http:__u.syansp.com_t.php_fid_smac_smid_sservertype_smd5_s
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
push 0
push 0
lea ecx, [ebp - 0x468]
push ecx
call fcn.0040c5c7
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x412f98
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
push edi
mov dword [ebp - 0x3c0], ecx
mov dword [ebp - 0xc], 1
mov al, byte [0x41c65c]
mov byte [ebp - 0x3b0], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x3af]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
push 0
lea ecx, [ebp - 0x2ac]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x1a8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x1a8]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x3b0]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push str._system.ini
lea edx, [ebp - 0x2ac]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push str._ff.e
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push str._ac_.._
lea ecx, [ebp - 0x3b0]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push closesocket
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0xffffffff
je 0x4130fd
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x3b4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [ebp - 0x1c]
and edx, 0xffff
cmp edx, 0x7bd
jne 0x4130f0
mov eax, dword [ebp - 0x16]
and eax, 0xffff
cmp eax, 0x14
jne 0x4130f0
mov ecx, dword [ebp - 0x1a]
and ecx, 0xffff
cmp ecx, 0xa
jne 0x4130f0
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x3b4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x413140
push 0
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x3b8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3bc], eax
cmp dword [ebp - 0x3b8], 0
je 0x413139
cmp dword [ebp - 0x3bc], 0xb7
jne 0x413140
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x413182
push closesocket
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x1a8]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0xffffffff
je 0x413182
mov eax, dword [ebp - 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
xor eax, eax
cmp dword [ebp - 0xc], 0
setne al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x413807
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x4138a1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jge 0x4138a1
push 0
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov cl, byte [ebp - 8]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 4
jl 0x41389f
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax - 4]
cmp ecx, 0xd
jne 0x41389f
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx - 3]
cmp eax, 0xa
jne 0x41389f
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx - 2]
cmp edx, 0xd
jne 0x41389f
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax - 1]
cmp ecx, 0xa
jne 0x41389f
mov dword [ebp - 4], 1
jmp 0x413822
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4138aa
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 4
mov eax, dword [ebp + 0xc]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4138e1
xor al, al
jmp 0x4138e3
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4139ad
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x404], 0
mov byte [ebp - 0x400], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x408], 0
cmp dword [ebp + 0x10], 0
je 0x413a6b
mov dword [ebp - 0x410], 0
push 0x41c338
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x413a2d
or eax, 0xffffffff
jmp 0x413b58
push 2
push 0
lea ecx, [ebp - 0x414]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x410]
push edx
push 0
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0x40c]
cmp edx, dword [ebp + 0xc]
jge 0x413b52
push 0x400
push 0
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0x3ff
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0xffffffff
jne 0x413ab9
jmp 0x413a6b
cmp dword [ebp + 0x10], 0
jne 0x413ac1
jmp 0x413b3b
push 0x41c33c
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jne 0x413ae7
or eax, 0xffffffff
jmp 0x413b58
mov ecx, dword [ebp - 0x408]
push ecx
push 1
mov edx, dword [ebp - 0x404]
push edx
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 1
je 0x413b2b
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x413b58
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x40c]
add eax, dword [ebp - 0x404]
mov dword [ebp - 0x40c], eax
jmp 0x413a6b
mov eax, dword [ebp - 0x40c]
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415d73
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x418398
push eax
call sub.MSVCRT.dll_memset
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x401060
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x401230
push 0
push 0
call fcn.004021ea
add esp, 0x18
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x410], eax
mov al, cl
pop esi
pop ecx
ret

Function at 0x401090
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x410]
test eax, eax
je 0x4010d3
push 0x7d0
push eax
mov byte [esi + 0x414], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4010c6
mov eax, dword [esi + 0x410]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x4016e0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4016f4
pop esi
mov al, 1
pop ebx
ret 4
mov eax, dword [str.C8371A08_4333_4085_A145_4613A149E47D]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 4], eax
jne 0x401730
mov al, byte [esp + 0xc]
test al, al
je 0x401730
mov ecx, dword [str.C8371A08_4333_4085_A145_4613A149E47D]
push ecx
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x401749
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401752
mov bl, 1
mov al, bl
pop esi
pop ebx
ret 4
Function at 0x4020c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x40215e
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004027e1
add esp, 4
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + edi - 1]
mov byte [esi + edi], 0
cmp byte [eax], 0x5c
jne 0x4020ff
mov byte [eax], 0
push 0x5c
push esi
call fcn.00402f57
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
add esp, 8
test edi, edi
je 0x402145
push esi
mov byte [edi], 0
call ebx
cmp eax, 0xffffffff
jne 0x402130
push 0
push esi
call ebp
test eax, eax
je 0x402145
mov byte [edi], 0x5c
inc edi
push 0x5c
push edi
call fcn.00402ee5
mov edi, eax
add esp, 8
test edi, edi
jne 0x40211c
push esi
call ebx
cmp eax, 0xffffffff
jne 0x402152
push 0
push esi
call ebp
push esi
call fcn.004021df
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403214
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004048a8
test esi, esi
jne 0x40324b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404998
jmp 0x40326c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004030b0
mov dword [esp], eax
test esi, esi
je 0x40326c
cmp dword [ebx], 0
je 0x40326c
dec esi
jmp 0x403253
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403970
Capabilities:
Query or enumerate registry value

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

Function at 0x404704
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x467048], 0
je 0x404765
cmp word [0x46721c], 0xd7b2
jne 0x40472d
cmp dword [0x467224], 0
jbe 0x40472d
mov eax, 0x467218
call dword [0x467234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
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 0x40478c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x404781
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4064fc
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 0x406562
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.00404b18
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403534
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40654c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406569
lea eax, [ebp - 0x10]
call fcn.004048a8
ret

Function at 0x40aba4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40ac34
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40ac34
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40abe7
test edx, 3
jne 0x40abd6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40abe1
jmp 0x40abe7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40abe7
cmp dword [ecx - 8], 1
je 0x40abf1
mov edx, ebx
or edx, 3
call fcn.00404ef4
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40ac03
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004048a8

Function at 0x40ac40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40acd0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40acd0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40ac83
test edx, 3
jne 0x40ac72
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40ac7d
jmp 0x40ac83
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40ac83
cmp dword [ecx - 8], 1
je 0x40ac8d
mov edx, ebx
or edx, 3
call fcn.00404ef4
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40ac9f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004048a8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d68
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b4d5
test al, 0x10
je 0x40b4d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40e158
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e191
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404998
jmp 0x40e19a
mov eax, ebx
mov edx, esi
call fcn.004048fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40f17c
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 0x40f252
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404940
lea eax, [ebp - 8]
call fcn.00404db8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d68
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f23c
mov eax, ebx
call fcn.00402d28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f235
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.00404d68
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f21f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f264
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f21f
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 0x40f23c
mov eax, dword [ebp - 0x10]
call fcn.00402d58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f259
lea eax, [ebp - 8]
call fcn.004048a8
ret

Function at 0x40f8d0
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 0x40f934
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.00404b18
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040b1b4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f93b
lea eax, [ebp - 0xc]
call fcn.004048a8
ret
Function at 0x41deac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x469aa8
cmp dword [esi], 0
jne 0x41df52
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x469aa4]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x464b9c
mov ecx, 2
call fcn.00402fb0
mov edx, 0x41de84
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041dea4
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041dea4
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41df19
mov eax, dword [ebp - 8]
mov dword [0x469aa4], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f4d0
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 0x41f4d6
ret

Function at 0x42199c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4219ed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4219d4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4219c4
jmp 0x4219ed
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4219d5
pop ebx
mov esp, ebp
pop ebp
ret