joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e00
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b630
push 0x409d24
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4423b4], eax
xor eax, eax
mov al, byte [0x4423b5]
mov dword [0x4423c0], eax
mov eax, dword [0x4423b4]
shr dword [0x4423b4], 0x10
and eax, 0xff
mov dword [0x4423bc], eax
shl eax, 8
add eax, dword [0x4423c0]
mov dword [0x4423b8], eax
call fcn.0040e150
test eax, eax
jne 0x409e74
push 0x1c
call fcn.00409fb0
add esp, 4
call fcn.0040c6a0
test eax, eax
jne 0x409e87
push 0x10
call fcn.00409fb0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040df70
call fcn.0040b3c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4476b8], eax
call fcn.0040dde0
mov dword [0x442380], eax
test eax, eax
je 0x409eba
cmp dword [0x4476b8], 0
jne 0x409ec4
push 0xffffffffffffffff
call fcn.0040a210
add esp, 4
call fcn.0040db70
call fcn.0040da80
call fcn.0040a1e0
mov esi, dword [0x4476b8]
mov al, byte [esi]
cmp al, 0x22
je 0x409eeb
cmp al, 0x20
jbe 0x409f18
inc esi
cmp byte [esi], 0x20
ja 0x409ee3
jmp 0x409f18
inc esi
cmp byte [esi], 0x22
je 0x409f17
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x409f12
xor eax, eax
mov al, bl
push eax
call fcn.0040da20
add esp, 4
test eax, eax
je 0x409f0c
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x409ef4
cmp byte [esi], 0x22
jne 0x409f18
inc esi
cmp byte [esi], 0
je 0x409f28
cmp byte [esi], 0x20
ja 0x409f28
inc esi
cmp byte [esi], 0
jne 0x409f1d
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x409f4c
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040a210
jmp 0x409f8d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a250
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.0040a310
cmp dword [0x4423f0], 1
mov esi, dword [esp + 0x10]
jne 0x40a273
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4423ec], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4423e8], bl
jne 0x40a2cd
cmp dword [0x4476b0], 0
je 0x40a2bb
mov edi, dword [0x4476ac]
sub edi, 4
cmp edi, dword [0x4476b0]
jb 0x40a2bb
mov eax, dword [edi]
test eax, eax
je 0x40a2b0
call eax
sub edi, 4
cmp edi, dword [0x4476b0]
jae 0x40a2a8
push 0x44108c
push 0x441084
call fcn.0040a330
add esp, 8
push 0x441094
push 0x441090
call fcn.0040a330
add esp, 8
test ebx, ebx
je 0x40a2ec
call fcn.0040a320
pop edi
pop esi
pop ebx
ret
mov dword [0x4423f0], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40c6a0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040d3a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x442880], eax
cmp eax, 0xffffffff
jne 0x40c6ba
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.0040ad20
add esp, 8
mov esi, eax
test esi, esi
je 0x40c6fc
push esi
mov eax, dword [0x442880]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40c6fc
push esi
call fcn.0040c700
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40c720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x442880]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40c783
push 0x74
push 1
call fcn.0040ad20
add esp, 8
mov edi, eax
test edi, edi
je 0x40c779
push edi
mov eax, dword [0x442880]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40c779
push edi
call fcn.0040c700
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x40c783
push 0x10
call fcn.00409fb0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40dde0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x442b74], ebx
jne 0x40de2f
call esi
cmp eax, ebx
mov edi, eax
je 0x40de0d
mov dword [0x442b74], 1
jmp 0x40de2f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x40de25
mov dword [0x442b74], 2
jmp 0x40de2f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x442b74], 1
jne 0x40dede
test edi, edi
jne 0x40de52
call esi
mov edi, eax
test edi, edi
jne 0x40de52
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x40de6c
add esi, 2
cmp word [esi], 0
jne 0x40de5a
add esi, 2
cmp word [esi], 0
jne 0x40de5a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40decd
push ebp
call fcn.0040a470
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40decd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40debc
push ebx
call fcn.0040a350
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x442b74], 2
jne 0x40df62
test ebx, ebx
jne 0x40df01
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x40df01
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x40df16
inc ebp
cmp byte [ebp], 0
jne 0x40df08
inc ebp
cmp byte [ebp], 0
jne 0x40df08
sub ebp, ebx
inc ebp
push ebp
call fcn.0040a470
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40df3b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x40e1d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x442ba0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x40e1f7
add eax, 8
inc ecx
cmp eax, 0x442c30
jb 0x40e1e8
cmp dword [ecx*8 + 0x442ba0], edx
lea ebx, [ecx*8]
jne 0x40e3bb
cmp dword [0x44238c], 1
je 0x40e377
cmp dword [0x44238c], 0
jne 0x40e22e
cmp dword [0x442390], 1
je 0x40e377
cmp edx, 0xfc
je 0x40e3bb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40e26b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40e2af
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x43bb90
push ebp
call fcn.00409b50
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43bb70
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x442ba4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00411300
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4475a0], 0
je 0x40e38d
mov eax, dword [0x4475a0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40e397
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x442ba4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x40fcb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x40fcd8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x4475a0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x40fd19
push 2
push 0
push edx
call fcn.0040ff30
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x40fdb5
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40fdee
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40fd7c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x40fd6a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x40fd51
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fde4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x40fd3c
jmp 0x40fdee
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fde4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x40fdee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x40fe9a
cmp dword [esp + 0x10], 0
je 0x40fe4a
cmp dword [esp + 0x10], 5
jne 0x40fe2d
call fcn.0040b450
mov dword [eax], 9
call fcn.0040b460
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040b3d0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x40fe74
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x40fe74
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.0040b450
mov dword [eax], 0x1c
call fcn.0040b460
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x411d00
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x4442f4]
push esi
test eax, eax
push edi
push ebp
jne 0x411d48
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x411d28
mov eax, 1
jmp 0x411d4e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411d41
mov eax, 2
jmp 0x411d4e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x4442f4], eax
cmp eax, 1
jne 0x411d73
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x4442f4], eax
cmp eax, 2
jne 0x411e01
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x411d8f
mov edi, dword [0x442968]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x411db0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.0040a470
add esp, 4
mov esi, eax
test esi, esi
jne 0x411dc6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411df6
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x411e06
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x411e1e
push esi
call fcn.0040a350
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x411df6
push esi
call fcn.0040a350
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x411e30
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x4442f8]
push esi
test eax, eax
push edi
push ebp
jne 0x411e78
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x411e58
mov eax, 2
jmp 0x411e7e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411e71
mov eax, 1
jmp 0x411e7e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x4442f8], eax
cmp eax, 2
jne 0x411ea3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x4442f8], eax
cmp eax, 1
jne 0x411f3f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x411ebf
mov edi, dword [0x442968]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x411ee0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.0040a470
add esp, 4
mov esi, eax
test esi, esi
jne 0x411efd
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411f34
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x411f44
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x411f5f
push esi
call fcn.0040a350
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x411f34
push esi
call fcn.0040a350
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x415cb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004096f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415d7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x415d7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415d2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415d39
or bh, 8
and edi, 0x8000000
je 0x415d54
mov eax, dword [0x44771c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x415d7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41617b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41619f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4161ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x418098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x418227
call fcn.0040a088
sub esp, 0x1c
mov eax, dword [ecx + 0x48]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov ebx, dword [ecx + 0x44]
mov dword [ebp - 0x10], esp
call fcn.00432499
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x14]
add edi, 0x40
cmp dword [edi], 0
je 0x4180e7
call fcn.00432499
mov esi, dword [eax + 0xc]
push 5
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4180f5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x418111
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
xor edi, edi
call fcn.00418023
mov dword [ebp - 0x18], eax
call fcn.0041a27b
push dword [ebp - 0x18]
call fcn.00419cd6
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x18], edi
je 0x418151
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418151
push edi
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.0041a22c
push esi
push dword [ebp - 0x18]
call fcn.00419cd6
push eax
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
call fcn.00417d46
test eax, eax
je 0x4181bd
mov eax, dword [ebp - 0x14]
test byte [eax + 0x24], 0x10
je 0x4181a4
mov dword [ebp - 0x24], 4
mov ecx, eax
call fcn.0041955d
test ah, 1
je 0x418199
or byte [ebp - 0x24], 1
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
call fcn.0041c6eb
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ecx + 0x1c], eax
je 0x4181bd
push 0x97
push eax
push eax
push eax
push eax
push eax
call fcn.0041965c
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x4181d5
push 1
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x18], 0
je 0x4181f2
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x1c]
jne 0x4181f2
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov ecx, dword [ebp - 0x14]
call fcn.00418059
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x2c]
jmp 0x418100