joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
xor eax, eax
push ebx
push 1
push eax
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
jne 0x403a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
pop ebx
add esp, 0x20
ret
push esi
push edi
push 0x10024
push str.Backupper_Service
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x403aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
call dword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x403b52
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov edi, dword [sym.imp.MSVCR80.dll_wprintf]
je 0x403b2d
push ebp
push str.Backupper_Service
push str.Stopping__s.
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x14]
push ecx
push esi
call ebp
test eax, eax
je 0x403b0b
cmp dword [esp + 0x18], 3
jne 0x403b0b
push 0x4058a0
call edi
add esp, 4
push 0x3e8
call ebx
lea edx, [esp + 0x14]
push edx
push esi
call ebp
test eax, eax
jne 0x403ae7
cmp dword [esp + 0x18], 1
pop ebp
push str.Backupper_Service
jne 0x403b1f
push 0x4058a4
jmp 0x403b24
push str._n_s_failed_to_stop._n
call edi
mov ebx, dword [esp + 0x14]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x403b50
push str.Backupper_Service
push str._s_is_removed._n
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push ebx
call edi
test esi, esi
je 0x403b65
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x403cf4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40701c]
jne 0x403cfe
repz ret
jmp fcn.0040400b
Function at 0x401180
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x15e
call fcn.00403030
add esp, 4
mov dword [0x4115e8], eax
xor ebx, ebx
xor eax, eax
mov ecx, dword [0x4115e8]
mov byte [ecx + eax], al
inc eax
cmp eax, 0x15e
jl 0x40119b
mov eax, dword [esp + 0x20]
mov byte [esp + 0x20], bl
xor esi, esi
mov byte [eax], bl
mov byte [eax + 1], bl
mov edi, dword [esp + 0x20]
mov ebp, dword [0x4115e8]
mov eax, dword [esp + 0x18]
and edi, 0xff
xor edx, edx
lea ecx, [ebx + ebp]
mov dl, byte [edi + eax]
xor eax, eax
mov al, byte [ecx]
add esi, edx
add eax, esi
mov esi, 0x15e
cdq
idiv esi
mov byte [esp + 0x10], dl
mov esi, dword [esp + 0x10]
and esi, 0xff
lea edx, [esi + ebp]
push edx
push ecx
call fcn.00401670
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x1c]
inc ebx
cmp ebx, 0x15e
mov byte [esp + 0x20], dl
jl 0x4011bb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40633d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4105d8
cmp edx, dword [eax]
je 0x40635f
add eax, 8
inc ecx
cmp eax, 0x410668
jl 0x406350
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4105d8]
jne 0x40648d
mov eax, dword [0x411600]
cmp eax, 1
je 0x406467
test eax, eax
jne 0x406390
cmp dword [0x410204], 1
je 0x406467
cmp edx, 0xfc
je 0x40648d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4063c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406cb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404c60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40640a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404c60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e3dc
push edi
call fcn.00407e00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406cb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406cc0
lea eax, [ebp - 0xa0]
push 0x40e3bc
push eax
call fcn.00406cc0
push dword [esi + 0x4105dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406cc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407d6b
add esp, 0x2c
pop edi
jmp 0x40648d
lea eax, [ebp + 8]
lea esi, [esi + 0x4105dc]
push 0
push eax
push dword [esi]
call fcn.00404c60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001000
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0x10
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
pop ecx
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push 1
mov edi, str.yuma
push ebx
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x1000104a
push 8
push 1
push ebx
lea eax, [ebp - 4]
push edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10001092
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10001092
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x10001092
push 1
pop eax
jmp 0x10001094
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002e17
Capabilities:
Delete file

Disassembly:
mov eax, 0x10005fa0
call fcn.10005d40
sub esp, 0x164
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 8]
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x170]
pop ecx
push 0x10008938
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x170]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10006200
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
push str.image_jpeg
call fcn.10002f8a
mov dword [ebp - 0x5c], edi
mov esi, 0x10006208
lea edi, [ebp - 0x58]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push 1
mov dword [ebp - 0x40], eax
pop esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x44], 4
push dword [ebp - 0x18]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x10002f47
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.10005d0e
push dword [ebp - 0x18]
call fcn.10005d0e
pop ecx
mov dword [ebp - 0x28], 0x10006200
pop ecx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1000314c
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10003095
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
ret
Function at 0x100032d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000330d
cmp byte [ebp - 0x190], 2
jne 0x10003307
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x10003307
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x100033c7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000340e
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x1000340e
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10003412
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003430
xor eax, eax
jmp 0x1000346f
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000346d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1000346f
mov eax, esi
pop esi
leave
ret
Function at 0x10003643
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x10092be8], esi
jne 0x10003678
push edi
push esi
push esi
push esi
push 0x100039ad
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003670
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x10003dd3
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10003d6c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x10004382
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x100043d2
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x10004397
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
Function at 0x10004b06
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push 0x10092df4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x10092cf0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x10092bec
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x10092ef8
push esi
push ebx
push 0
call edi
mov eax, dword [0x10093204]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x10004b61
push esi
mov esi, 0x10093100
push esi
push eax
call edi
push esi
call ebp
pop ecx
push ebx
call ebp
push ebx
call fcn.10004b7d
push eax
push 0x10092ffc
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10004c7a
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
call fcn.10004b92
pop ecx
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10004cb4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10004cb4
test esi, esi
je 0x10004cb8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004c7b
xor eax, eax
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x10004e1a
Capabilities:
Set file attributes

Disassembly:
push 6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x10004eac
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x1000597d
Capabilities:
Accept command line arguments
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.ServerMain
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x100059c5
add esi, 0xb
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x100059c5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100059ac
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100059cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 8

Function at 0x10005a41
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
jne 0x10005a90
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
jne 0x10005a88
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x100087dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 8
Function at 0x1570a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x1b2014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x6b09bc
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x157289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x157289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.001840f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x6b0b2c
nop
test eax, eax
je 0x157289
push 4
push 0x1000
push 4
push 0
call 0x6b0302
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x510090
nop
test eax, eax
je 0x157289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x1a8df8
push dword [esp + 0x30]
call 0x510444
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x1571ac
push 0x1a8dfc
push 0x1a8e14
call 0x660d2d
nop
push eax
call 0x5101d4
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x5102e5
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x157289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x6b08a1
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x157243
mov dword [esp + 0xc], eax
call fcn.00156ef0
push eax
call 0x6505f2
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x6b08a1
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x1571f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x6b08a1
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x5106f8
nop
push dword [esp + 0x24]
call 0x660e0c
nop
push 0x8000
push 0
push esi
call 0x6b07ef
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0016cff1
mov esp, ebp
pop ebp
ret
Function at 0x16dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x8004b4
nop
test eax, eax
je 0x16dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x16dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x16dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x16dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x16dd07
cmp dword [ecx + 0xe8], 0
je 0x16dd07
mov al, 1
ret
xor al, al
ret
Function at 0x417e10
Capabilities:
Query environment variable

Disassembly:
push ecx
mov al, byte [0x63004a]
mov cl, byte [0x63004d]
mov edx, dword [0x630030]
and cl, al
mov eax, dword [0x630034]
mov byte [0x63004d], cl
mov ecx, eax
push esi
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x630043]
mov dword [0x630030], edx
mov edx, dword [0x630038]
push 0x100
or edx, 7
push 0x633cc6
imul edx, ecx
and eax, edx
push str.PATH
mov dword [0x630034], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dl, byte [0x630049]
mov al, byte [0x630048]
xor al, dl
push str.kernel32
mov byte [0x630048], al
mov al, byte [0x630043]
or al, 8
shr al, 3
and eax, 0xff
mov dword [esp + 8], eax
fild dword [esp + 8]
fdivr qword [0x6339b0]
fadd qword [0x630050]
fstp qword [0x6339a0]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add eax, esi
pop esi
pop ecx
ret

Function at 0x6294f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303b8
cmp edx, dword [eax]
je 0x629517
add eax, 8
inc ecx
cmp eax, 0x630448
jl 0x629508
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303b8]
jne 0x629645
mov eax, dword [0x635d40]
cmp eax, 1
je 0x62961f
test eax, eax
jne 0x629548
cmp dword [0x6302e4], 1
je 0x62961f
cmp edx, 0xfc
je 0x629645
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62957f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629ee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062a370
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6295c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062a370
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62e6d4
push edi
call fcn.0062c240
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629ee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629ef0
lea eax, [ebp - 0xa0]
push 0x62e6b4
push eax
call fcn.00629ef0
push dword [esi + 0x6303bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629ef0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062c1b4
add esp, 0x2c
pop edi
jmp 0x629645
lea eax, [ebp + 8]
lea esi, [esi + 0x6303bc]
push 0
push eax
push dword [esi]
call fcn.0062a370
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x754650], 1
mov dword [0x754654], 1
mov dword [0x754658], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret