joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004804
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
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 0x10004828
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10004810
add dl, dl
jne 0x10004833
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10004884
xor eax, eax
add dl, dl
jne 0x10004840
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10004921
add dl, dl
jne 0x1000484f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1000485a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10004865
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10004870
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1000487a
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1000481f
mov eax, 1
add dl, dl
jne 0x10004892
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1000489d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10004889
sub eax, ebx
mov ebx, 1
jne 0x100048d0
mov ecx, 1
add dl, dl
jne 0x100048b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x100048c1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x100048ad
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1000481f
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x100048e7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x100048f2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x100048de
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 0x1000481f
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10004942
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 0x1000481f
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x3f15620
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3273000]
push edi
or ebp, 0xffffffff
jmp 0x3f15642
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3f15649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f15638
mov eax, 1
add ebx, ebx
jne 0x3f1565b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3f1566c
jne 0x3f1568b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f1568b
dec eax
add ebx, ebx
jne 0x3f15678
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x3f15650
add ebx, ebx
jne 0x3f15687
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x3f156dd
xor ecx, ecx
sub eax, 3
jb 0x3f156a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3f15712
sar eax, 1
mov ebp, eax
jmp 0x3f156ae
add ebx, ebx
jne 0x3f156ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f1567c
inc ecx
add ebx, ebx
jne 0x3f156bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f1567c
add ebx, ebx
jne 0x3f156c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x3f156be
jne 0x3f156da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3f156be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x3f156fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x3f156ee
jmp 0x3f1563e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x3f156fc
add edi, ecx
jmp 0x3f1563e
pop esi
lea edi, [esi + 0x3b0e000]
mov eax, dword [edi]
or eax, eax
je 0x3f15764
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b324a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b32944]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x3f15719
mov ecx, edi
jns 0x3f15748
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 + 0x3b32948]
or eax, eax
je 0x3f1575e
mov dword [ebx], eax
add ebx, 4
jmp 0x3f15736
call dword [esi + 0x3b32950]
mov ebp, dword [esi + 0x3b3294c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2a7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x3f15798
sub esp, 0xffffff80
jmp 0x11b3c26
Function at 0x100063f9
Capabilities:
Parse pe header

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

Function at 0x100074aa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100145c0
push 0x100145b8
push str.FlsAlloc
push 0x1f
call fcn.100073c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100074de
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001310c]
call esi
jmp 0x100074e4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007528
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100145d0
push 0x100145c8
push str.FlsGetValue
push 0x21
call fcn.100073c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000755f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001310c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007567
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100145d8
push 0x100145d0
push str.FlsSetValue
push 0x22
call fcn.100073c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100075a1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001310c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000acbd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000ad5a
push ebx
push esi
call fcn.1000ac86
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000ac1a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ad07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ad59
push edi
push eax
call fcn.10007c59
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000ad27
call fcn.10007273
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ad58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000ac1a
add esp, 0x20
test eax, eax
jne 0x1000ad46
push edi
call fcn.10007273
jmp 0x1000ad4e
push ebx
call fcn.10007273
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100124c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100124ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100124ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4012e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [esp], 0x105
call fcn.00405b00
mov dword [esp + 4], eax
mov ebx, eax
mov dword [esp], 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
sub esp, 8
test eax, eax
je 0x401313
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, str.ERROR:_GetCurrentDirectory___failed__n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
nop
lea esi, [esi]

Function at 0x401770
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ecx, 0x14
mov ebp, esp
cld
sub esp, 0x28
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, ebx
mov byte [ebp - 0xd], al
mov edi, 0x411066
repe cmpsb byte [esi], byte es:[edi]
je 0x4018a5
cld
mov edi, 0x41107a
mov ecx, 0x18
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x401850
cld
mov edi, 0x411094
mov ecx, 0x27
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4018c0
cld
mov edi, 0x4110bb
mov ecx, 0x10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4018c7
cld
mov edi, 0x4110cb
mov ecx, 0xf
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4018b0
mov dword [esp], str.SOPC_KIT_NIOS2_OVERRIDE
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x401860
call fcn.00401930
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
add eax, 0xa
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp], eax
mov edi, eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [edi + eax], 0x6f696e2f
mov edx, 0x64653273
mov dword [edi + eax + 4], edx
mov word [edi + eax + 8], 0x73
mov eax, edi
jmp 0x401860
call fcn.004012e0
lea esi, [esi]
lea edi, [edi]
cmp byte [ebp - 0xd], 0
je 0x401898
test eax, eax
je 0x40186f
cmp byte [eax], 0
jne 0x401898
mov dword [esp + 8], ebx
mov eax, str.ERROR:__s___Undefined_variable_n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.00401340
jmp 0x401860
mov dword [esp], ebx
call sub.msvcrt.dll_getenv
jmp 0x401860
call fcn.004047e0
jmp 0x401860
mov dword [esp], str.QUARTUS_ROOTDIR_OVERRIDE
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x401860
call fcn.00401930
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
add eax, 0xa
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp], eax
mov edi, eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [edi + eax], 0x6175712f
mov ecx, 0x73757472
mov dword [edi + eax + 4], ecx
mov byte [edi + eax + 8], 0
mov eax, edi
jmp 0x401860
Function at 0x4024d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x228]
push ebx
sub esp, 0x23c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [esp + 4], esi
mov dword [esp], 0x200
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
cmp eax, 0x200
seta dl
test eax, eax
sete al
or dl, al
jne 0x402592
mov dword [esp], esi
xor eax, eax
lea ebx, [edi + 0xf]
mov dword [esp + 8], eax
mov eax, 0x411260
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetTempFileNameA
sub esp, 0x10
test eax, eax
je 0x4025b6
mov dword [esp], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, pe_nt_image_headers32
mov edx, 0xc0000000
mov dword [esp + 0x14], eax
mov esi, 2
lea eax, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call sub.KERNEL32.dll_CreateFileA
mov edx, dword [ebp + 0xc]
sub esp, 0x1c
mov dword [edx], eax
inc eax
je 0x4025c6
mov byte [edi + 0xe], 1
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, str.GetTempPath_failed_with_error__d._n
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xffffffff
jmp 0x40258a
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, str.GetTempFileName_failed_with_error__d._n
jmp 0x4025a0
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, str.CreateFile_failed_with_error__d._n
jmp 0x4025a0

Function at 0x4025e0
Capabilities:
Delete file

Disassembly:
push ebp
mov eax, 0xffffffff
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xe], 0
je 0x402609
lea eax, [ebx + 0xf]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
mov byte [ebx + 0xe], 0
sub esp, 4
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp byte [ebx + 0xe], 0
jne 0x40262f
mov byte [ebx + 0x20f], 0
mov eax, pe_nt_image_headers32
xor edx, edx
lea edi, [ebx + 0xf]
mov dword [esp + 0x14], eax
mov eax, 3
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 0x80000000
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov esi, eax
je 0x402720
mov dword [ebp - 0x10], 0
xor edi, edi
lea eax, [ebp - 0x10]
mov byte [ebx + 0x20f], 0
mov ecx, 0xfff
mov dword [esp + 0x10], edi
lea edi, [ebx + 0x20f]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 0x10]
sub esp, 0x14
test eax, eax
jne 0x4026e4
xor ecx, ecx
cmp byte [ebx + 0x120f], 0
mov byte [eax + ebx + 0x20f], cl
jne 0x402700
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [eax + ebx + 0x20e], 0xa
jne 0x4026b8
xor edx, edx
cmp byte [ebx + 0x120f], 0
mov byte [eax + ebx + 0x20e], dl
je 0x4026ca
mov dword [esp + 8], edi
mov edx, 0x4112d2
mov dword [esp + 4], edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4026ca
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0xc], eax
mov eax, str.Could_not_open_tmp_file__s__error__d__n
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp byte [ebx + 0x1210], 0
jne 0x4027b0
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor esi, esi
lea eax, [ebp - 0x68]
mov edi, 0x44
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memset
cmp byte [ebx + 0x1212], 0
mov dword [ebp - 0x68], 0x44
jne 0x4028b4
cld
xor eax, eax
mov byte [ebp - 0x7d], 0
lea esi, [ebp - 0x78]
cmp byte [ebx + 0xd], 0
mov ecx, 4
mov edi, esi
rep stosd dword es:[edi], eax
je 0x402842
mov dword [esp], ebx
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
call fcn.004024d0
test eax, eax
mov edx, 0xffffffff
sete byte [ebp - 0x7d]
cmp byte [ebp - 0x7d], 0
je 0x4027a0
mov dword [esp], 0xfffffff6
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebp - 0x30], eax
sub esp, 4
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
or dword [ebp - 0x3c], 0x100
sub esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
mov eax, dword [edx]
lea edx, [ebp - 0x68]
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x24], esi
mov esi, 1
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x402930
cmp byte [ebx + 0x1211], 0
jne 0x4028cf
cmp byte [ebp - 0x7d], 0
jne 0x4028c3
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
or dword [ebp - 0x3c], 1
mov word [ebp - 0x38], 0
jmp 0x4027de
mov dword [esp], ebx
call fcn.004025e0
xor edx, edx
jmp 0x4028a5
mov eax, 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
inc eax
je 0x402930
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeProcess
sub esp, 8
cmp byte [ebp - 0x7d], 0
jne 0x40290c
mov edx, dword [ebp - 0x7c]
jmp 0x4027a0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
cmp byte [ebx + 0xd], 0
jne 0x402958
mov dword [esp], ebx
call fcn.004025e0
mov edx, dword [ebp - 0x7c]
jmp 0x4027a0
cmp byte [ebx + 0xc], 0
jne 0x402962
cmp byte [ebp - 0x7d], 0
jne 0x402946
mov edx, 0xffffffff
jmp 0x4027a0
mov dword [esp], ebx
call fcn.004025e0
mov edx, 0xffffffff
jmp 0x4027a0
mov dword [esp], ebx
call fcn.00402610
jmp 0x402920
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov eax, str.Error___failed_to_launch__s._n
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x402936
Function at 0x4098b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x416130]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4098f0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040abd0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x409ca0
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
mov eax, dword [0x416130]
mov edi, dword [ebp + 8]
test eax, eax
je 0x409d7c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x409d91
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x409d50
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x409ce8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x409cf8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x409d43
test edx, edx
jne 0x409d36
test ecx, ecx
je 0x409ce0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x409da0
cmp eax, 8
je 0x409ce0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x409cd2
call fcn.0040a4f0
mov eax, dword [0x416130]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x409cc4
call fcn.00409910
mov eax, dword [0x416130]
jmp 0x409cc4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00409c10
cmp eax, 7
jne 0x409d3b
mov eax, dword [0x416130]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x409df3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x409e1e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x409dff
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040a4f0
mov eax, dword [0x416130]
jmp 0x409dd1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x409de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409de2
call fcn.00409910
mov eax, dword [0x416130]
jmp 0x409dd8
Function at 0x40a080
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, 0x1c
mov eax, dword [0x416130]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40a114
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40a130
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40a150
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40a108
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00409c10
cmp eax, 7
jne 0x40a1cf
mov eax, dword [0x416130]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40a1a6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40a1c0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40a180
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00409e30
jmp 0x40a0c5
call fcn.0040a4f0
mov eax, dword [0x416130]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40a0a0
lea esi, [esi]
call fcn.00409910
mov eax, dword [0x416130]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40a0ab
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40a0ae
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40a0f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a0f7
call fcn.0040a4f0
mov eax, dword [0x416130]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40a0e9
nop
lea esi, [esi]
call fcn.00409910
mov eax, dword [0x416130]
jmp 0x40a0e9
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]