joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458990
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x2c], fcn.004542ca
mov esi, dword [ebp - 0x2c]
mov al, byte [esi]
cmp al, 0xcc
je 0x458a12
mov dword [ebp - 0x10], fcn.00453cb8
mov esi, dword [ebp - 0x10]
mov al, byte [esi]
cmp al, 0xcc
je 0x458a12
mov dword [ebp - 0x18], fcn.004587d6
mov esi, dword [ebp - 0x18]
mov al, byte [esi]
cmp al, 0xcc
je 0x458a12
mov dword [ebp - 0x24], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 0xc6ef3720
mov dword [ebp - 0x30], 0x20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
test eax, eax
jle 0x458a77
mov edx, dword [ebp - 0x20]
shl edx, 4
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x1c]
xor edx, ecx
mov eax, dword [ebp - 0x28]
sub eax, edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 8]
xor ecx, edx
mov eax, dword [ebp - 0x28]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
add eax, 0x61c88647
mov dword [ebp - 8], eax
jmp 0x458a12
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458c20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x465640]
mov ecx, dword [eax + 0x228]
test ecx, ecx
je 0x458c3a
mov ecx, dword [esp + 4]
mov dword [eax + 0x22c], ecx
ret
push 0x4520f4
call fcn.00458e60
add esp, 4
mov ecx, dword [0x465640]
mov eax, dword [ecx + 0x20]
cmp eax, 0x18
jge 0x458c63
mov edx, dword [ecx + eax*4 + 0x24]
mov eax, dword [edx*4 + 0x450fbc]
push eax
jmp 0x458c68
push 0x4520f0
call fcn.00458e60
add esp, 4
push esi
push 0x452148
push 0xa
call fcn.0045f0a7
mov ecx, dword [0x465640]
add esp, 8
mov esi, dword [ecx + 0x20]
dec esi
js 0x458cde
push edi
lea edi, [esi*4 + 0x24]
push 0x4520d4
call fcn.00458e60
add esp, 4
cmp esi, 0x18
jge 0x458cb9
mov edx, dword [0x465640]
mov eax, dword [edi + edx]
mov ecx, dword [eax*4 + 0x450fbc]
push ecx
jmp 0x458cbe
push 0x4520f0
call fcn.00458e60
add esp, 4
push 0x452148
push 0xa
call fcn.0045f0a7
add esp, 8
dec esi
sub edi, 4
test esi, esi
jge 0x458c94
pop edi
mov edx, dword [esp + 8]
pop esi
lea eax, [edx - 1]
cmp eax, 0x1b
ja case.default.0x458cef
jmp dword [eax*4 + 0x458dec]
push 0x4520ac
jmp 0x458ddd
push 0x452090
jmp 0x458ddd
push 0x452074
jmp 0x458ddd
push 0x452054
jmp 0x458ddd
push 0x452040
jmp 0x458ddd
push 0x452028
jmp 0x458ddd
push 0x45200c
jmp 0x458ddd
push 0x451ffc
jmp 0x458ddd
push 0x451fdc
jmp 0x458ddd
push 0x451fb8
jmp 0x458ddd
push 0x451f98
jmp 0x458ddd
push 0x451f68
jmp 0x458ddd
push 0x451f58
jmp 0x458ddd
push 0x451f44
jmp 0x458ddd
push 0x451f24
jmp 0x458ddd
push 0x451f00
jmp 0x458ddd
push 0x451ee8
jmp 0x458ddd
push 0x451eb8
jmp 0x458ddd
push 0x451ea4
jmp 0x458ddd
push 0x451e90
jmp 0x458ddd
push 0x451e7c
jmp 0x458ddd
push 0x451e54
jmp 0x458ddd
push 0x451e20
jmp 0x458ddd
push 0x451dfc
jmp 0x458ddd
push 0x451dd0
jmp 0x458ddd
push 0x451d90
jmp 0x458ddd
push 0x451d70
jmp 0x458ddd
push 0x451d5c
jmp 0x458ddd
push 0x451d48
call fcn.00458e60
add esp, 4
push 0
call fcn.0045efd2
test byte [ebp + eax*2 + 0x458d0000], 0
or cl, byte [ebp - 1928069051]
inc ebp
add byte [esi], bl
lea eax, [ebp]
sub byte [ebp - 0x72cdffbb], cl
inc ebp
add byte [ecx*4 - 0x72b9ffbb], bh
inc ebp
add byte [eax - 0x73], dl
inc ebp
add byte [edx - 0x73], bl
inc ebp
add byte [ecx - 0x73], ah
inc ebp
add byte [eax - 0x73], ch
inc ebp
add byte [edi - 0x73], ch
inc ebp
add byte [esi - 0x73], dh
inc ebp
add byte [ebp - 0x73], bh
inc ebp
add byte [ebp + ecx*4 - 0x7274ffbb], al
inc ebp
add byte [edx - 0x66ffba73], dl
lea eax, [ebp]
mov al, byte [0xa700458d]
lea eax, [ebp]
scasb al, byte es:[edi]
lea eax, [ebp]
mov ch, 0x8d
inc ebp
add byte [ebp + ecx*4 - 0x723cffbb], bh
inc ebp
add dl, cl
lea eax, [ebp]
ror dword [ebp - 0x6f6fffbb], 1
nop
nop
Function at 0x460015
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x452458
cmp edx, dword [eax]
je 0x460037
add eax, 8
inc ecx
cmp eax, 0x4524e8
jl 0x460028
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x452458]
jne 0x460165
mov eax, dword [0x465668]
cmp eax, 1
je 0x46013f
test eax, eax
jne 0x460068
cmp dword [0x452124], 1
je 0x46013f
cmp edx, 0xfc
je 0x460165
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46009f
lea eax, [ebp - 0x1a4]
push 0x4533cc
push eax
call fcn.00461840
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045ed50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4600e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045ed50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4533c8
push edi
call fcn.00461da0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4533ac
push eax
call fcn.00461840
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00461850
lea eax, [ebp - 0xa0]
push 0x4533a8
push eax
call fcn.00461850
push dword [esi + 0x45245c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00461850
push 0x12010
lea eax, [ebp - 0xa0]
push 0x453380
push eax
call fcn.00461d10
add esp, 0x2c
pop edi
jmp 0x460165
lea eax, [ebp + 8]
lea esi, [esi + 0x45245c]
push 0
push eax
push dword [esi]
call fcn.0045ed50
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 0x4633e0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x463416
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x463d00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x463d7a
lea eax, [esp + 0x24]
push 0x15
push eax
push 0x452ab4
mov dword [esp + 0x20], 0xc8
call fcn.0045edd0
add esp, 0xc
test eax, eax
jne 0x463d7a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x12c]
cmp ecx, eax
je 0x463d8c
mov eax, ecx
inc eax
mov dword [esp + 0x10], eax
inc edi
test esi, esi
je 0x463d25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0x130]
mov ecx, dword [0x452aac]
mov eax, edx
lea edi, [esp + 0x24]
mov dword [eax], ecx
mov cl, byte [0x452ab0]
mov byte [eax + 4], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x4649d0
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00464a53
jae 0x4649de
xor ecx, ecx
call fcn.00464a53
jae 0x464a0d
xor eax, eax
call fcn.00464a53
jae 0x464a1d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00464a53
adc al, al
jae 0x4649ff
jne 0x464a49
stosb byte es:[edi], al
jmp 0x4649e1
call fcn.00464a5f
sub ecx, ebx
jne 0x464a26
call fcn.00464a5d
jmp 0x464a45
lodsb al, byte [esi]
shr eax, 1
je 0x464a6f
adc ecx, ecx
jmp 0x464a42
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00464a5d
cmp eax, 0x7d00
jae 0x464a42
cmp ah, 5
jae 0x464a43
cmp eax, 0x7f
ja 0x464a44
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4649e1
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x464e10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x452cdc
sub eax, eax
test esi, esi
je 0x464ef0
sub eax, 1
test ecx, ecx
je 0x464eee
test esi, 3
je 0x464e4e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x464e33
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x464ed5
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x464e5c
mov ecx, edx
test ecx, ecx
je 0x464eee
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x464edb
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x4066a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movsx eax, word [ebp + 8]
movsx ecx, word [0x5d5ee0]
cmp eax, ecx
jl 0x4066cc
or eax, 0xffffffff
jmp 0x40671e
movsx edx, word [ebp + 8]
imul edx, edx, 0x84
add edx, 0x5d6264
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 3
je 0x4066ed
or eax, 0xffffffff
jmp 0x40671e
mov esi, esp
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x40671b
or eax, 0xffffffff
jmp 0x40671e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x48
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x407e30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movsx eax, word [ebp + 8]
movsx ecx, word [0x5d5ec8]
cmp eax, ecx
jl 0x407e5f
or eax, 0xffffffff
jmp 0x407f40
movsx edx, word [ebp + 8]
imul edx, edx, 0x1c
add edx, 0x5d3dc0
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov word [ebp - 0x20], cx
movsx edx, word [ebp - 0x20]
movsx eax, word [0x5d5eca]
cmp edx, eax
jl 0x407e90
or eax, 0xffffffff
jmp 0x407f40
movsx ecx, word [ebp - 0x20]
imul ecx, ecx, 0x28
add ecx, 0x5d59c0
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], 0x10
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00401da0
add esp, 8
mov word [ebp - 0x18], 2
mov esi, esp
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 4]
add eax, 4
mov esi, esp
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x14], eax
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.004019a0
add esp, 8
mov esi, esp
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
movsx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov word [ebp + 0x10], ax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00401980
add esp, 4
movsx eax, word [ebp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x60
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x416590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x41e18c
push str.hzkHZK1212.bin
call dword [sym.imp.MSVCRTD.dll_fopen]
add esp, 8
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4165ef
mov esi, esp
mov eax, dword [ebp - 4]
push eax
push 0x30000
push 1
push 0x4b8758
call dword [sym.imp.MSVCRTD.dll_fread]
add esp, 0x10
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
push 0x41e18c
push str.hzkHZK14.bin
call dword [sym.imp.MSVCRTD.dll_fopen]
add esp, 8
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416636
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
push 0x38000
push 1
push 0x4e8774
call dword [sym.imp.MSVCRTD.dll_fread]
add esp, 0x10
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
push 0x41e18c
push str.hzkHZK16.bin
call dword [sym.imp.MSVCRTD.dll_fopen]
add esp, 8
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41667d
mov esi, esp
mov edx, dword [ebp - 4]
push edx
push 0x40000
push 1
push 0x520774
call dword [sym.imp.MSVCRTD.dll_fread]
add esp, 0x10
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x416da0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
push ebx
push esi
push edi
lea edi, [ebp - 0x1d4]
mov ecx, 0x75
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
je 0x416df3
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x194], eax
xor eax, eax
jmp 0x416df8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x1d4
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x418200
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x4e8758
call fcn.004149a0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x4182bc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov ecx, 0x4e8758
call fcn.004149d0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp dword [ebp - 0x18], 0x103
jne 0x41828f
mov esi, esp
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x4182b0
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.004182e0
mov dword [ebp - 0x24], eax
jmp 0x4182b7
mov dword [ebp - 0x24], 0
jmp 0x41822c
mov ecx, 0x4e8758
call fcn.00414c00
pop edi
pop esi
pop ebx
add esp, 0x64
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x408aa6
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 0x408ac7
jl 0x408abe
test edi, edi
jne 0x408ac7
xor eax, eax
xor edx, edx
jmp 0x408b88
cmp dword [ebx + 0x38], 0
je 0x408adc
push eax
push edi
push dword [ebp + 8]
call fcn.00408b8e
jmp 0x408b88
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408b23
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408b23
cmp eax, edi
jb 0x408afd
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a8d0
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 0x408b29
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408b7d
mov ecx, ebx
call fcn.00408340
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408b68
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410423
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 0x408b7d
jmp 0x408b3b
test edx, edx
je 0x408b7d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410423
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 0x40a040
Capabilities:
Parse pe header

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

Function at 0x414e6c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426940
push 0x426938
push str.FlsAlloc
push 0x1e
call fcn.00414cd9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414ea0
push dword [ebp + 8]
mov ecx, esi
call dword [0x423178]
call esi
jmp 0x414ea6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414eea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426950
push 0x426948
push str.FlsGetValue
push 0x20
call fcn.00414cd9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414f21
push dword [ebp + 8]
mov ecx, esi
call dword [0x423178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4176fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041756b

Function at 0x417af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a3e0
mov eax, dword [0x479200]
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.004156fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420910
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 + 0x47b870]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418893
mov ecx, dword [esi*4 + 0x47b870]
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 0x417c8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8b
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 0x417c8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418893
add esp, 0x14
test edx, edx
jl 0x417c8b
jg 0x417c01
test eax, eax
jb 0x417c8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8b
jl 0x417c1b
cmp dword [ebp - 0x1008], eax
ja 0x417c8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c39
test ebx, ebx
je 0x417c72
cmp ecx, edi
jae 0x417c72
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5f
cmp byte [ecx + 1], 0xa
jne 0x417c5f
inc ecx
jmp 0x417c5f
movzx eax, al
movsx eax, byte [eax + 0x4794d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c39
cmp edx, ebx
jne 0x417c39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a3b
leave
ret