joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bee90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106be0
push 0x100bfdd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x100beecd
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x100bef05
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x100bf069
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x100bef3d
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x100bf069
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
test ecx, ecx
jne 0x100bef6b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x100bf069
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x100bef90
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x100bf043
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.100a2f60
add esp, 8
test eax, eax
jne 0x100bf03e
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x100befdf
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x100befe1
jmp 0x100bf043
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x30
jb 0x100bf00e
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x727444
je 0x100bf010
jmp 0x100bf043
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x100bf024
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x100bf069
jmp 0x100bef87
mov dword [ebp - 4], 0xffffffff
jmp 0x100bf05c
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408fd8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x438244], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409015
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409000
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408ff2
mov dword [ecx*4 + 0x438240], eax
inc ecx
cmp ecx, 0x100
jne 0x408feb
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409037
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x438240]
jmp 0x40901f
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x437410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x437432
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437439
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x437428
mov eax, 1
add ebx, ebx
jne 0x43744b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437440
jne 0x43745c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437440
xor ecx, ecx
sub eax, 3
jb 0x437470
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4374e2
mov ebp, eax
add ebx, ebx
jne 0x43747b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x437488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4374ac
inc ecx
add ebx, ebx
jne 0x437498
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43748d
jne 0x4374a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43748d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4374cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4374bd
jmp 0x43742e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4374cc
add edi, ecx
jmp 0x43742e
pop esi
mov edi, esi
mov ecx, 0x165
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4374ea
cmp byte [edi], 2
jne 0x4374ea
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 0x4374ef
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x437567
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e5e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e61c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43751c
mov ecx, edi
jns 0x43754b
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 + 0x3e620]
or eax, eax
je 0x437561
mov dword [ebx], eax
add ebx, 4
jmp 0x437539
call dword [esi + 0x3e624]
popal
jmp 0x402bd4
Function at 0x401970
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004027a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004027a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4019d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x29d107c]
test esi, esi
jle 0x401af0
mov eax, dword [0x29d1080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401a04
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a87
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019f0
mov dword [esp], ebx
call fcn.00402350
mov edi, eax
test eax, eax
je 0x401b17
mov eax, dword [0x29d1080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402490
mov edx, dword [0x29d1080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401af7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a80
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a90
add dword [0x29d107c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x29d1080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401970
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a0e
mov eax, dword [0x29d1080]
mov eax, dword [eax + ebx + 0xc]
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.00401970
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401970
lea esi, [esi]
nop
Function at 0x401fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x29d1098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x29d1090]
sub esp, 4
test ebx, ebx
je 0x402025
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x40201e
test esi, esi
je 0x40201e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402000
mov dword [esp], 0x29d1098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402375
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402380
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402375
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4023c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4023be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41d3bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41d3ca
pop dword [ebp - 0x10]
mov eax, 0x41d3ca
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x58eb2a3a
sub dword [ebp - 0x20], 0xa98e4ef
mov dword [ebp - 0x1c], 0x2bf7362e
add dword [ebp - 0x1c], 0x63c1617
mov dword [ebp - 0x18], 0x5af5934d
add dword [ebp - 0x18], 0xf156b0e1
mov dword [ebp - 0x14], 0xc2911949
add dword [ebp - 0x14], 0x3d6ee6b7
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x40fde164
sub dword [ebp - 0x20], 0xcc8b780e
mov dword [ebp - 0x1c], 0x82016082
add dword [ebp - 0x1c], 0xbf6b00f3
mov dword [ebp - 0x18], 0xc8dfa1bf
add dword [ebp - 0x18], 0x9a8fcaad
mov dword [ebp - 0x14], 0x8824669b
add dword [ebp - 0x14], 0x77db9965
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xc8b0c015
add eax, 0x3794f06b
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x4c0f0
push 0
call eax
mov ecx, 0xd1a058d5
sub ecx, 0xd1a015b6
xor edx, edx
add edx, eax
mov ebx, 0x8b612812
add ebx, 0x74e637ee
add ebx, dword [ebp - 0x10]
mov esi, 0x9ae0b3d5
xor dword [ebp - 4], esi
mov edi, dword [ebx]
add dword [ebp - 0xc], edi
add edi, esi
sub dword [ebp - 8], esi
mov dword [edx], edi
sub dword [ebp - 0xc], esi
add edx, 0x73fdeb8d
sub edx, 0x73fdeb89
add ebx, 0x7c5258a1
sub ebx, 0x7c52589d
loop 0x41d4de
add eax, 0x386daa6f
add eax, 0xc79354e0
xor ebx, ebx
add ebx, eax
add eax, 0x1e3ff7f3
sub eax, 0x1e3ff7ee
mov ecx, 0xd5e21f5b
sub ecx, 0xd5a21f5b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40890d
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
call fcn.0040892f
xor dword [ecx], edx
dec edi
inc ecx
dec ebx
add edi, 0xc6b781fb
cmp ecx, eax
jne fcn.0040890d
ret
Function at 0x402d53
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00559000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10a7840]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
call fcn.00404290
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40325e
xor al, al
jmp 0x4032a4
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x40329a
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jne 0x40329a
mov dword [ebp - 0x10], 1
jmp 0x4032a1
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407462
mov esp, ebp
pop ebp
ret
Function at 0x406a14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x406a35
jl 0x406a2c
test edi, edi
jne 0x406a35
xor eax, eax
xor edx, edx
jmp 0x406af6
cmp dword [ebx + 0x38], 0
je 0x406a4a
push eax
push edi
push dword [ebp + 8]
call fcn.00406afc
jmp 0x406af6
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406a91
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406a91
cmp eax, edi
jb 0x406a6b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408150
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406a97
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406aeb
mov ecx, ebx
call fcn.00406263
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406ad6
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040d6cf
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406aeb
jmp 0x406aa9
test edx, edx
je 0x406aeb
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040d6cf
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407d61
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407da0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407da0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407da0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407da0
cmp dword [ecx + 0x74], 0xe
jbe 0x407da0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411e83
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4216d0
push 0x4216c8
push str.FlsAlloc
push 0x1f
call fcn.00411d6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411eb7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e138]
call esi
jmp 0x411ebd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411f01
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4216e0
push 0x4216d8
push str.FlsGetValue
push 0x21
call fcn.00411d6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f38
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x411f40
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4216e8
push 0x4216e0
push str.FlsSetValue
push 0x22
call fcn.00411d6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f7a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414767
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408100
mov eax, dword [0x10a7840]
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.004133ae
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4147a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414905
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041cca0
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 + 0x10a9278]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00415764
mov ecx, dword [esi*4 + 0x10a9278]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4148fe
cmp eax, dword [ecx + edi + 0x24]
jne 0x4148fe
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4148fe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415764
add esp, 0x14
test edx, edx
jl 0x4148fe
jg 0x414874
test eax, eax
jb 0x4148fe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4148fe
jl 0x41488e
cmp dword [ebp - 0x1008], eax
ja 0x4148fe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4148ac
test ebx, ebx
je 0x4148e5
cmp ecx, edi
jae 0x4148e5
mov al, byte [ecx]
cmp al, 0xd
jne 0x4148c6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4148d2
cmp byte [ecx + 1], 0xa
jne 0x4148d2
inc ecx
jmp 0x4148d2
movzx eax, al
movsx eax, byte [eax + 0x10a7b10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4148ac
cmp edx, ebx
jne 0x4148ac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414903
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407462
leave
ret
Function at 0x414bfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10a9278]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414c3c
cmp byte [ebx], 0xa
jne 0x414c3c
or byte [edi + eax + 0x28], 4
jmp 0x414c41
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x414d40
mov dl, byte [eax]
cmp dl, 0x1a
je 0x414d23
inc eax
cmp dl, 0xd
je 0x414c6d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x414c93
cmp eax, ecx
jae 0x414ca1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x414c55
jmp 0x414d40
push 0
lea eax, [ebp - 0x10]
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 0x414d1e
cmp dword [ebp - 0x10], 0
je 0x414d1e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10a9278]
test byte [eax + edi + 0x28], 0x48
je 0x414cf8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414ce3
mov byte [esi], dl
jmp 0x414cf4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10a9278]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414d40
cmp byte [ebp - 1], 0xa
jne 0x414d07
cmp esi, ebx
jne 0x414d07
mov byte [esi], 0xa
jmp 0x414d3f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415782
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414d40
mov byte [esi], 0xd
jmp 0x414d3f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10a9278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414d3d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414d40
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret