joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401670
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x40b5c4
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x401760
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x401775
cmp eax, 0xffffffff
je 0x401775
call fcn.004017e0
mov eax, dword [esp + 0xc]
push 0
test eax, eax
je 0x401783
push 1
jmp 0x401785
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4017d0
mov ecx, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 8]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x1c], ecx
call edi
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
pop edi
mov ecx, dword [esi + 4]
xor eax, eax
cmp ecx, 0xffffffff
pop esi
setne al
pop ecx
ret 8

Function at 0x401810
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
mov dword [ecx], eax
test esi, esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
jne 0x401837
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x401873
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401867
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push edi
lea edi, [ebx + 4]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
pop edi
mov word [ebx], ax
jmp 0x40187b
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x401892
mov dword [ebx + 4], eax
mov word [ebx], 2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4018a0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4018b9
mov eax, dword [esi + 8]
test eax, eax
je 0x4018b9
call fcn.004017e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 8]
push ecx
push edx
mov dword [esi + 8], 0
call fcn.00401810
add esp, 0xc
test eax, eax
je 0x4018f4
mov ecx, dword [esi + 4]
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 8

Function at 0x401930
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x401952
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x401956
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40195d
mov dword [esi + 8], eax
pop esi
ret 8
Function at 0x401ed0
Capabilities:
Read data from internet
Receive data

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401ef3
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8

Function at 0x402c70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x40d164
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402cdb
push ebx
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x402ca3
mov ecx, dword [edi]
push 0
push ecx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push esi
push edx
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x402ccb
push esi
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4044f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [edi + 4]
push ebx
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x404540
mov ecx, dword [edi + 8]
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.00402880
add esp, 0xc
mov dword [ebx], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x404550
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
test edi, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x400
je 0x404577
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push ebp
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test edi, edi
mov ebx, eax
je 0x4045a3
mov edx, dword [esp + 0x10]
mov dword [edi], edx
test ebx, ebx
jne 0x4045bf
mov eax, dword [esi + 8]
test eax, eax
je 0x4045bf
mov eax, dword [edi]
mov cl, byte [esi + 8]
push eax
push ecx
push ebx
push ebp
call fcn.00402900
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x4045d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push 0
mov eax, dword [esi + 8]
push eax
push ecx
call fcn.00402880
mov ecx, dword [esi + 4]
add esp, 0xc
lea edx, [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x404610
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
test eax, eax
je 0x40462d
push 0
push eax
push 1
push edi
call fcn.00402900
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlen]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
inc eax
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x404650
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
test ebx, ebx
mov dword [esp + 0x10], 0x94
mov ebp, 0x63
je 0x40469f
mov edi, 0x40d2f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4047bb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp ecx, 4
jne 0x404709
test edx, edx
jne 0x4046e7
cmp eax, 2
je 0x404763
test ebx, ebx
mov ebp, 0xa
je 0x4047bb
mov edi, 0x40d2e8
jmp 0x404772
cmp edx, 0x5a
jne 0x40470e
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x404763
test ebx, ebx
mov ebp, 0xc
je 0x4047bb
mov edi, 0x40d2e0
jmp 0x404772
cmp ecx, 4
jb 0x40472b
test edx, edx
jbe 0x40472b
cmp eax, 2
je 0x40472b
test ebx, ebx
mov ebp, 0xb
je 0x4047bb
mov edi, 0x40d2d8
jmp 0x404772
cmp ecx, 5
jne 0x404763
test edx, edx
jne 0x404749
cmp eax, 2
jne 0x404763
test ebx, ebx
mov ebp, 0x15
je 0x4047bb
mov edi, 0x40d2d0
jmp 0x404772
cmp edx, 1
jne 0x404763
cmp eax, 2
jne 0x404763
test ebx, ebx
mov ebp, 0x16
je 0x4047bb
mov edi, 0x40d2c8
jmp 0x404772
test eax, eax
jne 0x40478f
xor ebp, ebp
test ebx, ebx
je 0x4047bb
mov edi, 0x40d2c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x4047bb
mov ecx, dword [esp + 0x1c]
mov edi, ebx
push ecx
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x1c]
not ecx
dec ecx
push edx
add ecx, ebx
push 0x40d2b4
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x14
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x405050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x405290
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push ebp
push 0x40d41c
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 4], eax
je 0x405430
push ebx
push esi
push edi
push 0x40d404
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40536d
mov eax, dword [esp + 0x124]
mov edi, dword [esp + 0x118]
test eax, eax
je 0x4052e2
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
lea eax, [esp + 0x1c]
push 0xff
push eax
push edi
push 0
call esi
test eax, eax
jne 0x40536d
mov ebx, dword [esp + 0x11c]
mov ebp, 1
test ebx, ebx
je 0x4053a3
cmp byte [ebx], 0
je 0x4053a3
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.00405440
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x405366
mov eax, dword [esp + 0x120]
test eax, eax
je 0x405366
push 1
push 0
push 0
push 0x40d238
push ebx
call fcn.00402500
add esp, 0x14
test eax, eax
push 5
je 0x405385
push ebx
call dword [sym.imp.KERNEL32.dll_WinExec]
xor edx, edx
cmp eax, 0x20
setg dl
mov ebp, edx
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
add esp, 0x104
ret
push 0
push 0
push ebx
push 0x40d3fc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov ebp, ecx
jmp 0x405366
mov eax, dword [esp + 0x120]
test eax, eax
je 0x4053f9
push 1
push 0
push 0
lea edx, [esp + 0x20]
push 0x40d238
push edx
call fcn.00402500
add esp, 0x14
test eax, eax
push 5
je 0x4053d9
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4053ef
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push 0x40d3fc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov ebp, ecx
test ebx, ebx
je 0x405366
cmp byte [ebx], 0
jne 0x405366
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40536d
mov eax, ebp
pop ebp
add esp, 0x104
ret
Function at 0x406910
Capabilities:
Create directory
Create process on windows
Get common file path

Disassembly:
sub esp, 0x100
lea eax, [esp]
push ebx
push esi
push edi
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
call fcn.00404650
add esp, 4
cmp eax, 0x14
lea edx, [esp + 0xc]
jl 0x406973
mov edi, 0x40dfac
or ecx, 0xffffffff
xor eax, eax
push 0x40d4af
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.msvcrt.dll__strlwr]
jmp 0x4069a8
mov edi, 0x40dfa0
or ecx, 0xffffffff
xor eax, eax
push 0x40d4af
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.msvcrt.dll__strupr]
add esp, 4
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x40d4af
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405050
add esp, 4
test eax, eax
pop edi
pop esi
pop ebx
jne 0x406a11
push eax
push 1
lea ecx, [esp + 8]
push 1
push ecx
push eax
call fcn.00405440
add esp, 0x14
test eax, eax
je 0x406a1e
lea edx, [esp]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0x100
ret
Function at 0x4090f0
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40a726
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.00402ce0
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x284], ebx
call fcn.00404360
mov esi, dword [esp + 0x28c]
push 0x2e
push esi
mov byte [esp + 0x28c], 1
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 8
test eax, eax
je 0x409343
mov ebp, dword [esp + 0x290]
cmp byte [ebp], 0
je 0x409343
mov edi, dword [esp + 0x294]
cmp byte [edi], 0
je 0x409343
push 0x40d565
lea eax, [esp + 0x180]
push 0x40e000
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov edx, dword [esp + 0x2a4]
add esp, 0xc
lea ecx, [esp + 0x17c]
push ecx
push ebx
push edx
push ebx
push edi
push ebp
push esi
lea ecx, [esp + 0x3c]
call fcn.00402db0
test eax, eax
jle 0x409343
lea ecx, [esp + 0x24]
mov ebx, 1
call fcn.00401630
test eax, eax
je 0x409343
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0
call fcn.00401630
test eax, eax
jle 0x409343
mov ebp, dword [sym.imp.msvcrt.dll_atoi]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call fcn.00401610
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x40d238
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8c]
push ecx
call fcn.00402500
add esp, 0x14
test eax, eax
je 0x4092ff
push 0
lea edx, [esp + 0x3c]
push 9
lea eax, [esp + 0x84]
push edx
push eax
call fcn.00402c70
add esp, 0x10
test eax, eax
je 0x4092ff
cmp byte [esp + 0x3e], 0x58
jne 0x4092ff
lea ecx, [esp + 0x7c]
push 0x2e
push ecx
call dword [sym.imp.msvcrt.dll_strrchr]
add esp, 8
test eax, eax
je 0x4092eb
movsx edx, byte [eax - 1]
lea esi, [eax - 1]
push edx
call dword [sym.imp.msvcrt.dll_isdigit]
add esp, 4
test eax, eax
je 0x4092eb
push esi
call ebp
push eax
lea eax, [esp + 0x40]
push 0x40dfe8
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x14]
push 0
push 0
push 0xf003f
push 0
push 0
push 0x40d565
push 0x80000002
call fcn.00404450
test eax, eax
jne 0x4092f8
lea ecx, [esp + 0x38]
lea edx, [esp + 0x7c]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00404610
lea ecx, [esp + 0x14]
call fcn.00404430
mov ebx, 2
jmp 0x409329
lea eax, [esp + 0x7c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, 2
jmp 0x409329
push 1
push 0
push 0
lea ecx, [esp + 0x88]
push 0x40d428
push ecx
call fcn.00402500
add esp, 0x14
test eax, eax
jne 0x409329
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
inc esi
mov dword [esp + 0x10], esi
call fcn.00401630
cmp esi, eax
jl 0x4091e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x284], 0
call fcn.004043a0
lea ecx, [esp + 0x20]
mov dword [esp + 0x284], 0xffffffff
call fcn.00402d50
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x278
ret
Function at 0x409390
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40a73b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebp
push esi
lea ecx, [esp + 8]
call fcn.00404360
xor esi, esi
lea ecx, [esp + 8]
push esi
push esi
push 0xf003f
push esi
push esi
push 0x40d565
push 0x80000002
mov dword [esp + 0x17c], esi
xor ebp, ebp
call fcn.00404450
test eax, eax
jne 0x40944b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WinExec]
push edi
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push esi
lea eax, [esp + 0x20]
push 0x40dfe8
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x60]
push 0
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00404550
test eax, eax
jne 0x40943a
push eax
push eax
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00404ed0
add esp, 0x10
test eax, eax
jne 0x40943a
lea ecx, [esp + 0x60]
push eax
push ecx
call ebx
cmp eax, 0x20
jle 0x40943a
inc ebp
inc esi
cmp esi, 9
jle 0x4093ef
lea ecx, [esp + 0x10]
call fcn.00404430
pop edi
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x160], 0xffffffff
call fcn.004043a0
mov ecx, dword [esp + 0x158]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x40a020
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x200
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40a0cb
push ebx
push esi
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x110]
push 0x40e394
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
mov edi, 0x40e38c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x210]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test eax, eax
pop ebx
je 0x40a0b5
lea eax, [esp + 0x100]
lea ecx, [esp]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_rename]
add esp, 8
add esp, 0x200
ret
lea edx, [esp]
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.msvcrt.dll_rename]
add esp, 8
add esp, 0x200
ret
Function at 0x4031c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x409460
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, edi
push 0
call fcn.0040c380
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov word [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
test esi, esi
mov dword [ebp - 0x20], edi
je 0x40326f
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.0040c661
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.0040c32d
add esp, 4
nop word cs:[eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4032ac
push eax
call fcn.00413b5b
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4032c5
push eax
call fcn.00413b5b
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4032de
push eax
call fcn.00413b5b
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4032f7
push eax
call fcn.00413b5b
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403310
push eax
call fcn.00413b5b
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403329
push eax
call fcn.00413b5b
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.0040c3d8
add esp, 8
pop ebp
ret

Function at 0x40a4d2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a511
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a511
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a511
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a511
cmp dword [ecx + 0x74], 0xe
jbe 0x40a511
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41a2a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f0e8
push 0x42f0e0
push str.FlsAlloc
push 0x1e
call fcn.0041a113
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a2da
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a160]
call esi
jmp 0x41a2e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a324
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f0f8
push 0x42f0f0
push str.FlsGetValue
push 0x20
call fcn.0041a113
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a35b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41ce57
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41cef4
push ebx
push esi
call fcn.0041ce20
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041cd69
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cea1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cef3
push edi
push eax
call fcn.0041a8d9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cec1
call fcn.00419e38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cef2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cd69
add esp, 0x20
test eax, eax
jne 0x41cee0
push edi
call fcn.00419e38
jmp 0x41cee8
push ebx
call fcn.00419e38
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4203e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042008a

Function at 0x4203f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420219