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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b2dee
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00461727
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4b2c6a
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4b2c93
lea eax, [0x4fbf00]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call fcn.004493f0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x38]
mov ebx, eax
xor eax, eax
call fcn.00461727
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ecx
movzx ecx, word [esp + 0x6c]
movzx edx, word [esp + 0x70]
shl edx, 0xb
movzx ebx, word [esp + 0x78]
or ebx, edx
movzx edx, byte [esp + 0x75]
test dl, dl
je 0x4b2cdb
or ebx, 0x80
movzx eax, byte [esp + 0x74]
test al, al
je 0x4b2cea
or ebx, 0x100
movzx eax, byte [esp + 0x73]
test al, al
je 0x4b2cf9
or ebx, 0x200
movzx eax, byte [esp + 0x72]
test al, al
je 0x4b2d08
or ebx, 0x400
movzx eax, byte [esp + 0x6e]
test al, al
je 0x4b2d17
or ebx, 0xffff8000
movzx eax, byte [esp + 0x76]
test al, al
je 0x4b2d23
or ebx, 0x20
movzx eax, byte [esp + 0x77]
test al, al
je 0x4b2d2f
or ebx, 0x10
mov word [esp + 0x46], cx
mov word [esp + 0x48], bx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0xc]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
cmp edx, ecx
jae 0x4b2d9a
mov dword [esp + 0x24], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xc
lea eax, [0x4fbf00]
mov dword [esp + 0x10], eax
call fcn.004494b0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call fcn.00461e20
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x38]
call fcn.00461be6
add esp, 0x5c
ret
call fcn.00460140
jmp fcn.004b2c30
Function at 0x4c7fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c8133
sub esp, 0x48
mov eax, dword [esp + 0x78]
cmp eax, 4
jne 0x4c8059
mov ecx, dword [esp + 0x74]
cmp dword [ecx], 0x6c616964
je 0x4c7ff8
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4c8065
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
test al, al
jne 0x4c8023
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4c8065
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
jmp 0x4c8065
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov esi, dword [esp + 0x58]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call fcn.004c7da0
mov eax, dword [esp + 0x20]
movzx ecx, byte [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
call fcn.004ce7f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x48
ret
call fcn.00460140
jmp fcn.004c7fc0
Function at 0x402446
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jne 0x40245f
push 1
pop eax
jmp 0x4024d4
mov eax, dword [0x408498]
push 0
mov dword [ebp - 0x100], eax
push 0
lea eax, [ebp - 0x104]
push 0
push eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x104], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4024cd
test eax, eax
je 0x40245f
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40245f
mov eax, ebx
push 0
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4024cd
cmp eax, 0xffffffff
je 0x4024cd
add esi, eax
cmp esi, ebx
jb 0x40245f
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop ebx
leave
ret

Function at 0x402c37
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402cac
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
mov dword [ebp + 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x402ca4
lea eax, [ebp - 0xc]
push 0xa
push eax
call fcn.00401bc2
pop ecx
lea eax, [ebp + 8]
pop ecx
push ebx
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x402c82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f1b
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407144
push str.GetLastError
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.ExitProcess
push ebx
call esi
push eax
call edi
push str.GetCurrentThreadId
push ebx
call esi
push eax
call edi
push str.CreateMutexA
push ebx
call esi
push eax
call edi
push str.GetModuleFileNameA
push ebx
call esi
push eax
call edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push str.Sleep
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push 0x104
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [ebp - 8]
call fcn.00403000
test eax, eax
je 0x402fe2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Serxiev
push eax
mov dword [ebp - 0x14], 0x402cb0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworjk_COMs_Suppoyt
push str.Serxiev
call fcn.00403161
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.ADVAPI32.dll
push str.RegCloseKey
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RegOpenKeyExA
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
push 0x40
mov dword [ebp - 0x30], eax
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], dl
mov byte [ebp - 0x24], 0x53
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x24]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x23], 0x59
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x54
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4d
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x76
mov byte [ebp - 7], 0x69
mov byte [ebp - 6], 0x63
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x5c
mov byte [ebp - 2], dl
lea ebx, [ebp - 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [ebp - 0x134]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Serxiev
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x134]
and ecx, 3
push edx
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [ebp - 0x30]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40315d
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x100593d7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword [esp + 4]
lea esp, [esp + 0x44]
je 0x1005eb2f
shl si, 0xf
mov esi, dword [eax + 0x3c]
rcl edx, 0x14
add esi, eax
pushfd
cmp ah, ch
movzx dx, bl
mov edx, dword [esi + 0x78]
pushal
lea eax, [esp + 0x2349f599]
aad 0x3c
push ebp
lea eax, [ebx - 0x13f5e1cc]
aad 0x89
add eax, 0xab85a7b6
inc bp
mov ebp, esp
aam 0xa
sub esp, 0x10
aaa
test dl, 0x7b
aam 0x37
bsr eax, ebx
push esi
shl eax, cl
bt edi, 0xb
push edi
bsr ax, ax
lea eax, [ebx + 0x44663835]
add al, al
push ebx
pushal
bsf eax, eax
mov dword [esp + 0x1c], edx
cwde
shrd ax, dx, 6
aam 0x61
mov eax, dword [ebp + 8]
clc
bt bx, 5
mov word [esp + 4], 0x4a31
stc
test eax, eax
pushfd
pushal
jmp 0x10040379
Function at 0x401030
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.Crypt32
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x40107b
push 0x5c
push str.CertManager.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x40105b
inc eax
jmp 0x401060
mov eax, str.CertManager.cpp
push str.loading_crypt32
push 0
push 0x3b
push eax
push str.RsupS
call fcn.00401490
add esp, 0x14
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CertAddCertificateContextToStore
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x40111c
push str.CertFreeCertificateContext
push dword [esi + 0x28]
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x40111c
push str.CertCloseStore
push dword [esi + 0x28]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x40111c
push str.CertCompareCertificate
push dword [esi + 0x28]
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x40111c
push str.CertDeleteCertificateFromStore
push dword [esi + 0x28]
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x40111c
push str.CertCreateCertificateContext
push dword [esi + 0x28]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x40111c
push str.CertEnumCertificatesInStore
push dword [esi + 0x28]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x40111c
push str.CertDuplicateCertificateContext
push dword [esi + 0x28]
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x40111c
push str.CertOpenStore
push dword [esi + 0x28]
call edi
mov dword [esi + 0x24], eax
test eax, eax
jne 0x401121
pop edi
xor eax, eax
pop esi
ret
push str.CertGetNameStringA
push dword [esi + 0x28]
call edi
mov dword [esi + 0x14], eax
mov eax, 1
pop edi
pop esi
ret
Function at 0x401490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x424010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
push esi
push edi
test ebx, ebx
jne 0x4014c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x454]
push eax
call fcn.004077bf
lea eax, [ebp - 0x454]
push eax
call fcn.0040756f
add esp, 8
mov esi, eax
push dword [0x424004]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0x41c2b0
push 0x41c2d0
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [esi]
lea eax, [ebp - 0x204]
push dword [esi + 4]
push dword [esi + 8]
push str._02d:_02d:_02d_T__8u__s_s
push eax
call fcn.004074cf
mov edi, eax
mov esi, 0x200
lea eax, [ebp + 0x1c]
mov ecx, esi
push eax
push dword [ebp + 0x18]
sub ecx, edi
push ecx
lea ecx, [ebp - 0x204]
add ecx, edi
push ecx
call fcn.0040c755
add edi, eax
lea eax, [ebp - 0x204]
push ebx
push str.:_errno_u_
sub esi, edi
add eax, edi
push esi
push eax
call fcn.00407553
add esp, 0x40
lea esi, [ebp - 0x204]
add edi, eax
mov eax, 0x200
sub eax, edi
add esi, edi
push 0
push eax
push esi
push 0x409
push ebx
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401585
sub esi, ecx
lea eax, [edi - 1]
add eax, esi
cmp eax, edi
jle 0x4015c9
jmp 0x4015a0
mov cl, byte [ebp + eax - 0x204]
cmp cl, 0xd
je 0x4015b1
cmp cl, 0xa
jne 0x4015c9
cmp eax, 0x200
jae 0x401672
mov byte [ebp + eax - 0x204], 0
dec eax
cmp eax, edi
jg 0x4015a0
mov ecx, dword [0x4252e8]
pop edi
pop esi
pop ebx
push dword [ebp + 0x10]
push dword [ebp - 0x44c]
test ecx, ecx
je 0x401615
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x448]
push 0x45
push str._c___6.6s__s_at___s:_d__n
push ecx
call fcn.004073bd
push dword [0x4252e8]
call fcn.00407280
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407810
mov esp, ebp
pop ebp
ret
mov ecx, 0x200
sub ecx, eax
lea eax, [ebp + eax - 0x204]
push str._at___s:_d_
push ecx
push eax
call fcn.00407553
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x448]
lea eax, [ebp - 0x444]
push 0x45
push str._c___6.6s__s_n
push 0x240
push eax
call fcn.00407553
add esp, 0x2c
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407810
mov esp, ebp
pop ebp
ret
call fcn.00406e51
int3
Function at 0x4019f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
add eax, eax
push eax
push 0
push esi
mov dword [ebp - 8], 1
call fcn.00407e30
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E968_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a5f
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.Installer32
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x424010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
call fcn.004077bf
lea eax, [ebp - 0x44c]
push eax
call fcn.0040756f
add esp, 8
mov esi, eax
push dword [0x424004]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0x41c2b0
push 0x41c45c
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [esi]
lea eax, [ebp - 0x204]
push dword [esi + 4]
push dword [esi + 8]
push str._02d:_02d:_02d_T__8u__s_s
push eax
call fcn.004074cf
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, 0x200
sub ecx, eax
push ecx
lea ecx, [ebp - 0x204]
add eax, ecx
push eax
call fcn.0040c755
mov ecx, dword [0x4252e8]
lea eax, [ebp - 0x204]
add esp, 0x30
push eax
movsx eax, byte [edi + str._.VDIWEF]
push ebx
push eax
push str._c___6.6s__s_n
test ecx, ecx
je 0x402466
push ecx
call fcn.004073bd
push dword [0x4252e8]
call fcn.00407280
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407810
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x444]
push 0x240
push eax
call fcn.00407553
add esp, 0x18
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407810
mov esp, ebp
pop ebp
ret
Function at 0x4024a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x424010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x454]
push edi
push eax
call fcn.004077bf
lea eax, [ebp - 0x454]
push eax
call fcn.0040756f
add esp, 8
mov esi, eax
push dword [0x424004]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0x41c2b0
push 0x41c2d0
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [esi]
lea eax, [ebp - 0x204]
push dword [esi + 4]
push dword [esi + 8]
push str._02d:_02d:_02d_T__8u__s_s
push eax
call fcn.004074cf
mov edi, eax
mov esi, 0x200
lea eax, [ebp + 0x1c]
mov ecx, esi
push eax
push dword [ebp + 0x18]
sub ecx, edi
push ecx
lea ecx, [ebp - 0x204]
add ecx, edi
push ecx
call fcn.0040c755
mov ecx, dword [0x4252e8]
add esp, 0x30
add edi, eax
lea eax, [ebp - 0x204]
push dword [ebp + 0x14]
push dword [ebp - 0x44c]
test ecx, ecx
je 0x402599
push eax
push dword [ebp - 0x448]
movsx eax, byte [ebx + str._.VDIWEF]
push eax
push str._c___6.6s__s_at___s:_d__n
push ecx
call fcn.004073bd
push dword [0x4252e8]
call fcn.00407280
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407810
mov esp, ebp
pop ebp
ret
push str._at___s:_d_
sub esi, edi
add eax, edi
push esi
push eax
call fcn.00407553
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x448]
movsx eax, byte [ebx + str._.VDIWEF]
push eax
push str._c___6.6s__s_n
lea eax, [ebp - 0x444]
push 0x240
push eax
call fcn.00407553
add esp, 0x2c
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407810
mov esp, ebp
pop ebp
ret
Function at 0x4042f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov byte [esi], 0
test edi, edi
je 0x4043c2
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40437d
mov ecx, edx
push ebx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404313
sub ecx, ebx
pop ebx
push edi
push edx
cmp byte [ecx + edx - 1], 0x5c
jne 0x40432d
push 0x41cdec
jmp 0x404332
push str._s_s
push esi
call fcn.004074cf
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404383
push 0x5c
push str.main.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x40435d
inc eax
jmp 0x404362
mov eax, str.main.cpp
push esi
push str.Invalid_path:__s
push 0xe7
push eax
push str.RsupS
push 6
call fcn.004024a0
add esp, 0x18
pop edi
xor al, al
pop esi
pop ebp
ret
cmp dword [section..data], 4
ja 0x4043c2
push 0x5c
push str.main.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x4043a2
inc eax
jmp 0x4043a7
mov eax, str.main.cpp
push esi
push str.file:__s
push 0xea
push eax
push str.RsupS
push 4
call fcn.004024a0
add esp, 0x18
pop edi
mov al, 1
pop esi
pop ebp
ret

Function at 0x4045a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov dword [esi + 0x110], 4
mov dword [esi + 0x114], 4
mov dword [esi + 0x108], 0
mov dword [esi + 0x104], 0
call fcn.00406c90
add eax, 0xfffb0000
cmp eax, 0xffff
ja 0x4046c2
push 0
push 0
mov ecx, esi
call fcn.00404990
test eax, eax
je 0x404641
cmp dword [section..data], 3
ja 0x4046c2
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x404612
inc eax
jmp 0x404617
mov eax, str.DrvInstPolicy.cpp
push dword [esi + 0x114]
push dword [esi + 0x110]
push str.old._d._d
push 0xa1
push eax
push str.RsupS
push 3
call fcn.004024a0
add esp, 0x1c
mov eax, esi
pop esi
ret
push 0x104
push 0
push esi
call fcn.00407e30
push esi
call fcn.00404780
add esp, 0x10
test eax, eax
je 0x4046c2
cmp dword [section..data], 3
ja 0x40468c
push esi
push str.sign_dialog:__s
push 0xa9
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
push 3
call fcn.004024a0
add esp, 0x18
push str.ssde
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x104], eax
lea eax, [esi + 0x10c]
push eax
push 0
push esi
push 0x404ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x108], eax
mov eax, esi
pop esi
ret
Function at 0x4046d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x110]
cmp eax, 4
je 0x4046e2
test eax, eax
jne 0x4046f1
mov ecx, dword [esi + 0x114]
cmp ecx, 4
je 0x4046ff
test ecx, ecx
je 0x4046ff
push dword [esi + 0x114]
mov ecx, esi
push eax
call fcn.00404990
cmp dword [esi + 0x108], 0
je 0x40474a
push dword [esi + 0x104]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404734
push 0xffffffffffffffff
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x108], 0
mov eax, dword [esi + 0x104]
test eax, eax
je 0x404765
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x104], 0
pop esi
ret