joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x4041eb
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x4041ba
jmp 0x4041eb
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4041db
pop esi
pop ebp
ret

Function at 0x40424b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.TestBufferList.exe_gMozillaPoisonSize]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x404283
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x1c]
jb 0x4042ad
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x1c]
jb 0x4042ad
test edi, edi
je 0x40427a
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40427a
test edi, edi
je 0x4042b5
mov eax, edi
jmp 0x40427c
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40427c
int3

Function at 0x4042e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [sym.TestBufferList.exe_gMozillaPoisonSize], eax
call fcn.0040424b
mov ecx, dword [sym.TestBufferList.exe_gMozillaPoisonSize]
mov dword [sym.TestBufferList.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40431a
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestBufferList.exe_gMozillaPoisonValue], eax
mov esp, ebp
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.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.OBdqFdDOBdqFdDP_XPZ2h_C_cHhXcCZqFdD4_XPxr0L___scC
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.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43c6d4
mov dword [ebp - 0x1c], 0x404280
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.BDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCDhhd_Cc_3cCE
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.lxy_dDL___dD_d_H_xq8_20_.HcCDhhd_Cc_3cCEEEEPL_dlu
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 sym._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 method.std.terminate__
call sym.get_globals_init__
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 method.std::__basic_file_char_.fd__
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
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._WinMain_16
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.OBdqFdDOBdqFdDP_XPZ2h_C_cHhXcCZqFdD4_XPxr0L___scC
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.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
mov eax, dword [0x445850]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d3f4
call sym.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
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._Sk_EdqFdDH.iP5ODOHh_sF.xIU
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.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
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.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
mov eax, dword [0x445850]
jmp 0x40d508
Function at 0x40d650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x445850]
test eax, eax
je 0x40d6b0
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d6d0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d6f0
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.xIU
cmp eax, 7
je 0x40d740
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
mov eax, dword [0x445850]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d672
jmp 0x40d6d0
call sym.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
mov eax, dword [0x445850]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d679
jmp 0x40d6f0
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
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.xIU
cmp eax, 7
jne 0x40d6a1
lea esi, [esi]
mov eax, dword [0x445850]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d78d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d799
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d76e
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
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 0x40d75d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d75d
call sym.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
mov eax, dword [0x445850]
jmp 0x40d74c
call sym.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
mov eax, dword [0x445850]
jmp 0x40d753
Function at 0x40d7b0
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 [0x445850]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d844
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d860
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d880
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40d838
lea edx, [ebp - 0x14]
mov eax, edi
call sym._Sk_EdqFdDH.iP5ODOHh_sF.xIU
cmp eax, 7
jne 0x40d8ff
mov eax, dword [0x445850]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d8d6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40d8f0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d8b0
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 sym.xIU
jmp 0x40d7f5
call sym.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
mov eax, dword [0x445850]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d7d0
lea esi, [esi]
call sym.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
mov eax, dword [0x445850]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d7db
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 0x40d7de
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 0x40d827
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d827
call sym.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
mov eax, dword [0x445850]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40d819
nop
lea esi, [esi]
call sym.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
mov eax, dword [0x445850]
jmp 0x40d819
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40d910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40d9a2
mov eax, dword [0x445850]
test eax, eax
je 0x40d996
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40da11
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40d9b7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.xIU
cmp eax, 7
jne 0x40da2f
mov eax, dword [0x445850]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40da02
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40da20
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d9e3
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.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
mov eax, dword [0x445850]
jmp 0x40d932
mov dword [esp], edi
call sym.5ODOHh_sF.xIU
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
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 0x40d947
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 0x40d985
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d985
call sym.hkDud_MMdEE88uhh_XBDd_bdlxy_dDL___dD_d_H_x
mov eax, dword [0x445850]
jmp 0x40d970
call sym.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
mov eax, dword [0x445850]
jmp 0x40d93d
call sym.88uhh_XBDd_bdlxy_dDL___dD_d_H_xq8_20_.HcCD
mov eax, dword [0x445850]
jmp 0x40d97b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40dc10
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40dc40
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.OBdqFdDOBdqFdDP_XPZ2h_C_cHhXcCZqFdD4_XPxr0L___scC
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x401204
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add esp, 0xffffff08
add bl, 0
sub esp, 0x18
add eax, ecx
push esi
mov esi, dword [eax + 0x78]
test esi, esi
jne 0x401231
xor eax, eax
jmp 0x401356
mov eax, dword [eax + 0x7c]
mov edx, dword [ebp + 0xc]
push ebx
add esi, ecx
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
add eax, ecx
add ebx, ecx
add edi, ecx
mov dword [ebp - 8], eax
test edx, edx
jns 0x401272
and edx, 0x7fffffff
sub edx, dword [esi + 0x10]
cmp edx, dword [esi + 0x14]
jae 0x401339
mov edi, dword [edi + edx*4]
jmp 0x4012c6
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x4012b3
jmp 0x401288
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebx + eax*4]
add edx, ecx
call fcn.00401bc6
cmp dword [ebp + 0xc], eax
je 0x4012ad
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x401285
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edx, dword [esi + 0x18]
je 0x401339
movzx eax, word [eax + edx*2]
mov edi, dword [edi + eax*4]
add edi, ecx
test edi, edi
je 0x401352
mov eax, dword [ebp - 0xc]
add eax, esi
cmp edi, eax
jae 0x401352
cmp edi, esi
jb 0x401352
xor esi, esi
cmp byte [edi], 0x2e
je 0x401300
lea esi, [esi + 1]
test esi, esi
cmp byte [esi + edi], 0x2e
jne 0x4012f0
push esi
lea eax, [ebp - 0x110]
push edi
push eax
mov eax, dword [sym.imp.msvcrt.dll_memcpy]
call eax
add esp, 3
add esp, 9
lea eax, [ebp - 0x110]
push eax
mov eax, dword [sym.imp.kernel32.dll_LoadLibraryA]
mov byte [ebp + esi - 0x110], 0
call eax
mov ebx, eax
test ebx, ebx
jne 0x401340
xor eax, eax
jmp 0x401354
lea edx, [esi + edi + 1]
call fcn.00401bc6
push eax
push ebx
call fcn.00401204
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x40135b
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb2cec0bf
movzx edx, byte [ecx]
imul eax, eax, 0x21
xor eax, edx
inc ecx
dec dword [esp + 4]
jne 0x401360
ret 4
Function at 0x4013f6
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
call eax
push edi
call esi
lea eax, [ebp - 0x210]
push eax
push 0xff
mov eax, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
call eax
push dword [ebp + 8]
mov eax, dword [sym.imp.kernel32.dll_DisableThreadLibraryCalls]
call eax
mov eax, dword [ebp + 0xc]
xor esi, esi
lea esi, [esi + 1]
test esi, esi
cmp eax, esi
jne 0x40143f
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.00401566
jmp 0x401548
cmp eax, edi
jne 0x40146d
test dword [ebp + 0x10], 0xfffffffe
jne 0x401533
cmp dword [ebp + 8], edi
jne 0x401466
mov eax, dword [sym.imp.msvcrt.dll_getc]
call eax
mov eax, esi
jmp 0x401548
cmp eax, 2
jne 0x40152a
mov esi, 0xa
mov edi, esi
mov ecx, 0x64
sub ecx, 3
sub edx, 0
add ecx, 0
mov ebx, 0
lodsd eax, dword [esi]
xor eax, ebx
stosd dword es:[edi], eax
sub esi, 1
cmp word [ebp - 0x2c], dx
sub esi, 2
sub edi, 1
sub edi, 2
add ebx, ecx
ror ebx, 0xb
sub ecx, 1
jne 0x401493
push 3
push 2
push 1
mov eax, dword [sym.imp.kernel32.dll_LocalReAlloc]
call eax
test eax, eax
je 0x4014cd
idiv byte [eax]
push 5
lea eax, [ebp - 0xe]
push eax
push 1
mov eax, dword [sym.imp.kernel32.dll_LocalHandle]
mov byte [ebp - 0x10], 0x38
mov byte [ebp - 0xf], 0x3d
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x75
mov byte [ebp - 0xc], 0x71
mov byte [ebp - 0xb], 0x7e
mov byte [ebp - 0xa], 0x75
mov byte [ebp - 9], 0x6a
mov byte [ebp - 8], 0x26
mov byte [ebp - 7], 0x2b
mov byte [ebp - 6], 0x64
mov byte [ebp - 5], 0x3c
mov byte [ebp - 4], 0x28
mov byte [ebp - 3], 0x3d
mov byte [ebp - 2], 0x4b
mov byte [ebp - 1], 0
call eax
xor eax, eax
lea eax, [eax + 1]
test eax, eax
jmp 0x401548
cmp eax, 3
je 0x401466
push edi
push edi
push edi
push edi
call fcn.00401566
push eax
mov eax, dword [sym.imp.kernel32.dll_ExitProcess]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4019dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 5
sub esp, 0xb
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ecx]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x3c]
and dword [ebp - 4], 0
add eax, esi
movzx edx, word [eax + 8]
mov dword [ebp - 4], edx
mov edx, dword [eax + 8]
shr edx, 8
xor dl, 0x57
ror dl, 0xf
movzx edx, dl
mov dword [ebp - 4], edx
movzx eax, word [eax + 0xa]
push edi
mov dword [ebp - 4], eax
add eax, esi
Function at 0x6c11f3f0
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 eax, dword [0x6c147300]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6c11f460
test byte [0x6c1471a4], 8
jne 0x6c11f428
lea esp, [ebp - 8]
lea eax, [ebx + 4]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0xc], 0x6c14c26f
mov dword [esp + 8], str.INTERNET_GetResponseBuffer
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
lea esp, [ebp - 8]
lea eax, [ebx + 4]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0x1004
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x6c11f47d
mov dword [eax], 0
mov byte [eax + 4], 0
mov eax, dword [0x6c147300]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6c11f4a0
mov ebx, esi
jmp 0x6c11f40f
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x6c11f40f
Function at 0x6c120ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x10
mov ebx, dword [ecx]
test byte [0x6c1471a4], 8
jne 0x6c120f50
mov dword [esp], ebx
call dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._WININET_Release
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov eax, dword [0x6c147300]
cmp eax, 0xffffffff
je 0x6c120f3c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [0x6c147300]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
lea esp, [ebp - 8]
mov eax, 1
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0xc], 0x6c14c26f
mov dword [esp + 8], str.INTERNET_WorkerThreadFunc
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c120eed