joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460652
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x18], eax
call fcn.00456070
xor esi, esi
mov ebx, eax
cmp dword [0x560e84], esi
jne 0x460732
push esi
push esi
push 0x40389c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
je 0x4607e3
push 0x4038a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4607e3
push eax
call fcn.00456006
mov dword [esp], 0x4038b4
push edi
mov dword [0x560e84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00456006
mov dword [esp], 0x4038c4
push edi
mov dword [0x560e88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00456006
mov dword [esp], 0x4038d8
push edi
mov dword [0x560e8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00456006
pop ecx
mov ecx, eax
mov dword [0x560e94], ecx
test ecx, ecx
je 0x46072b
push 0x4038f4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00456006
pop ecx
mov dword [0x560e90], eax
jmp 0x460737
mov eax, dword [0x560e90]
jmp 0x46073d
mov eax, dword [0x560e90]
mov ecx, dword [0x560e94]
cmp eax, ebx
je 0x460790
cmp ecx, ebx
je 0x460790
push eax
call fcn.0045607e
push dword [0x560e94]
mov dword [ebp - 0x1c], eax
call fcn.0045607e
mov edi, eax
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
test eax, eax
je 0x460790
test edi, edi
je 0x460790
call eax
test eax, eax
je 0x460787
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460787
test byte [ebp - 8], 1
jne 0x460790
or dword [ebp + 0x10], 0x200000
jmp 0x4607c5
mov eax, dword [0x560e88]
cmp eax, ebx
je 0x4607c5
push eax
call fcn.0045607e
pop ecx
test eax, eax
je 0x4607c5
call eax
mov esi, eax
test esi, esi
je 0x4607c5
mov eax, dword [0x560e8c]
cmp eax, ebx
je 0x4607c5
push eax
call fcn.0045607e
pop ecx
test eax, eax
je 0x4607c5
push esi
call eax
mov esi, eax
push dword [0x560e84]
call fcn.0045607e
pop ecx
test eax, eax
je 0x4607e3
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push esi
call eax
jmp 0x4607e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045276d
leave
ret
Function at 0x46228d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x560ed8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
xor esi, esi
push edi
mov edi, ecx
test eax, eax
jne 0x4622e4
push esi
push esi
push 1
push esi
call ebx
test eax, eax
je 0x4622ca
mov dword [0x560ed8], 1
jmp 0x4622fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4622df
push 2
pop eax
mov dword [0x560ed8], eax
jmp 0x4622e4
mov eax, dword [0x560ed8]
cmp eax, 2
je 0x4623a8
test eax, eax
je 0x4623a8
cmp eax, 1
jne 0x462317
cmp dword [ebp + 0x18], esi
jne 0x462307
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov ebx, eax
test ebx, ebx
jne 0x46231e
xor eax, eax
jmp 0x4623ba
jle 0x462365
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ebx
cmp eax, 2
jb 0x462365
lea eax, [ebx*2 + 8]
cmp eax, 0x400
ja 0x46234d
call fcn.0045d9e0
mov edi, esp
test edi, edi
je 0x462317
mov dword [edi], 0xcccc
jmp 0x462360
push eax
call fcn.0045328d
mov edi, eax
pop ecx
test edi, edi
je 0x462317
mov dword [edi], 0xdddd
add edi, 8
jmp 0x462367
mov edi, esi
test edi, edi
je 0x462317
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46239d
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x462388
push esi
push esi
jmp 0x46238e
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 esi, eax
push edi
call fcn.00453bf7
pop ecx
mov eax, esi
jmp 0x4623ba
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 - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045276d
leave
ret
Function at 0x466e26
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
mov ebx, esi
mov dword [ebp - 8], esi
call fcn.00460104
mov ecx, edx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x466eb0
push 2
push esi
push esi
push edi
call fcn.00460104
mov ecx, eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x466eb0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x466f47
jg 0x466e8a
test esi, esi
je 0x466f47
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x466ebc
call fcn.00454169
mov dword [eax], 0xc
call fcn.00454169
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.00466fe1
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x466ee4
jg 0x466edd
cmp esi, 0x1000
jb 0x466ee4
mov eax, 0x1000
jmp 0x466ee6
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.00458b50
add esp, 0xc
cmp eax, 0xffffffff
je 0x466f0d
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x466f28
jg 0x466ecf
test esi, esi
je 0x466f28
jmp 0x466ecf
call fcn.00454181
cmp dword [eax], 5
jne 0x466f22
call fcn.00454169
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.00466fe1
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x466fad
test eax, eax
jg 0x466fb9
jl 0x466f51
test esi, esi
jae 0x466fb9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00460104
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x466eb0
push edi
call fcn.00460c1b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov ebx, eax
mov eax, edx
mov ecx, ebx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x466fb9
call fcn.00454169
mov dword [eax], 0xd
call fcn.00454181
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x466eb0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.00460104
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x466eb0
xor eax, eax
jmp 0x466eb7
Function at 0x4d46d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x4d4721
push 0x414a6c
push esi
call fcn.004d3d0f
pop ecx
pop ecx
mov eax, 0x80004005
jmp 0x4d4819
cmp dword [ebp - 8], ebx
jne 0x4d472e
xor eax, eax
inc eax
jmp 0x4d4819
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x10], eax
je 0x4d474a
push eax
push dword [ebp + 0x10]
push 0x415b3c
push esi
call fcn.004d3d0f
add esp, 0x10
jmp 0x4d4717
cmp dword [esi], 7
jb 0x4d4763
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4d470a
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4d470a
cmp dword [ebp - 4], ebx
jbe 0x4d4817
push dword [ebp - 4]
call fcn.0044f692
mov edi, eax
pop ecx
test edi, edi
jne 0x4d4799
push 0x415674
jmp 0x4d470f
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d47c8
push 0x414a6c
push esi
call fcn.004d3d0f
push edi
call fcn.0044f6a7
add esp, 0xc
jmp 0x4d4717
cmp dword [ebp + 0x10], 0xe
jne 0x4d47dc
push dword [ebp - 4]
lea ecx, [esi + 8]
push edi
call fcn.004d0d0e
jmp 0x4d4810
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.0051ab39
mov ebx, eax
test ebx, ebx
jns 0x4d4810
push dword [ebp + 0x10]
mov ecx, esi
call fcn.004d463f
push eax
push 0x415b7c
push esi
call fcn.004d3d0f
add esp, 0xc
push edi
call fcn.0044f6a7
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4d4857
Capabilities:
Read file on windows

Disassembly:
push 0x58
mov eax, 0x52868e
call fcn.00452846
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edx, edx
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], edx
stosd dword es:[edi], eax
test ecx, ecx
jne 0x4d488d
mov eax, 0x80070057
jmp 0x4d49fb
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edx
lea eax, [ebp - 0x4c]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push esi
call edi
test eax, eax
jne 0x4d48bc
push 0x414a6c
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
mov eax, 0x80004005
jmp 0x4d49fb
push 0
lea eax, [ebp - 0x4c]
push eax
push 8
lea eax, [ebp - 0x58]
push eax
push esi
call edi
test eax, eax
je 0x4d48a5
push 0
lea eax, [ebp - 0x4c]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push esi
call edi
test eax, eax
je 0x4d48a5
push dword [ebp - 0x50]
call fcn.0044f692
mov edi, eax
pop ecx
mov dword [ebp - 0x64], edi
test edi, edi
jne 0x4d48fe
mov eax, 0x8007000e
jmp 0x4d49fb
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d4922
push edi
call fcn.0044f6a7
mov dword [esp], 0x414a6c
jmp 0x4d48aa
push 0x10
call fcn.0044f603
mov esi, eax
pop ecx
test esi, esi
je 0x4d493d
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x64]
jmp 0x4d493f
xor esi, esi
push edi
test esi, esi
jne 0x4d494c
call fcn.0044f6a7
pop ecx
jmp 0x4d48f4
mov eax, dword [ebp - 0x58]
mov dword [esi], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
and dword [ebp - 0x1c], 0
xor eax, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00444888
xor edi, edi
lea eax, [ebx + 0x130]
mov dword [ebp - 4], edi
test eax, eax
je 0x4d4990
add ebx, 0x140
jmp 0x4d4992
mov ebx, edi
push dword [ebp - 0x54]
lea eax, [ebp - 0x48]
push dword [ebp - 0x58]
push eax
call fcn.004d7444
push 0x415bb4
lea ecx, [ebp - 0x2c]
push ecx
push 0x415bb8
push eax
push 0x415bc0
push ebx
mov byte [ebp - 4], 1
call fcn.00448863
push eax
call fcn.0044e3bb
push eax
call fcn.00448863
push eax
call fcn.0044e3bb
push eax
call fcn.00448863
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00444c55
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
push edi
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x18], eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00444c55
xor eax, eax
call fcn.004528d8
ret 8
Function at 0x4d4f10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor eax, eax
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d4f4e
push 0x414a6c
push edi
call fcn.004d3d0f
pop ecx
pop ecx
mov eax, 0x80004005
jmp 0x4d4fcd
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x4d4f5a
xor eax, eax
inc eax
jmp 0x4d4fcd
lea eax, [ecx + 1]
cmp eax, ecx
jb 0x4d4f47
lea eax, [ecx + 2]
push esi
push eax
call fcn.0044f692
mov esi, eax
pop ecx
test esi, esi
jne 0x4d4f81
push 0x415674
push edi
call fcn.004d3d0f
pop ecx
pop ecx
jmp 0x4d4fbe
mov eax, dword [ebp - 4]
add eax, 2
push eax
push 0
push esi
call fcn.004530e0
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d4fc5
push 0x414a6c
push edi
call fcn.004d3d0f
push esi
call fcn.0044f6a7
add esp, 0xc
mov eax, 0x80004005
jmp 0x4d4fcc
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
leave
ret 0xc
Function at 0x4d517a
Capabilities:
Read file on windows

Disassembly:
push 0x4c
mov eax, 0x528792
call fcn.00452846
mov ebx, ecx
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x30], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push 0x415c20
mov dword [ebp - 0x48], edi
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push 0x414aa4
mov dword [ebp - 4], esi
mov word [ecx], ax
call fcn.00444888
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004d181a
sub esp, 0x10
mov dword [ebp - 0x38], esp
mov ecx, esp
push eax
mov dword [ebp - 4], 1
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push 0x414ab0
mov byte [ebp - 4], 2
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebx + 0x364]
mov byte [ebp - 4], 1
call fcn.004d1d18
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0044e8ac
push esi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d5268
push 0x414a6c
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
mov esi, 0x80004005
jmp 0x4d52e0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4d527f
push 0x415c44
push ebx
call fcn.004d3d0f
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov edi, esi
test eax, eax
je 0x4d52e0
lea ecx, [ebp - 0x40]
call fcn.004d8494
push dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004d84e2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004d8533
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x4d52b4
mov eax, dword [eax]
push eax
push 0x415c60
push ebx
call fcn.004d3d0f
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00444c55
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004d84a3
inc edi
cmp edi, dword [ebp - 0x34]
jb 0x4d5285
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004d21b8
mov eax, esi
call fcn.004528d8
ret 4
Function at 0x4df515
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00460dd0
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x1024], edi
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4df5a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4df570
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [ebp - 0x1020]
push 0x417898
push eax
call fcn.004df3e4
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4df58d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push 1
lea ecx, [ebp - 0x1020]
call fcn.00444c55
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
lea eax, [ebp - 0x1004]
push eax
mov ecx, esi
call fcn.00444888
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045276d
leave
ret 8
Function at 0x5035bd
Capabilities:
Enumerate device drivers on windows

Disassembly:
push 0xd4
mov eax, 0x52f535
call fcn.00452846
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x34], 0
push 1
push 3
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x38], ebx
call fcn.00444e04
xor eax, eax
push eax
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x1e
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push 0x418770
mov dword [ebp - 4], 1
mov byte [ecx], al
call fcn.004441b2
lea ecx, [esi + 0xf4]
call fcn.004e4237
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.004e43d4
lea eax, [ebp - 0xd0]
push eax
call fcn.004e4413
mov eax, 0x40000001
cmp edi, eax
jg 0x50376f
je 0x50375e
lea eax, [edi - 1]
cmp eax, 0xc
ja case.default.0x503659
jmp dword [eax*4 + 0x503831]
push 0x418790
push 0x4187a0
push 0x4187b1
jmp 0x5037c7
push 0x4187bc
push 0x4187a0
push 0x4187d5
jmp 0x5037c7
push 0x4187e4
push 0x4187a0
push 0x418805
jmp 0x5037c7
push 0x418814
push 0x4187a0
push 0x41883d
jmp 0x5037c7
push 0x418850
push 0x4187a0
push 0x418879
jmp 0x5037c7
push 0x418890
push 0x4187a0
push 0x4188b9
jmp 0x5037c7
push 0x4188d0
push 0x4187a0
push 0x4188f5
jmp 0x5037c7
push 0x418908
push 0x4187a0
push 0x418925
jmp 0x5037c7
push 0x418930
push 0x4187a0
push 0x41894d
jmp 0x5037c7
push 0x41895c
push 0x4187a0
push 0x418975
jmp 0x5037c7
push 0x418984
push 0x4187a0
push 0x41899d
jmp 0x5037c7
push 0x4189a8
push 0x4187a0
push 0x4189c1
jmp 0x5037c7
push 0x4189d0
push 0x4187a0
push 0x418a01
jmp 0x5037c7
push 0x418a10
push 0x4187a0
push 0x418a31
jmp 0x5037c7
cmp edi, 0x40000002
je 0x5037b8
push 0
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.004e452e
push eax
push 0x418a84
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 2
call fcn.00448863
push eax
call fcn.0044e3bb
push eax
call fcn.0044a875
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00444c55
jmp 0x5037df
push 0x418a48
push 0x4187a0
push 0x418a6d
lea eax, [ebp - 0xd0]
push eax
call fcn.00448863
push eax
call fcn.00448863
push eax
call fcn.00448863
lea ecx, [esi + 0xf4]
call fcn.004e3b5e
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.004e43d4
lea eax, [ebp - 0xd0]
push eax
call fcn.004e4413
push ebx
lea ecx, [ebp - 0xe0]
call fcn.00444ead
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], 0
call fcn.00444de3
mov eax, ebx
call fcn.004528d8
ret 8
Function at 0x405c30
Capabilities:
Accept command line arguments

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00432cd0
push 0x404
mov esi, eax
call fcn.00432d80
push esi
push pe_nt_image_headers32
push eax
mov dword [0x464670], eax
call fcn.00434300
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [0x464670]
push edx
push ecx
push eax
mov dword [0x46466c], eax
call fcn.00425a90
push esi
call fcn.00432d10
mov edx, dword [0x464670]
push edx
call fcn.00432d10
push 0
call fcn.00435d50
mov ecx, dword [0x4612c4]
add esp, 0x38
xor eax, eax
test ecx, ecx
sete al
pop esi
ret 0x10

Function at 0x406910
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [ecx + 0x200]
push esi
mov esi, dword [esp + 0x10]
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push esi
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, dword [0x45c178]
je 0x40695a
mov edx, esi
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406950
push edi
push esi
call fcn.004490f6
add esp, 8
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ecx
ret 8

Function at 0x4069c0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
push eax
mov esi, ecx
lea ecx, [esp + 8]
push 0x45023c
push ecx
call fcn.0043fff4
add esp, 0xc
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esi + 0x200]
inc eax
push eax
lea eax, [esp + 8]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
add esp, 0x104
ret 8

Function at 0x406b50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, dword [esp + 0x12c]
mov eax, dword [esi]
mov ebp, ecx
push edi
xor ebx, ebx
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x14], 0x44f824
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edi, 1
call dword [eax + 0xb8]
mov edx, dword [esi + 0x18]
push edx
call fcn.00423a70
add esp, 4
test al, al
je 0x406ba8
mov edi, 4
jmp 0x406bb8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc0]
test al, al
jne 0x406bb8
xor edi, edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edi
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [str._d__d__d__d__d]
push eax
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0043fff4
add esp, 0x1c
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x200]
inc eax
push eax
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x28]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 8