joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406749
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004063f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4067e4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42c89c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4067e4
cmp eax, 1
je 0x406805
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4067e4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4067b1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4067e0
xor eax, eax
inc eax
jmp 0x406824
cmp edi, eax
jae 0x4067e8
xor eax, eax
jmp 0x406824
cmp eax, esi
jae 0x4067ef
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42c89c]
jmp 0x406808
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4075ac
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4225e0
call fcn.0040682c
push 8
call fcn.00407dd8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42c8dc], esi
jne 0x4075e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42c8d8], esi
mov al, byte [ebp + 0x10]
mov byte [0x42c8d4], al
cmp dword [ebp + 0xc], edi
jne 0x40762a
cmp dword [0x42e268], edi
je 0x40761a
mov eax, dword [0x42e264]
sub eax, 4
mov dword [0x42e264], eax
cmp eax, dword [0x42e268]
jb 0x40761a
mov eax, dword [eax]
cmp eax, edi
je 0x4075fb
call eax
jmp 0x4075fb
push 0x429084
mov eax, 0x42907c
call fcn.0040752a
pop ecx
push 0x429090
mov eax, 0x429088
call fcn.0040752a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40765b
cmp dword [ebp + 0x10], edi
jne 0x407669
mov dword [0x42c8dc], esi
push dword [ebp + 8]
call fcn.004074e8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x407668
push 8
call fcn.00407d23
pop ecx
ret
call fcn.00406867
ret
Function at 0x40a8cc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x429874]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x429e20]
je 0x40a901
inc eax
cmp eax, 0x13
jb 0x40a8f2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x429e20]
jne 0x40aa27
mov eax, dword [0x42c888]
cmp eax, 1
je 0x40a9ff
cmp eax, edx
jne 0x40a931
cmp dword [0x429884], 1
je 0x40a9ff
cmp ecx, 0xfc
je 0x40aa27
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a967
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00409660
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406d30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a99b
mov eax, edi
push eax
call fcn.00406d30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42270c
push edi
call fcn.0040c970
add esp, 0x10
push edi
call fcn.00406d30
push dword [esi + 0x429e24]
mov ebx, eax
call fcn.00406d30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004063f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409660
push edi
push ebx
call fcn.00409670
push 0x422708
push ebx
call fcn.00409670
push dword [esi + 0x429e24]
push ebx
call fcn.00409670
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c875
add esp, 0x2c
jmp 0x40aa27
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x429e24]
push dword [esi]
call fcn.00406d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040612e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40b25d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b28b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40b292
cmp ebx, dword [eax + 4]
jae 0x40b292
xor eax, eax
jmp 0x40b482
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b2a3
xor eax, eax
inc eax
jmp 0x40b481
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b2b9
cmp ecx, edx
jae 0x40b3fe
cmp dword [eax + 4], 0
je 0x40b2c2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b2aa
cmp dword [ebp + 8], 0
je 0x40b2e4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b3fe
cmp eax, esi
jae 0x40b3fe
mov eax, dword [0x42cb80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b309
cmp dword [esi*4 + 0x42cb88], edi
je 0x40b402
inc esi
cmp esi, eax
jl 0x40b2f7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b47e
cmp dword [ebp - 8], 0x1000000
jne 0x40b47e
test byte [ebp - 0xc], 0xcc
je 0x40b387
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b47e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b47e
cmp word [eax + 0x18], 0x10b
jne 0x40b47e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b47e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b387
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b387
test byte [ecx + 0x27], 0x80
jne 0x40b3fe
push 1
push 0x42cbc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b29b
mov ecx, dword [0x42cb80]
test ecx, ecx
mov edx, ecx
jle 0x40b3bb
lea eax, [ecx*4 + 0x42cb84]
cmp dword [eax], edi
je 0x40b3bb
dec edx
sub eax, 4
test edx, edx
jg 0x40b3af
test edx, edx
jne 0x40b3ec
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b3c8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b3e0
lea eax, [edx*4 + 0x42cb88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b3ce
cmp ecx, 0x10
jge 0x40b3ec
inc ecx
mov dword [0x42cb80], ecx
push 0
push 0x42cbc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b29b
xor eax, eax
jmp 0x40b481
test esi, esi
jle 0x40b29b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42cbc8
call ebx
test eax, eax
jne 0x40b29b
cmp dword [esi*4 + 0x42cb88], edi
je 0x40b458
mov eax, dword [0x42cb80]
lea esi, [eax - 1]
test esi, esi
jl 0x40b446
cmp dword [esi*4 + 0x42cb88], edi
je 0x40b442
dec esi
jns 0x40b436
test esi, esi
jge 0x40b456
cmp eax, 0x10
jge 0x40b451
inc eax
mov dword [0x42cb80], eax
lea esi, [eax - 1]
jmp 0x40b458
je 0x40b470
xor ecx, ecx
test esi, esi
jl 0x40b470
lea eax, [ecx*4 + 0x42cb88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b45e
push 0
push 0x42cbc8
call ebx
jmp 0x40b29b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c875
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42ccd4], ebx
push esi
push edi
jne 0x40c8f5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c930
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x423084
push edi
call esi
test eax, eax
mov dword [0x42ccd4], eax
je 0x40c930
push str.GetActiveWindow
push edi
call esi
push 0x423060
push edi
mov dword [0x42ccd8], eax
call esi
cmp dword [0x42c89c], 2
mov dword [0x42ccdc], eax
jne 0x40c8f5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42cce4], eax
je 0x40c8f5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42cce0], eax
mov eax, dword [0x42cce0]
test eax, eax
je 0x40c93a
call eax
test eax, eax
je 0x40c921
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42cce4]
test eax, eax
je 0x40c921
test byte [ebp - 8], 1
jne 0x40c93a
cmp dword [0x42c8a8], 4
jb 0x40c934
or byte [ebp + 0x12], 0x20
jmp 0x40c959
xor eax, eax
jmp 0x40c969
or byte [ebp + 0x12], 4
jmp 0x40c959
mov eax, dword [0x42ccd8]
test eax, eax
je 0x40c959
call eax
mov ebx, eax
test ebx, ebx
je 0x40c959
mov eax, dword [0x42ccdc]
test eax, eax
je 0x40c959
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42ccd4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e3ff
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x429874]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40e430
xor eax, eax
jmp 0x40e5b9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42df00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40e46c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040f777
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40e547
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40e585
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40e4d0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40e4c1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40e4a1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e510
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40e519
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40e492
jmp 0x40e51b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40e5b4
cmp dword [ebp - 0x6c], edi
je 0x40e585
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40e57a
call fcn.00407c00
mov dword [eax], 9
call fcn.00407c09
mov dword [eax], esi
jmp 0x40e5af
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e56f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40e51b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40e51b
push dword [ebp - 0x6c]
call fcn.00407c12
pop ecx
jmp 0x40e5af
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40e59d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40e59d
xor eax, eax
jmp 0x40e5b7
call fcn.00407c00
mov dword [eax], 0x1c
call fcn.00407c09
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40e5b7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040612e
add ebp, 0x3a0
leave
ret
Function at 0x410278
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x424570
call fcn.0040682c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x42cd5c], edi
jne 0x4102bc
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4102a7
mov dword [0x42cd5c], ebx
jmp 0x4102bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4102bc
mov dword [0x42cd5c], 2
mov eax, dword [0x42cd5c]
cmp eax, ebx
jne 0x4102dc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41039f
cmp eax, 2
je 0x4102e5
cmp eax, edi
jne 0x41030d
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4102f8
mov eax, dword [0x42cbe4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x410314
xor eax, eax
jmp 0x41039f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004063f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x410347
cmp esi, edi
jne 0x41035d
push dword [ebp - 0x20]
call fcn.004059e4
pop ecx
mov esi, eax
cmp esi, edi
je 0x41030d
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x410390
cmp dword [ebp + 0x14], edi
jne 0x41037a
push edi
push edi
jmp 0x410380
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x41039c
push esi
call fcn.004059f6
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00406867
ret
Function at 0x4103a8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x424580
call fcn.0040682c
xor esi, esi
cmp dword [0x42cd60], esi
jne 0x4103ec
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4103d7
mov dword [0x42cd60], edi
jmp 0x4103ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4103ec
mov dword [0x42cd60], 2
mov eax, dword [0x42cd60]
cmp eax, 2
je 0x4104cd
cmp eax, esi
je 0x4104cd
cmp eax, 1
jne 0x410431
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41041a
mov eax, dword [0x42cbe4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x410438
xor eax, eax
jmp 0x4104df
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004063f0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41046e
cmp edi, esi
jne 0x410489
lea eax, [ebx + ebx]
push eax
call fcn.004059e4
pop ecx
mov edi, eax
cmp edi, esi
je 0x410431
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4104bc
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4104a6
push esi
push esi
jmp 0x4104ac
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4104c8
push edi
call fcn.004059f6
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4104df
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00406867
ret
Function at 0x4181f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x420dde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], 0x424c64
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x24]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x1c], 2
mov dword [esp + 0x24], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x418257
sub eax, dword [esp + 0x24]
push eax
push ebp
call fcn.00401480
mov edx, dword [esp + 0x28]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418272
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00401480
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x418400
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420e1b
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
push ebx
mov ecx, esi
call fcn.004173c0
test eax, eax
je 0x41845d
mov esi, dword [esp + 0x20]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418436
sub ecx, edi
push ecx
push esi
lea ecx, [eax + 0x30]
call fcn.00401480
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0x54
call fcn.0041a1dd
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x418486
mov ecx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, eax
call fcn.004181f0
jmp 0x418488
xor eax, eax
test eax, eax
mov dword [esp + 0x14], 0xffffffff
je 0x4184ba
mov dword [eax + 0x50], esi
mov edx, dword [esi + 0x4c]
mov dword [eax + 0x4c], edx
mov ecx, dword [esi + 0x4c]
mov dword [ecx + 0x50], eax
mov dword [esi + 0x4c], eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
test edi, edi
mov ecx, edi
je 0x4184ef
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4184e2
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x4184c0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0
push 0
push 0
push 3
call fcn.00414420
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x41e068
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x429874]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x41e0b7
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41e0b7
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41e0c3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040612e
leave
ret 8

Function at 0x41edbf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41edf4
cmp edi, dword [esi + 0xc]
jge 0x41edf4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41edf4
cmp edi, dword [eax + 8]
jge 0x41edf4
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41edf6
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41eea2
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41eed6
jmp fcn.00419c6f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x41ef47
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41f040
cmp eax, dword [edi + 0xc]
jge 0x41f040
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41ef98
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41f029
cmp dword [ebp + 0xc], ebx
je 0x41f029
jmp 0x41efc2
push 0x10
call fcn.0041ec8b
cmp eax, ebx
je 0x41efae
mov ecx, eax
call fcn.0041ee99
mov esi, eax
jmp 0x41efb0
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41efd9
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41efe9
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41effb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00419c6f
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00406990
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41f03b
cmp ecx, dword [esi + 8]
jge 0x41f03b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41f041
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8