joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a35e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004137f7
and dword [ebp - 4], 0
cmp dword [0x42bb20], 0
mov ebx, eax
jne 0x41a40f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a4c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41a4c0
push eax
call fcn.00413785
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42bb20], eax
call esi
push eax
call fcn.00413785
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42bb24], eax
call esi
push eax
call fcn.00413785
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42bb28], eax
call esi
push eax
call fcn.00413785
pop ecx
mov dword [0x42bb30], eax
test eax, eax
je 0x41a40f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413785
pop ecx
mov dword [0x42bb2c], eax
mov eax, dword [0x42bb2c]
cmp eax, ebx
je 0x41a467
cmp dword [0x42bb30], ebx
je 0x41a467
push eax
call fcn.00413800
push dword [0x42bb30]
mov esi, eax
call fcn.00413800
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a467
test edi, edi
je 0x41a467
call esi
test eax, eax
je 0x41a45e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a45e
test byte [ebp - 0xc], 1
jne 0x41a467
or dword [ebp + 0x10], 0x200000
jmp 0x41a4a0
mov eax, dword [0x42bb24]
cmp eax, ebx
je 0x41a4a0
push eax
call fcn.00413800
pop ecx
test eax, eax
je 0x41a4a0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a4a0
mov eax, dword [0x42bb28]
cmp eax, ebx
je 0x41a4a0
push eax
call fcn.00413800
pop ecx
test eax, eax
je 0x41a4a0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bb20]
call fcn.00413800
pop ecx
test eax, eax
je 0x41a4c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a4c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f2e6
Capabilities:
Encode data using xor

Disassembly:
cwde
enter 0x701b, 0x70
cdq
mov cs, word [edi - 0x6304da71]
and dword [ebx], esp
sti
xor eax, 0x7cb0f37c
stc
xor eax, 0x6dfb148c
jo 0x40f2aa
jo 0x40f2ac
sti
jae 0x40f253
sal dword [eax + 0x70], cl
jo 0x40f2b4
sti
xor eax, 0x7c2dfb78
sti
sbb eax, 0x8c13fb8c
invalid
mov ecx, 0x287078b2
sub edi, esi
je 0x40f2b0
invalid
sub edi, dword cs:[ecx + 0x257078b2]
mov ecx, 0x257078b2
and eax, 0x9cf39cfb
sti
pushfd
pushfd
pushfd
js 0x40f2da
daa
invalid
xor eax, 0x2b2e2f88
sti
xor eax, 0x2d95fb88
mov bl, 0x26
invalid
Function at 0x4053e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004046ab
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d94
call fcn.00407360
push esi
push edi
push 0x491c90
call fcn.00407360
push esi
push edi
push 0x491b8c
call fcn.00407360
push esi
push edi
push 0x491a88
call fcn.00407360
push esi
push edi
push 0x491984
call fcn.00407360
add esp, 0x40
push 0x40e0d0
push 0x1ebc
push 0x40e0d4
call fcn.00403529
push 0x491ea0
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491ea8], edi
mov dword [0x491e98], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4054a8
cmp dword [ebp - 0x8c], ebx
jne 0x4054a8
mov dword [0x491ea8], ebx
call fcn.004048ef
mov esi, 0x7d000
push esi
call fcn.00407bff
cmp eax, edi
pop ecx
mov dword [0x491980], eax
jne 0x4054c6
xor eax, eax
jmp 0x4054ea
push esi
push edi
push eax
call fcn.00407360
call fcn.004055a8
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.0040530f
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x40560d
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491eb0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491eac], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405637
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb8], eax
mov edi, str._UIUIe_HaAA
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405658
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491ebc], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4066d2
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407bd0
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x406848
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40683f
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406751
push dword [ebp + 0x10]
push 2
push eax
call fcn.004066d2
add esp, 0xc
jmp 0x40682c
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404aa9
add esp, 0xc
test eax, eax
jne 0x40682c
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00406498
pop ecx
pop ecx
push edi
push 0x40f1dc
push ebx
call fcn.004046ab
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404156
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x40682c
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040280f
add esp, 0x18
push edi
push str.H9u9
push ebx
call fcn.004046ab
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404156
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.004073c0
lea eax, [ebp - 0x10c]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004073d0
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.00406ab2
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x406735
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x406ab2
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21e4
call fcn.00407bd0
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x406ae6
push dword [ebp + 8]
call fcn.0040471a
test eax, eax
pop ecx
jne 0x406c24
mov edi, str.e__1
push ebx
push edi
call fcn.00403464
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406b0a
push ebx
call fcn.004046ab
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x40f1dc
push ebx
push esi
call fcn.00403464
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406b2f
push ebx
call fcn.004046ab
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403d8c
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406c24
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1ed0
lea eax, [ebp - 0x21e4]
push 0x40e0c0
push eax
call fcn.00407870
lea eax, [ebp - 0x21e4]
mov byte [ebp - 0x11d0], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004054ef
push ebx
call fcn.004046ab
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x13200
push edx
push eax
call fcn.00403f63
push dword [ebp - 4]
push edi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004073c0
push dword [ebp - 8]
push esi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004073d0
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.004050fd
lea eax, [ebp - 0x10c]
push eax
call fcn.00403dfa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406dbf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop ebx
push 0x927c0
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x12]
test bl, al
je 0x406dd1
cmp word [ebp - 0xe], 6
jne 0x406dd1
and dword [0x491ea4], 0
cmp ax, 7
mov dword [0x491ea8], ebx
jne 0x406e0a
mov dword [0x491ea4], ebx
cmp ax, bx
jne 0x406e15
mov dword [0x491ea4], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406d66
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, 0x1a
jl 0x406e17
push 0x1b7740
call edi
call fcn.00406da8
push 0xffffffffffffffff
call edi
jmp 0x406dd1
Function at 0x401400
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x10], 0x441030
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
call sym._rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
add eax, eax
sub edx, eax
mov eax, edx
add eax, 5
mov dword [esp], eax
call sym._C3vBgCcoU_A_6kq5_____6__
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x441030
call sym._strcat
mov dword [esp + 4], 0x43d000
mov dword [esp], 0x441030
call sym._strcat
leave
ret

Function at 0x4015c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
leave
ret
Function at 0x401d36
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov dword [ebp - 0x23c], sym.AcOnA__Ac_92_D_wDKPBf_CrBF_gc
mov dword [ebp - 0x238], 0x43c046
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x401f6a
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x254]
mov dword [esp], eax
call sym.hlSDKrNKbycc_aa_oaUiItx__
add dword [0x441018], 0xfffffff9
adc dword [0x44101c], 0xffffffff
mov dword [esp + 0x10], 0x4410b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
mov dword [ebp - 0x250], 0xffffffff
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x4410b0
call sym._strcat
mov dword [esp + 4], str.Saaaalamm
mov dword [esp], 0x4410b0
call sym._strcat
mov dword [esp + 4], 0
mov dword [esp], 0x4410b0
call sub.KERNEL32.dll_CreateDirectoryA
sub esp, 8
mov dword [esp + 4], str.Mira.h
mov dword [esp], 0x4410b0
call sym._strcat
mov dword [esp + 4], 0x10
mov dword [esp], 4
call sym._kBvZ_U___n_Cc0U._
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4410b0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym.A3VBp_uR_RD_Cx9_6na_aqRD__9_q9K29_Fo29viA3B
mov dword [esp + 4], 8
mov dword [esp], 4
call sym._kBvZ_U___n_Cc0U._
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43d040
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call sym.A3VBp_uR_RD_Cx9_6na_aqRD__9_q9K29_Fo29viA3B
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], edx
mov edx, dword [ebp - 0x25c]
cmp edx, dword [0x44101c]
jg 0x401f2b
mov eax, dword [ebp - 0x25c]
cmp eax, dword [0x44101c]
jl 0x401ed0
mov edx, dword [ebp - 0x260]
cmp edx, dword [0x441018]
jae 0x401f2b
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call sym.wNCFBBv8nogsF_2Fbg_SB3URY66BvN_fk__ABv.6
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x118]
add eax, 8
mov dword [esp], eax
call sym.vBICxgs_6iC3BguCNB.gfU__y9_A3JK_vJDky_
lea eax, [ebp - 0x220]
add dword [eax], 1
adc dword [eax + 4], 0
jmp 0x401e8e
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call sym.i__ABBDgi_AA_D3miyA.arPB_y__6x93_iyAcDviA3VB
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym.i__ABBDgi_AA_D3miyA.arPB_y__6x93_iyAcDviA3VB
mov dword [esp + 4], 2
mov dword [esp], 0x4410b0
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
jmp 0x401fb6
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call sym.___w_ICxgs__Bvynogs__Bvrynogs9DU_N___w6_
jmp 0x402018
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov dword [ebp - 0x250], 0xffffffff
call sym.___w_ICxgs__Bvynogs__Bvrynogs9DU_N___w6_
lea eax, [ebp - 0x254]
mov dword [esp], eax
call sym.rNKbycc_aa_oaUiItx__6.inc__i
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4040a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4040d6
mov dword [0x4451d0], eax
mov edx, sym.__rC_Bggkr__T_aR_QI_icWA_.QyMgsDoD
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.oCBiAsiQAgDK9_6N6qA3BD_B2BBvDvN
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret
Function at 0x4041c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.AcOnA__Ac_92_D_wDKPBf_CrBF_gc
mov dword [ebp - 0x24], 0x43c6d4
mov dword [ebp - 0x1c], 0x404280
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.hlSDKrNKbycc_aa_oaUiItx__
cmp dword [0x43d0f0], 0
mov dword [ebp - 0x44], 0x4451e0
je 0x404260
jl 0x4042a0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x4451d0]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x404343
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.rNKbycc_aa_oaUiItx__6.inc__i
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4457f0]
mov eax, 0xffffffff
test edx, edx
je 0x4042ba
mov eax, dword [0x43d0f4]
test eax, eax
je 0x4042fa
xor eax, eax
test eax, eax
jne 0x4042f0
mov edi, dword [0x43d0f0]
test edi, edi
js 0x4042f0
mov dword [ebp - 0x44], 0x4451e0
mov ebx, dword [0x43d0f0]
test ebx, ebx
je 0x404260
jmp 0x40420e
xor esi, esi
mov dword [0x43d0f0], esi
jmp 0x4042c8
mov dword [esp], 0x43d0f8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x404381
mov eax, dword [0x43d0f4]
test eax, eax
jne 0x4042b8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43d0f4]
test eax, eax
je 0x40431d
jmp 0x4042b8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404375
mov dword [esp + 4], eax
mov eax, dword [0x4451d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x4043aa
test edx, edx
je 0x404395
mov dword [ebp - 0x3c], 1
call sym..QyMNB1i9_Al3y__vcW_b_.f____rC_Bggkr
call sym.gkr__T_aR_QI_icWA_.QyMgsDoDowLL_yn
mov eax, 1
mov dword [0x43d0f4], eax
jmp 0x4042b8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x404256
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x404371
Function at 0x4099f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.9ZD_WSD9_cNByRICR_UYDcyzFnIFnIFnINi
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call fcn.0040e2b0
cmp eax, 0xffffffff
mov ebx, eax
jne 0x409a3c
call sym.__errno
cmp dword [eax], 4
je 0x409a10
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ca20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040db40
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ca58
jmp 0x40caf6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ca57
cmp cl, 0x22
je 0x40cab0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40cad0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40ca90
jmp 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40cab0
cmp cl, 0x22
je 0x40cb32
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40caf0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40cae0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40cb14
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.kq5_____6__kBvZ_U
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40cad0

Function at 0x40cfe0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x445850]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d020
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.oCBiAsiQAgDK9_6N6qA3BD_B2BBvDvN
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 0x40d3d0
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 [0x445850]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d4ac
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d4c1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d480
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d418
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d428
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d473
test edx, edx
jne 0x40d466
test ecx, ecx
je 0x40d410
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 0x40d4d0
cmp eax, 8
je 0x40d410
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 0x40d402
call sym.AsUAkqrDg_RDSDhlSDKrNKbycc_
mov eax, dword [0x445850]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d3f4
call sym._RDSDhlSDKrNKbycc_aa_oaU
mov eax, dword [0x445850]
jmp 0x40d3f4
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 sym.txDF_RDSDhlSJLN6Dvy9_v_AgDk
cmp eax, 7
jne 0x40d46b
mov eax, dword [0x445850]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d523
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d54e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d52f
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 sym.AsUAkqrDg_RDSDhlSDKrNKbycc_
mov eax, dword [0x445850]
jmp 0x40d501
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 0x40d512
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d512
call sym._RDSDhlSDKrNKbycc_aa_oaU
mov eax, dword [0x445850]
jmp 0x40d508