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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x404d4d
xor al, al
jmp 0x404df6
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x3c]
mov edx, dword [edi]
push ebx
push dword [eax + ecx + 0x78]
mov ecx, edi
call dword [edx]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x404dcf
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x404d76
mov word [esi], ax
jmp 0x404df3
push dword [ebx + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebx + 0x18]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov esi, eax
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x404dcf
mov eax, dword [ebp - 4]
sub eax, esi
sar eax, 2
cdq
sub eax, edx
sar eax, 1
lea ebx, [esi + eax*4]
push dword [ebx]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push eax
push dword [ebp + 8]
call fcn.00404c48
pop ecx
pop ecx
test eax, eax
je 0x404dc9
jle 0x404dbf
lea esi, [ebx + 4]
jmp 0x404dc2
mov dword [ebp - 4], ebx
cmp esi, dword [ebp - 4]
jne 0x404d91
jmp 0x404dcb
mov esi, ebx
test eax, eax
je 0x404dd3
xor al, al
jmp 0x404df5
mov ebx, dword [ebp - 8]
push dword [ebx + 0x24]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [ebx + 0x10]
mov word [ecx], ax
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x405ac0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x178]
sub esp, 0x1f8
mov eax, dword [0x4352d0]
xor eax, ebp
mov dword [ebp + 0x174], eax
push ebx
push esi
push edi
push 3
mov esi, ecx
xor ebx, ebx
pop edi
mov dword [ebp + 0x54], ebx
mov dword [esi], ebx
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00405908
mov dword [esi + 0x24], eax
mov dword [esp], 0x118
lea eax, [ebp + 0x5c]
push ebx
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], ebx
mov byte [esi + 0x28], bl
push eax
mov dword [ebp + 0x58], 0x11c
call fcn.0040d8f0
add esp, 0xc
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x60]
push 5
mov dword [esi + 0xc], edx
pop edx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
cmp eax, edx
jne 0x405b5f
cmp ecx, ebx
jle 0x405c17
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x405c17
cmp eax, 6
jne 0x405bc7
sub ecx, ebx
je 0x405bc3
dec ecx
je 0x405bbb
dec ecx
je 0x405bb7
call fcn.0040456b
cmp eax, 1
jne 0x405baf
call fcn.00404571
cmp eax, edi
jg 0x405baf
push 0x41dca0
push edi
push dword [esi + 8]
call fcn.00405a9c
add esp, 0xc
cmp eax, ebx
je 0x405baf
push eax
push edi
push 0x3b
push 0x41dc30
lea ecx, [ebp - 0x80]
call fcn.004045ba
lea ecx, [ebp - 0x80]
call fcn.00404577
mov dword [esi], 6
jmp 0x405c17
mov dword [esi], edx
jmp 0x405c17
mov dword [esi], 4
jmp 0x405c17
mov dword [esi], edi
jmp 0x405c17
jle 0x405c17
call fcn.0040456b
cmp eax, 1
jne 0x405c03
call fcn.00404571
cmp eax, edi
jg 0x405c03
push edi
push 0x40
push 0x41dc30
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x54], 1
call fcn.0040458f
add eax, 8
push 0x41d4c4
push eax
call fcn.00403030
pop ecx
pop ecx
test byte [ebp + 0x54], 1
je 0x405c11
lea ecx, [ebp - 0x80]
call fcn.00404577
mov dword [esi], 7
movzx eax, word [ebp + 0x16c]
mov dword [esi + 0x10], eax
movzx eax, word [ebp + 0x16e]
push 8
mov dword [esi + 0x14], eax
pop ecx
xor eax, eax
mov dword [ebp + 0x30], ebx
lea edi, [ebp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp + 0x30]
cmp eax, ebx
je 0x405c66
cmp eax, 6
je 0x405c5d
cmp eax, 9
jne 0x405c69
mov dword [esi + 0x18], 1
jmp 0x405c69
mov dword [esi + 0x18], 2
jmp 0x405c69
mov dword [esi + 0x18], ebx
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x174]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0x20], eax
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dae6
add ebp, 0x178
leave
ret
Function at 0x409c9a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1e0]
sub esp, 0x260
mov eax, dword [0x4352d0]
xor eax, ebp
mov dword [ebp + 0x1dc], eax
push ebx
mov ebx, dword [ebp + 0x20c]
push esi
mov esi, dword [ebp + 0x1f8]
mov edx, dword [ebp + 0x1f0]
push edi
mov edi, dword [ebp + 0x1f4]
mov ecx, dword [ebp + 0x1ec]
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp + 0x204]
mov eax, dword [ebp + 0x1e8]
mov dword [ebp - 0x68], esi
mov esi, dword [ebp + 0x208]
mov dword [ebp - 0x64], esi
mov esi, dword [ebp + 0x210]
push esi
push ebx
push dword [ebp - 0x64]
mov dword [ebp - 0x78], ecx
push dword [ebp - 0x68]
mov dword [ebp - 0x74], edx
push dword [ebp + 0x200]
push dword [ebp + 0x1fc]
push dword [ebp - 0x6c]
push edi
push edx
push ecx
call eax
test eax, eax
je 0x409d25
xor eax, eax
inc eax
jmp 0x409df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
call fcn.0040a7d4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov ecx, eax
call fcn.0040be13
test al, al
jne 0x409d4c
xor eax, eax
jmp 0x409df5
push 1
push 0x10
push esi
call fcn.0040a95c
add esp, 0xc
test al, al
je 0x409dd6
call fcn.0040a8c2
xor ebx, ebx
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x409dd6
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x104
push edi
mov dword [ebp - 0x64], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x409d8c
cmp eax, edi
jae 0x409d8c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
call fcn.0040b064
push 0x30
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], ebx
call fcn.0040d8f0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push 0xd
push eax
mov dword [ebp - 0x70], 0x10
mov dword [ebp - 0x6c], esi
call fcn.004096b1
add esp, 0x28
test eax, eax
je 0x409de4
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x409d45
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x58], ebx
sete al
mov ecx, dword [ebp + 0x1dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dae6
add ebp, 0x1e0
leave
ret 0x2c
Function at 0x409e0f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4352d0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
mov ebx, dword [ebp + 0x210]
mov ecx, dword [ebp + 0x1f4]
mov edx, dword [ebp + 0x200]
push esi
mov esi, dword [ebp + 0x1f8]
push edi
mov edi, dword [ebp + 0x20c]
mov eax, dword [ebp + 0x1f0]
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp + 0x214]
mov dword [ebp - 0x60], ebx
mov ebx, dword [ebp + 0x218]
push ebx
push dword [ebp - 0x60]
mov dword [ebp - 0x5c], ecx
push dword [ebp - 0x64]
mov ecx, dword [ebp + 0x1fc]
push edi
push dword [ebp + 0x208]
mov dword [ebp - 0x6c], ebx
push dword [ebp + 0x204]
push edx
push ecx
push esi
push dword [ebp - 0x5c]
call eax
test eax, eax
je 0x409e97
xor eax, eax
inc eax
jmp 0x409fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
call fcn.0040a7d4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov ecx, eax
call fcn.0040be13
test al, al
jne 0x409ebe
xor eax, eax
jmp 0x409fe2
push 1
push 0x10
push ebx
call fcn.0040a95c
add esp, 0xc
test al, al
je 0x409fc3
call fcn.0040a8c2
xor edi, edi
mov dword [ebp - 0x70], eax
cmp eax, edi
je 0x409fc3
xor ebx, ebx
mov dword [ebp - 0x68], edi
cmp esi, edi
je 0x409eff
push esi
call fcn.0040ad71
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x409fc3
cmp dword [ebp - 0x5c], edi
je 0x409f22
push dword [ebp - 0x5c]
call fcn.0040ad71
pop ecx
mov dword [ebp - 0x68], eax
cmp eax, edi
jne 0x409f22
push edi
push ebx
call fcn.0040ac0f
pop ecx
pop ecx
jmp 0x409fc3
cmp ebx, edi
je 0x409f2e
mov eax, dword [ebx + 4]
mov dword [ebp - 0x64], eax
jmp 0x409f31
mov dword [ebp - 0x64], edi
mov eax, dword [ebp - 0x68]
cmp eax, edi
je 0x409f40
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
jmp 0x409f43
mov dword [ebp - 0x60], edi
lea eax, [ebp - 0x24]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x409f64
cmp eax, esi
jae 0x409f64
lea eax, [ebp - 0x24]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.0040b064
push 0x30
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.0040d8f0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x80]
push 0xd
push eax
mov dword [ebp - 0x74], 0x10
call fcn.004097b4
push edi
push ebx
mov esi, eax
call fcn.0040ac0f
push edi
push dword [ebp - 0x68]
call fcn.0040ac0f
add esp, 0x38
cmp esi, edi
je 0x409fd1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x409eb7
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x50], edi
sete al
mov ecx, dword [ebp + 0x1e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dae6
add ebp, 0x1e8
leave
ret 0x2c

Function at 0x40dae6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4352d0]
jne 0x40daf0
repz ret
jmp fcn.00411cec
Function at 0x418acc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4352d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411079
and dword [ebp - 0x14], 0
cmp dword [0x438318], 0
mov dword [ebp - 0x18], eax
jne 0x418b7f
push 0x432504
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418c27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4324f8
push ebx
call edi
test eax, eax
je 0x418c27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4324e8
push ebx
mov dword [0x438318], eax
call edi
push eax
call esi
push 0x4324d4
push ebx
mov dword [0x43831c], eax
call edi
push eax
call esi
push 0x4324b8
push ebx
mov dword [0x438320], eax
call edi
push eax
call esi
mov dword [0x438328], eax
test eax, eax
je 0x418b7f
push 0x4324a0
push ebx
call edi
push eax
call esi
mov dword [0x438324], eax
mov eax, dword [0x438324]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418bd8
cmp dword [0x438328], ecx
je 0x418bd8
push eax
call esi
push dword [0x438328]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418bd8
test ebx, ebx
je 0x418bd8
call edi
test eax, eax
je 0x418bcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418bcf
test byte [ebp - 8], 1
jne 0x418bd8
or dword [ebp + 0x10], 0x200000
jmp 0x418c0b
mov eax, dword [0x43831c]
cmp eax, dword [ebp - 0x18]
je 0x418c0b
push eax
call esi
test eax, eax
je 0x418c0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418c0b
mov eax, dword [0x438320]
cmp eax, dword [ebp - 0x18]
je 0x418c0b
push eax
call esi
test eax, eax
je 0x418c0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438318]
call esi
test eax, eax
je 0x418c27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418c29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dae6
leave
ret
Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
sub dword [ebp - 0x7af0fefc], 0x77
add dword [eax], eax
add byte [ebx - 0x1d74f3a8], cl
xchg ebx, eax
sbb eax, 0x4508bb6
mov edi, dword [eax + 0x37]
rcl edx, 1
mov dword [ebp - 8], edi
aad 0x15
mov esi, dword [eax + 0xd03008]
nop
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x637008], 0x8088405
inc edx
mov dword [ebx + 0x637008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd18
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd40
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e558
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x61fa17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61fa1e
ret
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x62040f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x639268]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x639268]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x6380e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x100016cd
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100017ba
mov eax, 0x94
call fcn.10001690
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000182f
mov ecx, dword [esi + 0x10]
mov dword [0x1000c91c], ecx
mov eax, dword [esi + 4]
mov dword [0x1000c928], eax
mov edx, dword [esi + 8]
mov dword [0x1000c92c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000c920], esi
je 0x10001738
or esi, 0x8000
mov dword [0x1000c920], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000c924], eax
call fcn.1000272d
test eax, eax
pop ecx
je 0x1000182f
call fcn.10001eaf
test eax, eax
jne 0x10001765
call fcn.1000277e
jmp 0x1000182f
call fcn.1000268b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000d0d4], eax
call fcn.10002569
mov dword [0x1000c904], eax
call fcn.1000204a
test eax, eax
jl 0x100017b3
call fcn.100024c7
test eax, eax
jl 0x100017ae
call fcn.10002294
test eax, eax
jl 0x100017ae
call fcn.10001b4a
test eax, eax
jne 0x100017ae
inc dword [0x1000c900]
jmp 0x10001840
call fcn.10002248
call fcn.10001ca2
jmp 0x1000175b
test eax, eax
jne 0x100017ea
cmp dword [0x1000c900], eax
jle 0x1000182f
dec dword [0x1000c900]
cmp dword [0x1000c958], eax
jne 0x100017d9
call fcn.10001c93
call fcn.10002248
call fcn.10001ca2
call fcn.1000277e
jmp 0x10001840
cmp eax, 2
jne 0x10001833
push 0x88
push 1
call fcn.10001f8f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000182f
push esi
push dword [0x1000c044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10001829
call fcn.10001cc0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10001840
call fcn.10001f1e
pop ecx
xor eax, eax
jmp 0x10001843
cmp eax, 3
jne 0x10001840
push 0
call fcn.10001d44
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10001d44
Capabilities:
Get thread local storage value

Disassembly:
push 0x10
push 0x1000a160
call fcn.10001abc
mov eax, dword [0x1000c044]
cmp eax, 0xffffffff
je 0x10001e91
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10001d79
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x10001e83
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10001d87
push eax
call fcn.10001f1e
pop ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10001d95
push eax
call fcn.10001f1e
pop ecx
mov eax, dword [esi + 0x34]
test eax, eax
je 0x10001da3
push eax
call fcn.10001f1e
pop ecx
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10001db1
push eax
call fcn.10001f1e
pop ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10001dbf
push eax
call fcn.10001f1e
pop ecx
mov eax, dword [esi + 0x48]
test eax, eax
je 0x10001dcd
push eax
call fcn.10001f1e
pop ecx
mov eax, dword [esi + 0x54]
cmp eax, 0x1000c220
je 0x10001dde
push eax
call fcn.10001f1e
pop ecx
push 0xd
invalid
cdq