joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62a52d91
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6331e008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6331e008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x62a52e50
jmp 0x62a52eef
jmp 0x62a52f8e
jmp 0x62a5302d
jmp 0x62a530cc
jmp 0x62a5316b
jmp 0x62a5320a
jmp 0x62a532a9
jmp 0x62a53348
jmp 0x62a533e7
jmp 0x62a53486
jmp 0x62a53525
jmp 0x62a535c4
jmp 0x62a53663
jmp 0x62a53702
jmp 0x62a537a1
jmp 0x62a53840
jmp 0x62a538df
jmp 0x62a5397e
jmp 0x62a53a1d
jmp 0x62a53abc
jmp 0x62a53b5b
jmp 0x62a53bfa
jmp 0x62a53c99
jmp 0x62a53d38
jmp 0x62a53dd7
jmp 0x62a53e76
jmp 0x62a53f15
jmp 0x62a53fb4
jmp 0x62a54053
mov dword [ebp - 0x14], 0
jmp 0x62a540f9
jmp 0x62a54198
jmp 0x62a54237
jmp 0x62a542d6
jmp 0x62a54375
jmp 0x62a54414
jmp 0x62a544b3
jmp 0x62a54552
jmp 0x62a545f1
jmp 0x62a54690
jmp 0x62a5472f
jmp 0x62a547ce
jmp 0x62a5486d
jmp 0x62a5490c
jmp 0x62a549ab
jmp 0x62a54a4a
jmp 0x62a54ae9
jmp 0x62a54b88
jmp 0x62a54c27
jmp 0x62a54cc6
jmp 0x62a54d65
jmp 0x62a54e04
jmp 0x62a54ea3
jmp 0x62a54f42
jmp 0x62a54fe1
jmp 0x62a55080
jmp 0x62a5511f
jmp 0x62a551be
jmp 0x62a5525d
jmp 0x62a552fc
mov dword [ebp - 0x18], 0
jmp 0x62a553a2
jmp 0x62a55441
jmp 0x62a554e0
jmp 0x62a5557f
jmp 0x62a5561e
jmp 0x62a556bd
jmp 0x62a5575c
jmp 0x62a557fb
jmp 0x62a5589a
jmp 0x62a55939
jmp 0x62a559d8
jmp 0x62a55a77
jmp 0x62a55b16
jmp 0x62a55bb5
jmp 0x62a55c54
jmp 0x62a55cf3
jmp 0x62a55d92
jmp 0x62a55e31
jmp 0x62a55ed0
jmp 0x62a55f6f
jmp 0x62a5600e
jmp 0x62a560ad
jmp 0x62a5614c
jmp 0x62a561eb
jmp 0x62a5628a
jmp 0x62a56329
jmp 0x62a563c8
jmp 0x62a56467
jmp 0x62a56506
jmp 0x62a565a5
mov dword [ebp - 0x10], 0
jmp 0x62a5664b
jmp 0x62a566ea
jmp 0x62a56789
jmp 0x62a56828
jmp 0x62a568c7
jmp 0x62a56966
jmp 0x62a56a05
jmp 0x62a56aa4
jmp 0x62a56b43
jmp 0x62a56be2
jmp 0x62a56c81
jmp 0x62a56d20
jmp 0x62a56dbf
jmp 0x62a56e5e
jmp 0x62a56efd
jmp 0x62a56f9c
jmp 0x62a5703b
jmp 0x62a570da
jmp 0x62a57179
jmp 0x62a57218
jmp 0x62a572b7
jmp 0x62a57356
jmp 0x62a573f5
jmp 0x62a57494
jmp 0x62a57533
jmp 0x62a575d2
jmp 0x62a57671
jmp 0x62a57710
jmp 0x62a577af
jmp 0x62a5784e
mov dword [ebp - 0x10], 0
jmp 0x62a5d5ca
jmp 0x62a578f9
jmp 0x62a57998
jmp 0x62a57a37
jmp 0x62a57ad6
jmp 0x62a57b75
jmp 0x62a57c14
jmp fcn.62a57cb3
mov eax, dword [0x6331e008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x62a5785a
nop
leave
ret

Function at 0x62a92350
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6331d040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.62a923b0
Function at 0x62a923b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6331e378]
test esi, esi
jle 0x62a9249d
mov edi, dword [0x6331e37c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x62a923e4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x62a92496
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x62a923d0
mov dword [esp], eax
mov esi, eax
call fcn.62a92b50
test eax, eax
mov edi, eax
je 0x62a924da
mov esi, dword [0x6331e37c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.62a92c60
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6331e37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x62a924ba
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x62a9248f
sub eax, 0x40
and eax, 0xffffffbf
je 0x62a9248f
mov eax, dword [esp + 0x20]
add ebx, dword [0x6331e37c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x62a924a4
add dword [0x6331e378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x62a923ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.62a92350
mov eax, dword [0x6331e37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.62a92350
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.62a92350
lea esi, [esi]

Function at 0x62a927c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6331e388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6331e380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x62a92815
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x62a9280e
test esi, esi
je 0x62a9280e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x62a927f0
mov dword [esp], 0x6331e388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x4bf0c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4bf0c4
lcall 0x5de5, 0x8b10c483
jmp loc.016cdcd4
Function at 0x552030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xea000]
push edi
or ebp, 0xffffffff
jmp 0x552052
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x552059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x552048
mov eax, 1
add ebx, ebx
jne 0x55206b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55207c
jne 0x55208c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55208c
dec eax
add ebx, ebx
jne 0x552088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x552060
xor ecx, ecx
sub eax, 3
jb 0x5520a4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x552116
sar eax, 1
mov ebp, eax
jmp 0x5520af
add ebx, ebx
jne 0x5520af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5520bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5520e0
inc ecx
add ebx, ebx
jne 0x5520cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5520c1
jne 0x5520dd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5520c1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x552100
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5520f1
jmp 0x55204e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x552100
add edi, ecx
jmp 0x55204e
pop esi
mov edi, esi
mov ecx, 0x5af6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55211e
cmp byte [edi], 0x13
jne 0x55211e
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 0x552123
lea edi, [esi + 0x14f000]
mov eax, dword [edi]
or eax, eax
je 0x55219b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x158cec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x158df0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x552150
mov ecx, edi
jns 0x55217f
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 + 0x158df4]
or eax, eax
je 0x552195
mov dword [ebx], eax
add ebx, 4
jmp 0x55216d
call dword [esi + 0x158df8]
popal
jmp 0x47d029
Function at 0x406773
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406797
xor eax, eax
test eax, eax
je 0x4067aa
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067aa
xor ecx, ecx
jmp 0x4067ad
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65ec], 0
push esi
jne 0x406907
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068e1
mov dword [ecx*4 + 0x7a65e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068dc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406938
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a65e8]
xor eax, esi
inc ecx
dec edx
jne 0x40691a
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426004]
jne 0x40100a
repz ret
jmp fcn.004015a1

Function at 0x4071f5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004048df
and dword [ebp - 4], 0
cmp dword [0x42817c], 0
mov ebx, eax
jne 0x4072a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407357
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407357
push eax
call fcn.0040486d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42817c], eax
call esi
push eax
call fcn.0040486d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428180], eax
call esi
push eax
call fcn.0040486d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x428184], eax
call esi
push eax
call fcn.0040486d
pop ecx
mov dword [0x42818c], eax
test eax, eax
je 0x4072a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040486d
pop ecx
mov dword [0x428188], eax
mov eax, dword [0x428188]
cmp eax, ebx
je 0x4072fe
cmp dword [0x42818c], ebx
je 0x4072fe
push eax
call fcn.004048e8
push dword [0x42818c]
mov esi, eax
call fcn.004048e8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4072fe
test edi, edi
je 0x4072fe
call esi
test eax, eax
je 0x4072f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4072f5
test byte [ebp - 0xc], 1
jne 0x4072fe
or dword [ebp + 0x10], 0x200000
jmp 0x407337
mov eax, dword [0x428180]
cmp eax, ebx
je 0x407337
push eax
call fcn.004048e8
pop ecx
test eax, eax
je 0x407337
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407337
mov eax, dword [0x428184]
cmp eax, ebx
je 0x407337
push eax
call fcn.004048e8
pop ecx
test eax, eax
je 0x407337
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42817c]
call fcn.004048e8
pop ecx
test eax, eax
je 0x407357
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407359
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416c08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x416c98
push 0
mov eax, ebx
call fcn.004042e0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x416c7a
mov eax, esi
call fcn.004040e0
inc eax
push eax
mov eax, esi
call fcn.004042e0
push eax
push 1
push 0
mov eax, edi
call fcn.004042e0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x416c91
push 0x10
push 0x416c9c
push 0x416ca8
push 0
call sub.user32.dll_MessageBoxA_1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x418a57
Capabilities:
Read file on windows

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

Function at 0x418e51
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408d10
mov eax, dword [0x47d200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00416a14
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418e93
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418fef
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423550
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47f790]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419bf0
mov ecx, dword [esi*4 + 0x47f790]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418fe8
cmp eax, dword [edi + ecx + 0x24]
jne 0x418fe8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418fe8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419bf0
add esp, 0x14
test edx, edx
jl 0x418fe8
jg 0x418f5e
test eax, eax
jb 0x418fe8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418fe8
jl 0x418f78
cmp dword [ebp - 0x1008], eax
ja 0x418fe8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418f96
test ebx, ebx
je 0x418fcf
cmp ecx, edi
jae 0x418fcf
mov al, byte [ecx]
cmp al, 0xd
jne 0x418fb0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418fbc
cmp byte [ecx + 1], 0xa
jne 0x418fbc
inc ecx
jmp 0x418fbc
movzx eax, al
movsx eax, byte [eax + 0x47d4c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418f96
cmp edx, ebx
jne 0x418f96
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418fed
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408107
leave
ret
Function at 0x41908e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47f790]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4190ce
cmp byte [ebx], 0xa
jne 0x4190ce
or byte [eax + edi + 0x28], 4
jmp 0x4190d3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4191d1
mov al, byte [edx]
cmp al, 0x1a
je 0x4191b3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419102
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419127
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419131
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4190e4
jmp 0x4191d1
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4191ae
cmp dword [ebp - 0xc], 0
je 0x4191ae
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47f790]
test byte [eax + edi + 0x28], 0x48
je 0x419188
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419173
mov byte [esi], dl
jmp 0x419184
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47f790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4191d1
cmp byte [ebp - 1], 0xa
jne 0x419197
cmp esi, ebx
jne 0x419197
mov byte [esi], 0xa
jmp 0x4191d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419c0e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4191d1
mov byte [esi], 0xd
jmp 0x4191d0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47f790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4191cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4191d1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret