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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427418
push 0x40f318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x447ef0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x447eec], ecx
shl ecx, 8
add ecx, edx
mov dword [0x447ee8], ecx
shr eax, 0x10
mov dword [0x447ee4], eax
call fcn.0040c210
test eax, eax
jne 0x40a1ba
push 0x1c
call fcn.0040a300
add esp, 4
call fcn.0040f170
test eax, eax
jne 0x40a1cd
push 0x10
call fcn.0040a300
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040ef60
call fcn.0040bc30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4494d8], eax
call fcn.0040ee00
mov dword [0x447ed4], eax
test eax, eax
je 0x40a200
mov eax, dword [0x4494d8]
test eax, eax
jne 0x40a20a
push 0xffffffffffffffff
call fcn.0040b630
add esp, 4
call fcn.0040eb50
call fcn.0040ea60
call fcn.0040b600
mov esi, dword [0x4494d8]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40a2e9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40a251
test al, al
je 0x40a251
and eax, 0xff
push eax
call fcn.0040ea00
add esp, 4
test eax, eax
je 0x40a22b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a22b
cmp byte [esi], 0x22
jne 0x40a25a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40a26a
cmp al, 0x20
ja 0x40a26a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a25a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40a28b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40a290
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040b630
jmp 0x40a2ce
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40a25a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a2e9

Function at 0x40b440
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.00410620
mov esi, eax
add esp, 8
test esi, esi
je 0x40b4a0
push esi
call fcn.0040f1d0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x40b4c0
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40b4b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004092a0
add esp, 4
test edi, edi
je 0x40b4b6
push edi
call fcn.0040b770
add esp, 4
xor eax, eax
pop edi
pop esi
ret
Function at 0x40b670
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040b730
mov eax, dword [0x447f20]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40b694
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x447f1c], 1
mov byte [0x447f18], bl
jne 0x40b6ee
mov ecx, dword [0x4494d4]
test ecx, ecx
je 0x40b6dc
mov esi, dword [0x4494d0]
sub esi, 4
cmp esi, ecx
jb 0x40b6dc
mov eax, dword [esi]
test eax, eax
je 0x40b6d5
call eax
mov ecx, dword [0x4494d4]
sub esi, 4
cmp esi, ecx
jae 0x40b6c7
push 0x42b098
push 0x42b090
call fcn.0040b750
add esp, 8
push 0x42b0a4
push 0x42b09c
call fcn.0040b750
add esp, 8
test ebx, ebx
je 0x40b70d
call fcn.0040b740
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x447f20], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40ee00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x448248]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40ee42
call edi
mov esi, eax
test esi, esi
je 0x40ee2c
mov eax, 1
jmp 0x40ee3d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40ef4f
mov eax, 2
mov dword [0x448248], eax
cmp eax, 1
jne 0x40eee2
test esi, esi
jne 0x40ee5b
call edi
mov esi, eax
test esi, esi
je 0x40ef4f
cmp word [esi], 0
mov eax, esi
je 0x40ee75
add eax, 2
cmp word [eax], 0
jne 0x40ee63
add eax, 2
cmp word [eax], 0
jne 0x40ee63
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40eed4
push edi
call fcn.004091d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40eed4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40eec6
push ebx
call fcn.004092a0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40ef4f
test ebx, ebx
jne 0x40eef3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40ef4f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40ef0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40eefb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40eefb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004091d0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40ef2d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40f170
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040c250
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x42eaa4], eax
je 0x40f1c8
push 0x74
push 1
call fcn.00410620
mov esi, eax
add esp, 8
test esi, esi
je 0x40f1c8
mov eax, dword [0x42eaa4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40f1c8
push esi
call fcn.0040f1d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x42eaa4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40f25e
push 0x74
push 1
call fcn.00410620
mov esi, eax
add esp, 8
test esi, esi
je 0x40f254
mov ecx, dword [0x42eaa4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40f254
push esi
call fcn.0040f1d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040a300
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [0x42eaa4]
cmp eax, 0xffffffff
je 0x40f30c
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40f294
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x40f2fd
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40f2a4
push eax
call fcn.004092a0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40f2b4
push eax
call fcn.004092a0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40f2c4
push eax
call fcn.004092a0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40f2d4
push eax
call fcn.004092a0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40f2e4
push eax
call fcn.004092a0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40f2f4
push eax
call fcn.004092a0
add esp, 4
push esi
call fcn.004092a0
add esp, 4
mov eax, dword [0x42eaa4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x40f430
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x42eaa8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40f454
add eax, 8
inc ebp
cmp eax, 0x42eb38
jb 0x40f445
cmp ecx, dword [ebp*8 + 0x42eaa8]
jne 0x40f5fb
mov eax, dword [0x447edc]
cmp eax, 1
je 0x40f5bd
test eax, eax
jne 0x40f480
cmp dword [0x42bf94], 1
je 0x40f5bd
cmp ecx, 0xfc
je 0x40f5fb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f4bb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40f504
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x427958
add ebx, ecx
push ebx
call fcn.00412310
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x427938
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x42eaac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00413a60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4483a0]
test eax, eax
je 0x40f5ce
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40f5d8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x42eaac]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor 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 edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4134b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4134dc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x4483a0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x413517
push 2
push ebp
push ecx
call fcn.004133b0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x413679
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4135c1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x413572
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41355f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x413542
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41366a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4135bd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x41353e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413659
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413615
cmp eax, 5
jne 0x4135fe
call fcn.0040b7f0
mov dword [eax], 9
call fcn.0040b800
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040b770
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x413635
cmp byte [ebp], 0x1a
jne 0x413635
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040b7f0
mov dword [eax], 0x1c
call fcn.0040b800
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4135bd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4136aa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4135c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4135c1
Function at 0x414930
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x448390]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x414978
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x414958
mov eax, 2
jmp 0x414973
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414a58
mov eax, 1
mov dword [0x448390], eax
cmp eax, 2
jne 0x414998
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x414a6a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4149b3
mov ecx, dword [0x448128]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4149d2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004091d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4149e9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414a4f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x414a30
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x414a4f
push esi
call fcn.004092a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x414a5f
push esi
call fcn.004092a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004092a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x415250
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41540e
push 0x3d
push edi
call fcn.0040adb0
mov esi, eax
add esp, 8
test esi, esi
je 0x41540e
cmp edi, esi
je 0x41540e
mov dl, byte [esi + 1]
mov ecx, dword [0x447f04]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x447f00]
cmp eax, ecx
jne 0x4152a7
push eax
call fcn.004154e0
add esp, 4
mov dword [0x447f00], eax
test eax, eax
jne 0x415322
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4152ce
mov eax, dword [0x447f08]
test eax, eax
je 0x4152ce
call fcn.00414d90
test eax, eax
je 0x41531d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4152da
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004091d0
add esp, 4
mov dword [0x447f00], eax
test eax, eax
je 0x41540e
mov dword [eax], 0
mov eax, dword [0x447f08]
test eax, eax
jne 0x41531d
push 4
call fcn.004091d0
add esp, 4
mov dword [0x447f08], eax
test eax, eax
je 0x41540e
mov dword [eax], 0
mov eax, dword [0x447f00]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00415460
mov esi, eax
add esp, 8
test esi, esi
jl 0x41541f
cmp dword [ebx], 0
je 0x41541f
test ebp, ebp
je 0x415417
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004092a0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x415379
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x415368
lea eax, [esi*4]
push eax
push ebx
call fcn.00409e20
add esp, 8
test eax, eax
je 0x415393
mov dword [0x447f00], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415406
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004091d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x415406
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004092a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x415397
test ebp, ebp
jne 0x415406
test esi, esi
jge 0x415429
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00409e20
add esp, 8
test eax, eax
je 0x41540e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x447f00], eax
jmp 0x415397
Function at 0x416605
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x416628
cmp dword [edi + 0x3c], 0
jne 0x416628
movzx eax, word [edi + 0x40]
mov dword [edi + 0x3c], eax
call fcn.004218dc
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00416655
pop edi
pop esi
pop ebx
ret 8

Function at 0x416981
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x422adc
call fcn.0040a830
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.004218dc
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4169cf
call fcn.004218dc
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4169dd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4169eb
or eax, 0xffffffff
jmp 0x416ad7
mov ecx, esi
call fcn.0041690c
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00417744
push edi
call fcn.004171e7
and dword [ebp - 0x1c], 0
test edi, edi
je 0x416a25
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x416a25
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.004176f8
push edi
call fcn.004171e7
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.004166a3
xor ebx, ebx
cmp eax, ebx
je 0x416a9e
test byte [esi + 0x24], 0x10
je 0x416a69
push 4
mov ecx, esi
pop ebx
call fcn.00419c7b
test ah, 1
je 0x416a5f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00419804
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x416a9e
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00419dae
jmp 0x416a9e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x416ab0
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x416ac6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x416ac6
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00416943
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x417c57
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x417c8f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041a97a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041a952
jmp 0x417c9b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
pop esi
ret 4