joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac3f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42a874]
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 + 0x42ae20]
je 0x40ac74
inc eax
cmp eax, 0x13
jb 0x40ac65
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42ae20]
jne 0x40ad9a
mov eax, dword [0x42d888]
cmp eax, 1
je 0x40ad72
cmp eax, edx
jne 0x40aca4
cmp dword [0x42a884], 1
je 0x40ad72
cmp ecx, 0xfc
je 0x40ad9a
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 0x40acda
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004099d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004070a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40ad0e
mov eax, edi
push eax
call fcn.004070a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42372c
push edi
call fcn.0040cce0
add esp, 0x10
push edi
call fcn.004070a0
push dword [esi + 0x42ae24]
mov ebx, eax
call fcn.004070a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406760
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004099d0
push edi
push ebx
call fcn.004099e0
push 0x423728
push ebx
call fcn.004099e0
push dword [esi + 0x42ae24]
push ebx
call fcn.004099e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040cbe5
add esp, 0x2c
jmp 0x40ad9a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42ae24]
push dword [esi]
call fcn.004070a0
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.0040649e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40b5d0
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 0x40b5fe
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 0x40b605
cmp ebx, dword [eax + 4]
jae 0x40b605
xor eax, eax
jmp 0x40b7f5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b616
xor eax, eax
inc eax
jmp 0x40b7f4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b62c
cmp ecx, edx
jae 0x40b771
cmp dword [eax + 4], 0
je 0x40b635
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b61d
cmp dword [ebp + 8], 0
je 0x40b657
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b771
cmp eax, esi
jae 0x40b771
mov eax, dword [0x42db80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b67c
cmp dword [esi*4 + 0x42db88], edi
je 0x40b775
inc esi
cmp esi, eax
jl 0x40b66a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b7f1
cmp dword [ebp - 8], 0x1000000
jne 0x40b7f1
test byte [ebp - 0xc], 0xcc
je 0x40b6fa
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b7f1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b7f1
cmp word [eax + 0x18], 0x10b
jne 0x40b7f1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b7f1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b6fa
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b6fa
test byte [ecx + 0x27], 0x80
jne 0x40b771
push 1
push 0x42dbc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b60e
mov ecx, dword [0x42db80]
test ecx, ecx
mov edx, ecx
jle 0x40b72e
lea eax, [ecx*4 + 0x42db84]
cmp dword [eax], edi
je 0x40b72e
dec edx
sub eax, 4
test edx, edx
jg 0x40b722
test edx, edx
jne 0x40b75f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b73b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b753
lea eax, [edx*4 + 0x42db88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b741
cmp ecx, 0x10
jge 0x40b75f
inc ecx
mov dword [0x42db80], ecx
push 0
push 0x42dbc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b60e
xor eax, eax
jmp 0x40b7f4
test esi, esi
jle 0x40b60e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42dbc8
call ebx
test eax, eax
jne 0x40b60e
cmp dword [esi*4 + 0x42db88], edi
je 0x40b7cb
mov eax, dword [0x42db80]
lea esi, [eax - 1]
test esi, esi
jl 0x40b7b9
cmp dword [esi*4 + 0x42db88], edi
je 0x40b7b5
dec esi
jns 0x40b7a9
test esi, esi
jge 0x40b7c9
cmp eax, 0x10
jge 0x40b7c4
inc eax
mov dword [0x42db80], eax
lea esi, [eax - 1]
jmp 0x40b7cb
je 0x40b7e3
xor ecx, ecx
test esi, esi
jl 0x40b7e3
lea eax, [ecx*4 + 0x42db88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b7d1
push 0
push 0x42dbc8
call ebx
jmp 0x40b60e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cbe5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42dcd4], ebx
push esi
push edi
jne 0x40cc65
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40cca0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4240a4
push edi
call esi
test eax, eax
mov dword [0x42dcd4], eax
je 0x40cca0
push str.GetActiveWindow
push edi
call esi
push 0x424080
push edi
mov dword [0x42dcd8], eax
call esi
cmp dword [0x42d89c], 2
mov dword [0x42dcdc], eax
jne 0x40cc65
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42dce4], eax
je 0x40cc65
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42dce0], eax
mov eax, dword [0x42dce0]
test eax, eax
je 0x40ccaa
call eax
test eax, eax
je 0x40cc91
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42dce4]
test eax, eax
je 0x40cc91
test byte [ebp - 8], 1
jne 0x40ccaa
cmp dword [0x42d8a8], 4
jb 0x40cca4
or byte [ebp + 0x12], 0x20
jmp 0x40ccc9
xor eax, eax
jmp 0x40ccd9
or byte [ebp + 0x12], 4
jmp 0x40ccc9
mov eax, dword [0x42dcd8]
test eax, eax
je 0x40ccc9
call eax
mov ebx, eax
test ebx, ebx
je 0x40ccc9
mov eax, dword [0x42dcdc]
test eax, eax
je 0x40ccc9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42dcd4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e75f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42a874]
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 0x40e790
xor eax, eax
jmp 0x40e919
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 + 0x42ef00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40e7cc
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040fad7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40e8a7
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40e8e5
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 0x40e830
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40e821
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 0x40e801
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 0x40e870
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40e879
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40e7f2
jmp 0x40e87b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40e914
cmp dword [ebp - 0x6c], edi
je 0x40e8e5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40e8da
call fcn.00407f70
mov dword [eax], 9
call fcn.00407f79
mov dword [eax], esi
jmp 0x40e90f
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 0x40e8cf
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40e87b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40e87b
push dword [ebp - 0x6c]
call fcn.00407f82
pop ecx
jmp 0x40e90f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40e8fd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40e8fd
xor eax, eax
jmp 0x40e917
call fcn.00407f70
mov dword [eax], 0x1c
call fcn.00407f79
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40e917
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040649e
add ebp, 0x3a0
leave
ret
Function at 0x4105d8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x425590
call fcn.00406b9c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x42dd5c], edi
jne 0x41061c
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x410607
mov dword [0x42dd5c], ebx
jmp 0x41061c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41061c
mov dword [0x42dd5c], 2
mov eax, dword [0x42dd5c]
cmp eax, ebx
jne 0x41063c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4106ff
cmp eax, 2
je 0x410645
cmp eax, edi
jne 0x41066d
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x410658
mov eax, dword [0x42dbe4]
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 0x410674
xor eax, eax
jmp 0x4106ff
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00406760
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4106a7
cmp esi, edi
jne 0x4106bd
push dword [ebp - 0x20]
call fcn.00405d54
pop ecx
mov esi, eax
cmp esi, edi
je 0x41066d
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 0x4106f0
cmp dword [ebp + 0x14], edi
jne 0x4106da
push edi
push edi
jmp 0x4106e0
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 0x4106fc
push esi
call fcn.00405d66
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00406bd7
ret
Function at 0x410708
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4255a0
call fcn.00406b9c
xor esi, esi
cmp dword [0x42dd60], esi
jne 0x41074c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x410737
mov dword [0x42dd60], edi
jmp 0x41074c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41074c
mov dword [0x42dd60], 2
mov eax, dword [0x42dd60]
cmp eax, 2
je 0x41082d
cmp eax, esi
je 0x41082d
cmp eax, 1
jne 0x410791
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41077a
mov eax, dword [0x42dbe4]
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 0x410798
xor eax, eax
jmp 0x41083f
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00406760
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4107ce
cmp edi, esi
jne 0x4107e9
lea eax, [ebx + ebx]
push eax
call fcn.00405d54
pop ecx
mov edi, eax
cmp edi, esi
je 0x410791
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 0x41081c
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x410806
push esi
push esi
jmp 0x41080c
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 0x410828
push edi
call fcn.00405d66
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41083f
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.00406bd7
ret
Function at 0x412720
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x420d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x42a874]
push ebx
push ebp
push esi
mov dword [esp + 0x30], eax
push edi
mov esi, ecx
xor ebx, ebx
push 0x37
mov edi, 0xf
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.004014c0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.00411130
mov eax, dword [esp + 0x30]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x1c]
jae 0x41279d
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4127fd
cmp dword [esp + 0x30], ebp
jb 0x4127d3
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a53d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4128c8
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a53d
add esp, 4
xor al, al
jmp 0x41290a
cmp dword [esp + 0x60], ebp
mov eax, dword [esp + 0x4c]
jae 0x41280b
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x5c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edx
push eax
mov eax, dword [esp + 0x18]
push 2
push ebx
push str.EventMessageFile
push eax
call edi
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x412872
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], ebp
jb 0x412848
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041a53d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4128c8
mov eax, dword [esp + 0x4c]
push eax
call fcn.0041a53d
add esp, 4
xor al, al
jmp 0x41290a
push 4
add esi, 0x1c
push esi
push 4
push ebx
push str.TypesSupported
push ecx
call edi
test eax, eax
mov edx, dword [esp + 0x10]
push edx
je 0x4128cc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], ebp
jb 0x4128a5
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a53d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4128c8
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a53d
add esp, 4
xor al, al
jmp 0x41290a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], ebp
jb 0x4128e5
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a53d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x412908
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a53d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
call fcn.0040649e
add esp, 0x34
ret 0x1c
Function at 0x418520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42110e
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], 0x425c84
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 0x418587
sub eax, dword [esp + 0x24]
push eax
push ebp
call fcn.004014c0
mov edx, dword [esp + 0x28]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4185a2
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.004014c0
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 0x418730
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42112b
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.004176f0
test eax, eax
je 0x41878d
mov esi, dword [esp + 0x20]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418766
sub ecx, edi
push ecx
push esi
lea ecx, [eax + 0x30]
call fcn.004014c0
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.0041a50d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x4187b6
mov ecx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, eax
call fcn.00418520
jmp 0x4187b8
xor eax, eax
test eax, eax
mov dword [esp + 0x14], 0xffffffff
je 0x4187ea
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 0x41881f
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x418812
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x4187f0
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.00414750
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x41e398
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42a874]
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 0x41e3e7
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41e3e7
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41e3f3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040649e
leave
ret 8

Function at 0x41f0ef
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 0x41f124
cmp edi, dword [esi + 0xc]
jge 0x41f124
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f124
cmp edi, dword [eax + 8]
jge 0x41f124
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41f126
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 0x41f1d2
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 0x41f206
jmp fcn.00419f9f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x41f277
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 0x41f370
cmp eax, dword [edi + 0xc]
jge 0x41f370
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41f2c8
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41f359
cmp dword [ebp + 0xc], ebx
je 0x41f359
jmp 0x41f2f2
push 0x10
call fcn.0041efbb
cmp eax, ebx
je 0x41f2de
mov ecx, eax
call fcn.0041f1c9
mov esi, eax
jmp 0x41f2e0
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 0x41f309
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41f319
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 0x41f32b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00419f9f
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.00406d00
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 0x41f36b
cmp ecx, dword [esi + 8]
jge 0x41f36b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41f371
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8