joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
call fcn.004cb890
mov dword [esp], 0x90
mov ecx, eax
call fcn.004cba30
movzx edx, byte [eax + 0x78]
sub esp, 4
and byte [eax + 0x24], 0xc0
and byte [eax + 0x1a], 0xf0
and byte [eax + 0x1c], 0xfe
and edx, 0xfffffff8
or edx, 4
and byte [eax + 0x74], 0x80
or byte [eax + 0x7c], 0xf
and word [eax + 0x26], 0xfe3f
and word [eax + 0x24], 0xc03f
and byte [eax + 0x29], 0x80
mov byte [eax + 0x78], dl
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x6f2308
mov byte [eax + 0x18], 0
mov byte [eax + 0x19], 1
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov byte [eax + 0x70], 0
mov byte [eax + 0x71], 0
mov dword [eax + 0x20], 0
mov byte [eax + 0x28], 0
and byte [eax + 0x2c], 0x80
movzx edx, word [eax + 0x3e]
movzx ecx, word [eax + 0x52]
or byte [eax + 0x48], 0x7f
or dword [eax + 0x40], 0x7fff8000
and dx, 0xf80f
or dx, 0x3f0
or cx, 0x1fe0
mov word [eax + 0x3e], dx
movzx edx, byte [eax + 0x3c]
mov word [eax + 0x52], cx
shr cx, 8
or ecx, 0xffffffe0
or word [eax + 0x38], 0xfff
and edx, 0xfffffff8
or edx, 4
mov byte [eax + 0x3c], dl
mov edx, dword [eax + 0x44]
or word [eax + 0x48], 0x780
or dword [eax + 0x4c], 0x1ff80
or word [eax + 0x50], 0x1ff8
or edx, 0x7f8000
mov dword [eax + 0x44], edx
shr edx, 0x18
or edx, 0xffffff80
mov byte [eax + 0x47], dl
and byte [eax + 0x57], 0x1f
and byte [eax + 0x58], 0xe0
and dword [eax + 0x24], 0xffc03fff
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x5c], 0xfffff800
mov byte [eax + 0x53], cl
mov byte [eax + 0x54], 0xff
mov byte [eax + 0x59], 0
mov edx, dword [ebp + 8]
mov byte [eax + 0x5a], 0
mov byte [eax + 0x5b], 0
mov dword [eax], 0x6f1c88
mov dword [eax + 0x80], edx
mov edx, dword [ebx]
mov dword [eax + 0x84], edi
mov dword [eax + 0x88], esi
mov dword [eax + 4], edx
mov edx, dword [ebx + 4]
mov dword [eax + 8], edx
mov edx, dword [ebx + 8]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x8c], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
Function at 0x5195d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x519600
mov eax, dword [ebx]
mov esi, ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, ebx
test eax, eax
mov eax, dword [ebx]
je 0x519610
call dword [eax + 0x1c]
mov ecx, esi
mov dword [ebp + 8], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp fcn.00517ea0
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 4
call dword [eax + 0x20]
mov ecx, ebx
test eax, eax
mov eax, dword [ebx]
je 0x519630
call dword [eax + 0x20]
mov ecx, esi
mov dword [ebp + 8], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp fcn.00518110
call dword [eax + 0x18]
test eax, eax
je 0x519600
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, esi
mov dword [ebp + 8], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp fcn.00516c70
Function at 0x519f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
call fcn.004cb890
mov dword [esp], 0xb8
mov ecx, eax
call fcn.004cba30
mov ebx, eax
sub esp, 4
and byte [eax + 0x1a], 0xf0
and byte [eax + 0x1c], 0xfe
and byte [eax + 0x74], 0x80
or byte [eax + 0x7c], 0xf
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x6f2308
mov byte [eax + 0x19], 1
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov byte [eax + 0x70], 0
mov byte [eax + 0x71], 0
movzx eax, byte [eax + 0x78]
and byte [ebx + 0x24], 0xc0
and word [ebx + 0x26], 0xfe3f
and word [ebx + 0x24], 0xc03f
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x78], al
and byte [ebx + 0x29], 0x80
and byte [ebx + 0x2c], 0x80
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x30], 0xffffffff
movzx eax, word [ebx + 0x3e]
movzx edx, word [ebx + 0x52]
or byte [ebx + 0x48], 0x7f
or dword [ebx + 0x40], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or dx, 0x1fe0
mov word [ebx + 0x3e], ax
movzx eax, byte [ebx + 0x3c]
mov word [ebx + 0x52], dx
shr dx, 8
or edx, 0xffffffe0
mov byte [ebx + 0x53], dl
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x3c], al
mov eax, dword [ebx + 0x44]
or word [ebx + 0x38], 0xfff
or word [ebx + 0x48], 0x780
or dword [ebx + 0x4c], 0x1ff80
or eax, 0x7f8000
mov dword [ebx + 0x44], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [ebx + 0x47], al
or word [ebx + 0x50], 0x1ff8
and byte [ebx + 0x57], 0x1f
and byte [ebx + 0x58], 0xe0
and dword [ebx + 0x24], 0xffc03fff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x5c], 0xfffff800
mov byte [ebx + 0x54], 0xff
mov byte [ebx + 0x18], 1
mov byte [ebx + 0x59], 0
mov byte [ebx + 0x5a], 0
mov byte [ebx + 0x5b], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx], 0x6f1ba8
call fcn.004cb890
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x88], eax
call fcn.004cb890
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0x98], eax
call fcn.004cb890
mov esi, eax
call fcn.004cb890
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
call fcn.005f3f30
mov ecx, ebx
mov dword [eax + 8], 0
lea edx, [eax + 0xc]
mov dword [eax], 0
mov byte [eax + 0xc], 0
mov eax, dword [ebx]
mov dword [ebx + 0xac], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xb4], 0
mov eax, dword [eax + 4]
mov byte [ebx + 0xb0], 0
mov dword [esp], edx
call eax
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x51f380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x2c
cmp byte [ecx + 0xac], 0
je 0x51f3a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004cb890
mov dword [esp], 0xb8
mov ecx, eax
call fcn.004cba30
mov ebx, eax
sub esp, 4
and byte [eax + 0x1a], 0xf0
and byte [eax + 0x1c], 0xfe
and byte [eax + 0x74], 0x80
or byte [eax + 0x7c], 0xf
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x6f2308
mov byte [eax + 0x19], 1
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov byte [eax + 0x70], 0
mov byte [eax + 0x71], 0
movzx eax, byte [eax + 0x78]
and byte [ebx + 0x24], 0xc0
and word [ebx + 0x26], 0xfe3f
and word [ebx + 0x24], 0xc03f
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x78], al
and byte [ebx + 0x29], 0x80
and byte [ebx + 0x2c], 0x80
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x30], 0xffffffff
movzx eax, word [ebx + 0x3e]
movzx edx, word [ebx + 0x52]
or byte [ebx + 0x48], 0x7f
or dword [ebx + 0x40], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or dx, 0x1fe0
mov word [ebx + 0x3e], ax
movzx eax, byte [ebx + 0x3c]
mov word [ebx + 0x52], dx
shr dx, 8
or edx, 0xffffffe0
mov byte [ebx + 0x53], dl
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x3c], al
mov eax, dword [ebx + 0x44]
or word [ebx + 0x38], 0xfff
or word [ebx + 0x48], 0x780
or dword [ebx + 0x4c], 0x1ff80
or eax, 0x7f8000
mov dword [ebx + 0x44], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [ebx + 0x47], al
or word [ebx + 0x50], 0x1ff8
and byte [ebx + 0x57], 0x1f
and byte [ebx + 0x58], 0xe0
and dword [ebx + 0x24], 0xffc03fff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x5c], 0xfffff800
mov byte [ebx + 0x54], 0xff
mov byte [ebx + 0x18], 1
mov byte [ebx + 0x59], 0
mov byte [ebx + 0x5a], 0
mov byte [ebx + 0x5b], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx], 0x6f1ba8
call fcn.004cb890
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x88], eax
call fcn.004cb890
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0x98], eax
call fcn.004cb890
mov edi, eax
call fcn.004cb890
mov dword [esp], 0xd
mov ecx, eax
call fcn.004cba30
lea edx, [eax + 0xc]
sub esp, 4
mov byte [eax + 0xc], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebx + 0xa8], edi
lea edi, [ebp - 0x1c]
mov dword [ebx + 0xac], edx
mov dword [ebx + 0xb4], 0
mov byte [ebx + 0xb0], 0
mov ebx, dword [esi + 0xb4]
cmp ebx, dword [esi + 0xb8]
je 0x51f5df
lea esi, [esi]
mov eax, dword [ebx]
add ebx, 4
mov ecx, dword [esi + 0x28]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0051b370
sub esp, 8
cmp ebx, dword [esi + 0xb8]
jne 0x51f5c0
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x28]
mov dword [esp], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.0051b500
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x538bc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.005a62a0
sub esp, 4
cmp eax, 0xa2
mov ebx, eax
je 0x538c20
mov eax, dword [edi + 0x74]
mov edx, dword [eax]
mov edx, dword [edx + 0x78]
mov dword [esp + 0x10], 0x6e03dd
mov dword [esp + 0xc], str.undef
mov dword [esp + 8], str.must_be_followed_by_macro_name
mov edi, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edi
call edx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, dword [edi + 0x74]
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
lea ebx, [esi + 0x20]
mov eax, dword [eax + 0x98]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], str.undef
call eax
sub esp, 0xc
call fcn.004cb890
lea ecx, [ebp - 0x20]
mov dword [esp], ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
call fcn.005f4b30
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x38], eax
sub esp, 8
test esi, esi
mov ebx, esi
mov dword [ebp - 0x30], esi
je 0x538dab
add ebx, eax
mov ecx, 0x811c9dc5
nop
movsx edx, byte [eax]
add eax, 1
xor edx, ecx
imul ecx, edx, 0x1000193
cmp eax, ebx
jne 0x538c80
mov eax, dword [edi + 0x24]
xor edx, edx
mov esi, eax
mov eax, ecx
div esi
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x34], esi
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], edx
test eax, eax
je 0x538cdf
mov ebx, dword [eax]
mov dword [ebp - 0x3c], edi
mov edi, ecx
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebx + 0x10]
lea esi, [esi]
cmp edi, esi
je 0x538d60
mov ebx, dword [ebx]
test ebx, ebx
je 0x538cdc
mov esi, dword [ebx + 0x10]
xor edx, edx
mov eax, esi
div ecx
cmp dword [ebp - 0x2c], edx
je 0x538cc0
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
lock sub dword [eax - 4], 1
xor edx, edx
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0xc]
test eax, eax
je 0x538d19
mov ecx, ebx
jmp 0x538d00
mov ecx, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x538d0c
cmp edx, dword [eax + 0x10]
jle 0x538cf7
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x538d00
cmp ebx, ecx
je 0x538d19
cmp edx, dword [ecx + 0x10]
jl 0x538d19
or byte [ecx + 0x38], 4
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [esp], eax
call fcn.005a62a0
mov ebx, eax
sub esp, 4
cmp ebx, 0xa
mov eax, 0xa
je 0x538c10
mov eax, dword [edi + 0x74]
mov edx, dword [eax]
mov edx, dword [edx + 0x78]
mov dword [esp + 0x10], 0x6e03dd
mov dword [esp + 0xc], str.undef
mov dword [esp + 8], str.can_only_be_followed_by_a_single_macro_name
jmp 0x538c02
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov esi, dword [eax - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
cmp esi, edx
cmovbe edx, esi
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
mov ecx, dword [ebp - 0x34]
test eax, eax
jne 0x538cc8
cmp dword [ebp - 0x30], esi
jne 0x538cc8
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
lock sub dword [eax - 4], 1
mov edx, dword [ebx + 0xc]
jmp 0x538ce9
mov ecx, 0x811c9dc5
jmp 0x538c92
Function at 0x53e220
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
xor edx, edx
lea ecx, [eax + 1]
cmp eax, 0xffffffff
cmovne edx, ecx
add esp, 0xc
mov eax, edx
ret
Function at 0x545dd0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push edi
push esi
mov esi, 0x1505
push ebx
sub esp, 0x1c
mov ecx, dword [0x736fd8]
mov eax, dword [esp + 0x30]
lea edx, [eax + 1]
movsx eax, byte [eax]
test al, al
je 0x545e04
mov ebx, esi
add edx, 1
shl ebx, 5
add eax, ebx
add esi, eax
movsx eax, byte [edx - 1]
test al, al
jne 0x545df0
mov edi, dword [ecx + 4]
xor edx, edx
mov eax, esi
div edi
mov eax, dword [ecx]
mov eax, dword [eax + edx*4]
mov ebp, edx
test eax, eax
je 0x545e37
mov ebx, dword [eax]
mov ecx, dword [ebx + 0xc]
lea esi, [esi]
cmp esi, ecx
je 0x545e43
mov ebx, dword [ebx]
test ebx, ebx
je 0x545e37
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov eax, ecx
div edi
cmp ebp, edx
je 0x545e20
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x545e24
mov eax, dword [ebx + 8]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x561de0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 0x1c], eax
je 0x561e73
mov eax, dword [ebx]
mov esi, ecx
mov ecx, ebx
call dword [eax + 0x7c]
test al, al
jne 0x561e20
mov eax, dword [ebp - 0x1c]
mov ecx, esi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0055d650
mov dword [esp], edi
mov ecx, esi
call fcn.00549ef0
sub esp, 4
test al, al
je 0x561e06
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
je 0x561e77
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x28]
mov dword [esp], eax
call fcn.00519f90
mov ecx, esi
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005613e0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
jmp 0x561e69
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
test eax, eax
jne 0x561e3c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x28]
mov dword [esp], eax
call fcn.00519f90
mov ecx, edi
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
sub esp, 4
call dword [eax + 0x70]
mov edx, dword [ebp - 0x1c]
mov ecx, esi
mov dword [esp + 4], str.scalarCopy
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.0054d8f0
mov ecx, dword [esi + 0x28]
mov edx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [ebp - 0x24], edx
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp], 0x19e
mov dword [esp + 0x18], eax
call fcn.00513020
mov edi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x28]
sub esp, 0x1c
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0051a6f0
mov ecx, dword [esi + 0x28]
mov edi, eax
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [esp], eax
call fcn.00519f90
mov edx, dword [ebp - 0x24]
mov ecx, esi
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005613e0
mov ecx, dword [esi + 0x28]
sub esp, 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0051a6f0
mov esi, eax
sub esp, 8
mov dword [eax + 0x80], 0x7a
mov eax, dword [eax]
mov ecx, esi
mov eax, dword [eax + 0x6c]
mov dword [esp], ebx
call eax
mov eax, esi
sub esp, 4
jmp 0x561e69
Function at 0x58f200
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
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.0058f260
Function at 0x58fbf0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x58fc28
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x58fc1e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x58fc2a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x58fc10
xor eax, eax
pop ebx
pop esi
ret
Function at 0x59c6b0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x68e254], eax
je 0x59c6c7
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x59cb70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x737d7c], 1
je 0x59cb87
call fcn.0059caf0
mov eax, dword [0x68e254]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x59cba8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0059ca40
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x59cb9e
test esi, esi
je 0x59cb9e
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x60], 0
mov dword [esi + 0x14], 0
sub esp, 0x10
mov dword [esi + 0x18], eax
call ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
mov edx, dword [ebp - 0x1c]
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x59cca8
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x68e254]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x59cca8
mov ebx, esi
jmp 0x59cb9e
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x59ce10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
cmp dword [ebp + 0xc], 3
je 0x59ce30
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [0x68e254]
cmp eax, 0xffffffff
je 0x59ce1e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x59ce1e
test byte [eax + 0x20], 0x30
je 0x59cee0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x59cf77
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x59ce96
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x59ce88
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0059f010
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x59cf85
mov eax, dword [0x68e254]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x59cf40
test eax, eax
je 0x59cefa
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x64], 1
test eax, eax
jne 0x59cf70
test byte [ebx + 0x24], 4
je 0x59cf57
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x59ce8f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x59ce8f
test eax, eax
je 0x59cf50
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0059f010
mov dword [ebx + 0x34], 0xffffffff
jmp 0x59ce1e
call fcn.0059ccf0
jmp 0x59cf12
call fcn.0059ccf0
lea esi, [esi]
jmp 0x59ce64
mov eax, ebx
call fcn.0059c8b0
lea esi, [esi]
jmp 0x59ceb6
Function at 0x59d8b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
call fcn.0059cb70
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x59d934
test byte [ebx + 0x20], 0x30
jne 0x59d8e8
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x68e254]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov ebx, eax
push edx
je 0x59d92b
cmp dword [eax + 0x14], 0
je 0x59d978
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x59d91e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x59d93b
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.0059ccf0
jmp 0x59d8cf
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x14], 0
je 0x59d9a2
mov eax, dword [0x68e254]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x59d92b
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x59d98f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x59d95e
mov eax, ebx
call fcn.0059c8b0
jmp 0x59d95e