joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027e0
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00402970
mov ebp, dword [esp + 0x14]
xor ebx, ebx
cmp ebp, ebx
push 0x64
je 0x40284f
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esi + 0x2c]
push eax
push 6
push ecx
call edi
mov eax, dword [esi + 8]
lea edx, [esi + 0x90]
push 0x64
push edx
push 7
push eax
call edi
mov edx, dword [esi + 8]
lea ecx, [esi + 0xf4]
push 0x64
push ecx
push 8
push edx
call edi
mov ecx, dword [esi + 8]
lea eax, [esi + 0x158]
push 0x64
push eax
push 9
push ecx
call edi
mov eax, dword [esi + 8]
lea edx, [esi + 0x1bc]
push 0x64
push edx
push 0xa
push eax
call edi
jmp 0x4028a3
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esi + 0x2c]
push ecx
push 0xb
push edx
call edi
mov ecx, dword [esi + 8]
lea eax, [esi + 0x90]
push 0x64
push eax
push 0xc
push ecx
call edi
mov eax, dword [esi + 8]
lea edx, [esi + 0xf4]
push 0x64
push edx
push 0xd
push eax
call edi
mov edx, dword [esi + 8]
lea ecx, [esi + 0x158]
push 0x64
push ecx
push 0xe
push edx
call edi
mov ecx, 0x19
xor eax, eax
lea edi, [esi + 0x1bc]
rep stosd dword es:[edi], eax
mov dword [esi + 0x220], ebx
cmp ebp, ebx
je 0x4028bb
mov dword [esi + 0x224], ebx
mov dword [esi + 0x22c], ebx
jmp 0x4028c7
mov dword [esi + 0x228], ebx
mov dword [esi + 0x230], ebx
mov dword [esi + 0x238], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], 0x408f4000
mov dword [esi + 0x250], ebx
push ebx
push ebx
push ebx
push ebx
push str.Network_Speed_Testing
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x402954
lea eax, [esi + 0x1c]
mov dword [0x431478], esi
push eax
push ebx
push 0x431478
push 0x4029e0
push ebx
push ebx
mov dword [0x43147c], ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x40294b
mov dword [esi + 0x250], 7
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov dword [esi + 0x250], 7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x402970
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push 0x3e8
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
cmp eax, 0x102
jne 0x4029a6
mov ecx, dword [esi + 0x18]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x250], ebx
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x4029bf
push eax
call edi
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4029cc
push eax
call edi
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4029d9
push eax
call edi
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x410265
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x430938
cmp edx, dword [eax]
je 0x410287
add eax, 8
inc ecx
cmp eax, 0x4309c8
jl 0x410278
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x430938]
jne 0x4103b5
mov eax, dword [0x4334c8]
cmp eax, 1
je 0x41038f
test eax, eax
jne 0x4102b8
cmp dword [0x430234], 1
je 0x41038f
cmp edx, 0xfc
je 0x4103b5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4102ef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004104f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004105e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410332
lea eax, [ebp - 0x1a4]
push eax
call fcn.004105e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4282f0
push edi
call fcn.004129f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004104f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410500
lea eax, [ebp - 0xa0]
push 0x4282d0
push eax
call fcn.00410500
push dword [esi + 0x43093c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410500
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412bad
add esp, 0x2c
pop edi
jmp 0x4103b5
lea eax, [ebp + 8]
lea esi, [esi + 0x43093c]
push 0
push eax
push dword [esi]
call fcn.004105e0
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 0x417680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ba60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41774b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41774b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4176fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417709
or bh, 8
and edi, 0x8000000
je 0x417724
mov eax, dword [0x434c3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41774b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x417b4b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x417b6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x417b8a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41cb88
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 0x41cbca
call fcn.0042100b
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 0x41cbca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41cbc1
xor eax, eax
jmp 0x41cbd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041cbd8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4216ff
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 0x42172d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42174b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421665
jmp 0x42174b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42174b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00421665
test edi, edi
mov eax, edi
jne 0x421735
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027b0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40216f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402810
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402134
cmp dword [ebp + 0xc], 3
jbe 0x402134
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e40
mov dword [ebp - 0x74], eax
jmp 0x4020d3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40212f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40212a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402144
jmp 0x40212f
jmp 0x402134
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028d0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402161
jmp 0x40215c
jmp 0x40216f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402068
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x49f400], eax
pop esi
pop edi
pop ebp
ret
Function at 0x403fb3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403ff2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403ff2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403ff2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403ff2
cmp dword [ecx + 0x74], 0xe
jbe 0x403ff2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a4ab
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 0x40a548
push ebx
push esi
call fcn.0040a474
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.0040a3bd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a4f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a547
push edi
push eax
call fcn.00408e8b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a515
call fcn.00408ed9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a546
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a3bd
add esp, 0x20
test eax, eax
jne 0x40a534
push edi
call fcn.00408ed9
jmp 0x40a53c
push ebx
call fcn.00408ed9
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 0x40b740
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413ed8
push 0x413ed0
push str.FlsAlloc
push 0x1e
call fcn.0040b601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b774
push dword [ebp + 8]
mov ecx, esi
call dword [0x411138]
call esi
jmp 0x40b77a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b7be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413ee8
push 0x413ee0
push str.FlsGetValue
push 0x20
call fcn.0040b601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b7f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x411138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410b8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401388
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x2c
cmp word [edx], 0x5a4d
push ebx
push edi
je 0x4013a1
xor eax, eax
jmp 0x4014fb
push esi
mov esi, dword [edx + 0x3c]
add esi, edx
cmp dword [esi], 0x4550
lea eax, [esi + 0x18]
jne 0x4014f8
cmp word [esi + 0x14], 0xe0
jne 0x4014f8
cmp dword [eax + 0x68], 0
je 0x4014f8
cmp word [eax], 0x10b
jne 0x4014f8
movzx eax, word [esi + 6]
cmp ax, 1
jb 0x4014f8
movzx ecx, word [esi + 0x14]
movzx eax, ax
mov edi, eax
imul edi, edi, 0x28
lea ecx, [ecx + esi + 0x18]
sub edi, edx
add edi, ecx
test eax, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
jbe 0x40141b
add ecx, 0xc
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
add edx, ebx
cmp dword [ebp - 4], edx
jae 0x401415
mov dword [ebp - 4], edx
add ecx, 0x28
dec eax
jne 0x401406
lea eax, [ebp - 0x2c]
push eax
call dword [0xb251a4]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
lea eax, [ecx + eax - 1]
xor edx, edx
div ecx
mov ebx, 0x423fff
and ebx, 0xfffff000
imul eax, ecx
mov ecx, 0xb23000
sub ecx, ebx
cmp eax, ecx
ja 0x4014f8
test ebx, ebx
je 0x4014f8
push edi
push dword [ebp + 8]
push ebx
call 0x4140a0
and dword [ebp - 4], 0
add esp, 0xc
cmp word [esi + 6], 0
jbe 0x40149c
mov edi, dword [ebp - 8]
add edi, 0x14
mov eax, dword [edi]
add eax, dword [ebp + 8]
push dword [edi - 4]
push eax
mov eax, dword [edi - 8]
add eax, ebx
push eax
call 0x4140a0
movzx eax, word [esi + 6]
add esp, 0xc
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jb 0x401476
mov eax, dword [ebx + 0x3c]
lea edx, [eax + ebx + 0x18]
mov edi, dword [edx + 0x68]
add edi, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4014ba
cmp dword [edi + 4], eax
je 0x401527
lea esi, [eax + ebx]
push esi
call dword [0xb251a8]
test eax, eax
mov dword [ebp + 8], eax
jne 0x4014d9
push esi
call dword [0xb251ac]
test eax, eax
mov dword [ebp + 8], eax
je 0x4014f8
mov esi, dword [edi]
mov edi, dword [edi + 0x10]
add esi, ebx
add edi, ebx
jmp 0x401515
js 0x401501
lea eax, [eax + ebx + 2]
push eax
push dword [ebp + 8]
call dword [0xb251b0]
test eax, eax
jne 0x40150d
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.00401341
mov dword [edi], eax
add esi, 4
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x4014e4
add dword [ebp - 4], 0x14
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x4014ae
mov ecx, dword [edx + 0x88]
test ecx, ecx
je 0x401576
add ecx, ebx
jmp 0x401571
lea edi, [ecx + 8]
jmp 0x401565
movzx eax, word [edi]
mov esi, eax
and esi, 0xf000
cmp esi, 0x3000
jne 0x40155f
and eax, 0xfff
add eax, ebx
add eax, dword [ecx]
mov esi, ebx
sub esi, dword [edx + 0x1c]
add dword [eax], esi
jmp 0x401563
test esi, esi
jne 0x4014f8
inc edi
inc edi
mov eax, dword [ecx + 4]
add eax, ecx
cmp edi, eax
jb 0x40153a
add ecx, dword [ecx + 4]
cmp dword [ecx], 0
jne 0x401535
mov edx, dword [edx + 0x10]
test edx, edx
je 0x40158b
lea eax, [edx + ebx]
test eax, eax
je 0x40158b
push 0
push 1
push ebx
call eax
mov eax, ebx
jmp 0x4014fa
Function at 0x40b190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.text
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x40b1b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b1a8
mov eax, 1
add ebx, ebx
jne 0x40b1cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b1c0
jne 0x40b1dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b1c0
xor ecx, ecx
sub eax, 3
jb 0x40b1f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b262
mov ebp, eax
add ebx, ebx
jne 0x40b1fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b22c
inc ecx
add ebx, ebx
jne 0x40b218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b20d
jne 0x40b229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b20d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b24c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b23d
jmp 0x40b1ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b24c
add edi, ecx
jmp 0x40b1ae
pop esi
mov edi, esi
mov ecx, pe_nt_image_headers32
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b26a
cmp byte [edi], 6
jne 0x40b26a
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 0x40b26f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b2de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb9ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb9e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b29c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb9ec]
or eax, eax
je 0x40b2d8
mov dword [ebx], eax
add ebx, 4
jmp 0x40b2b9
call dword [esi + 0xb9f0]
popal
jmp 0x4018b2