joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
push edi
lea ecx, [ebp - 0x2cc]
mov edi, 0x409378
push esi
mov esi, 0x40ca80
push ebx
sub esp, 0x2ec
mov ebx, 0x410618
mov dword [ebp - 0x2b4], esi
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2d0], edx
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], edi
lea edi, [ebp - 0x58]
mov dword [esp], ecx
mov dword [ebp - 0x2a4], esp
call fcn.0040f470
cld
mov ebx, dword [ebp - 0x2d0]
xor edx, edx
xor eax, eax
mov ecx, 0xf
mov dword [ebx + 0x6b34], edx
lea edx, [ebp - 0x3c]
mov dword [ebx + 0x6b38], esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x58], 0x19
mov ecx, str.Arial
mov eax, 1
mov dword [ebp - 0x48], 0x190
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [ebp - 0x2c8], eax
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
lea ecx, [ebp - 0x58]
mov dword [esp], ecx
call sub.GDI32.dll_CreateFontIndirectA
cld
mov esi, dword [ebp - 0x2d0]
mov ecx, 0xf
lea edi, [ebp - 0x98]
sub esp, 4
mov ebx, 0xfffffff1
mov dword [esi + 0x66b4], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x98], ebx
mov eax, 0x2bc
lea edi, [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x83], 0
mov byte [ebp - 0x84], 1
mov dword [esp], edi
call sub.GDI32.dll_CreateFontIndirectA
mov edi, dword [ebp - 0x2d0]
mov ecx, 2
sub esp, 4
mov ebx, str.nom_du_quizz
mov edx, edi
add edx, 0xc
mov dword [edi + 0x66b8], eax
mov dword [edi + 0x66a8], ecx
mov dword [edi + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edx
call sub.KERNEL32.dll_lstrcpyA
mov eax, edi
sub esp, 8
mov esi, str._createur
mov dword [esp + 4], esi
add eax, 0x110
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
mov eax, 2
mov ecx, 0x5a
mov ebx, 0x5f
mov dword [edi + 0x520], eax
mov edx, 0x96
sub esp, 8
mov dword [edi + 0x68c4], ecx
mov dword [edi + 0x68cc], ebx
mov dword [edi + 0x68c8], edx
mov dword [esp], 0x965f5a
call sub.GDI32.dll_CreateSolidBrush
mov dword [edi + 0x68d4], eax
mov ecx, 1
mov eax, 0xff6633
mov dword [edi + 0x68d0], eax
xor ebx, ebx
xor edx, edx
mov dword [edi + 0x524], ecx
xor esi, esi
sub esp, 4
mov dword [edi + 0x66a8], ebx
xor eax, eax
mov dword [edi + 0x66ac], edx
mov dword [edi + 0x66bc], esi
nop
lea esi, [esi]
mov edi, dword [ebp - 0x2d0]
xor esi, esi
mov dword [edi + eax*4 + 0x6744], esi
inc eax
cmp eax, 0xc7
jle 0x4092c0
mov dword [esp], 0xff
mov edx, 1
mov dword [ebp - 0x2c8], edx
call sub.GDI32.dll_CreateSolidBrush
mov edi, dword [ebp - 0x2d0]
sub esp, 4
mov dword [edi + 0x68dc], eax
mov dword [esp], 0x64ff
call sub.GDI32.dll_CreateSolidBrush
mov dword [edi + 0x68e0], eax
sub esp, 4
mov dword [esp], 0x26cbff
call sub.GDI32.dll_CreateSolidBrush
mov dword [edi + 0x68e4], eax
sub esp, 4
mov dword [esp], 0xc0ffff
call sub.GDI32.dll_CreateSolidBrush
mov dword [edi + 0x68e8], eax
mov ecx, 0x14000a
mov ebx, edi
mov dword [edi + 0x68d8], ecx
sub esp, 4
add ebx, 0x68f0
mov dword [esp + 4], ebx
mov dword [esp], 0x100
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
lea eax, [ebp - 0x2cc]
mov dword [esp], eax
call fcn.0040f550
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 0x1c], eax
sub esp, 8
test eax, eax
je 0x409cfd
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
mov ebx, eax
mov dword [esp + 4], edi
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
call sub.KERNEL32.dll_SizeofResource
sub esp, 8
mov esi, eax
xor ecx, ecx
jmp 0x409ca2
movzx eax, byte [ecx + ebx]
mov edx, eax
shr edx, 4
shl al, 4
add al, dl
mov byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jl 0x409c90
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_SizeofResource
mov edi, dword [ebp - 0x18]
sub esp, 8
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00409920
mov esi, dword [ebp - 0x1c]
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_FreeResource
mov dword [ebp + 8], edi
mov ebx, dword [ebp - 0x18]
sub esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004096f0
mov dword [esp], 0
call sub.KERNEL32.dll_FreeResource
mov edi, dword [ebp - 0x18]
sub esp, 4
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
call fcn.00409b20
mov dword [ebp + 8], eax
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004096f0
Function at 0x40a870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x40a883
cmp dword [esi + 0x2b], 0
je 0x40a891
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x40a91a
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
or eax, eax
jne 0x40a8b5
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x40a91a
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop ecx
or eax, eax
jne 0x40a8d0
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x40a91a
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
or eax, eax
jne 0x40a8ef
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x40a91a
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.0040abe0
or eax, eax
jne 0x40a90e
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x40a91a
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40e7d0
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 0x40e806
mov dword [0x417c40], eax
mov edx, 0x40e7b0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040f050
test eax, eax
sete al
movzx eax, al
mov dword [0x4112b0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x4112b0], eax
leave
ret
Function at 0x40e8f0
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], 0x40ca80
mov dword [ebp - 0x24], 0x410698
mov dword [ebp - 0x1c], 0x40e9b0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040f470
cmp dword [0x4112b0], 0
mov dword [ebp - 0x44], 0x417c50
je 0x40e990
jl 0x40e9d0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x417c40]
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 0x40ea73
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040f550
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 [0x417ca0]
mov eax, 0xffffffff
test edx, edx
je 0x40e9ea
mov eax, dword [0x4112b4]
test eax, eax
je 0x40ea2a
xor eax, eax
test eax, eax
jne 0x40ea20
mov edi, dword [0x4112b0]
test edi, edi
js 0x40ea20
mov dword [ebp - 0x44], 0x417c50
mov ebx, dword [0x4112b0]
test ebx, ebx
je 0x40e990
jmp 0x40e93e
xor esi, esi
mov dword [0x4112b0], esi
jmp 0x40e9f8
mov dword [esp], 0x4112b8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x40eab1
mov eax, dword [0x4112b4]
test eax, eax
jne 0x40e9e8
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 [0x4112b4]
test eax, eax
je 0x40ea4d
jmp 0x40e9e8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40eaa5
mov dword [esp + 4], eax
mov eax, dword [0x417c40]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40eada
test edx, edx
je 0x40eac5
mov dword [ebp - 0x3c], 1
call fcn.0040e350
call fcn.0040e7d0
mov eax, 1
mov dword [0x4112b4], eax
jmp 0x40e9e8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x40e986
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x40eaa1
Function at 0x40ed40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040fec0
call fcn.0040eef0
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 0x40ed78
jmp 0x40ee14
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ed77
cmp cl, 0x22
je 0x40edd0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40edf0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40edf0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40edb0
jmp 0x40edf0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40edd0
cmp cl, 0x22
je 0x40ee50
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ee0e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x40ee00
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ee32
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401420
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40edf0

Function at 0x40f360
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x417cf0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40f3a0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040f050
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 0x40f750
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 [0x417cf0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40f82c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40f841
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40f800
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40f798
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40f7a8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40f7f3
test edx, edx
jne 0x40f7e6
test ecx, ecx
je 0x40f790
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 0x40f850
cmp eax, 8
je 0x40f790
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 0x40f782
call fcn.0040f120
mov eax, dword [0x417cf0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40f774
call fcn.0040f3c0
mov eax, dword [0x417cf0]
jmp 0x40f774
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.0040f6c0
cmp eax, 7
jne 0x40f7eb
mov eax, dword [0x417cf0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40f8a3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40f8ce
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40f8af
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.0040f120
mov eax, dword [0x417cf0]
jmp 0x40f881
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 0x40f892
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f892
call fcn.0040f3c0
mov eax, dword [0x417cf0]
jmp 0x40f888
Function at 0x40fb30
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 [0x417cf0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40fbc4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40fbe0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40fc00
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40fbb8
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040f6c0
cmp eax, 7
jne 0x40fc7f
mov eax, dword [0x417cf0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40fc56
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40fc70
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40fc30
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.0040f8e0
jmp 0x40fb75
call fcn.0040f120
mov eax, dword [0x417cf0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40fb50
lea esi, [esi]
call fcn.0040f3c0
mov eax, dword [0x417cf0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40fb5b
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 0x40fb5e
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 0x40fba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fba7
call fcn.0040f120
mov eax, dword [0x417cf0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40fb99
nop
lea esi, [esi]
call fcn.0040f3c0
mov eax, dword [0x417cf0]
jmp 0x40fb99
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40fc90
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 0x40fd22
mov eax, dword [0x417cf0]
test eax, eax
je 0x40fd16
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40fd91
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40fd37
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040f8e0
cmp eax, 7
jne 0x40fdaf
mov eax, dword [0x417cf0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40fd82
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40fda0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40fd63
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.0040f120
mov eax, dword [0x417cf0]
jmp 0x40fcb2
mov dword [esp], edi
call fcn.0040f750
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 0x40fcc7
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 0x40fd05
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fd05
call fcn.0040f120
mov eax, dword [0x417cf0]
jmp 0x40fcf0
call fcn.0040f3c0
mov eax, dword [0x417cf0]
jmp 0x40fcbd
call fcn.0040f3c0
mov eax, dword [0x417cf0]
jmp 0x40fcfb
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4033b5
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x440af8], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4033f5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4363c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4363cc]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004033ae
mov eax, dword [str.SJk]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4363d4]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x440af8], 0xc
mov dword [ebp - 4], eax
jne 0x40348b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x440af8]
cmp eax, 0xfa9
jne 0x4034a7
mov dword [0x440094], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4034b4
mov dword [0x43fa40], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x440090], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x440af8], 0x213
mov dword [ebp - 0x14], edx
jne 0x4034ee
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004033a8
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403431
cmp dword [0x440af8], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403557
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x403560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x440af8]
mov ecx, dword [0x43fa48]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035d4
mov edi, ecx
mov ebx, eax
cmp dword [0x440af8], 0x959
jne 0x4035c8
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402d68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004033b5
add edi, 8
dec ebx
jne 0x403584
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038ee
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x440af8], 0x400
push edi
jne 0x403940
push esi
push esi
call fcn.00403d7b
push esi
push esi
call fcn.00403d7b
push esi
push esi
push esi
call fcn.00404363
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403323
fstp st(0)
push esi
call fcn.00404419
pop ecx
push esi
call fcn.0040417a
pop ecx
mov eax, dword [0x436a54]
mov dword [0x440af8], eax
mov eax, dword [0x436a2c]
mov dword [0x440afc], eax
call fcn.004035f3
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x4039a7
cmp dword [esp + 0x18], 0x785074d5
jne 0x4039b5
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403962
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x403080
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x4039e6
cmp dword [esp + 0x18], 0x785074d5
jne 0x4039ef
inc edi
cmp edi, 0x11915
jl 0x4039b7
mov eax, dword [0x43fa48]
mov dword [0x44008c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404d90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4350f8]
jne 0x404d9a
repz ret
jmp fcn.00408bb2