joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc8cd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc8cd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xc8cd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc8cd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xc8cd94
push eax
push esi
call fcn.00c8f20b
add esp, 8
pop esi
ret 0x10

Function at 0xc8cda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc8ce22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xc8ce15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xca5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c8edff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xc8cdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xc8ce30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc8cec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xc8ceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xca5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c8edff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xc8ceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xc8ce6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xc8d000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xc8d131
push esi
call fcn.00c90145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c7f080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xc8d131
push 0
push ebp
call fcn.00c7f3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c7f260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xc8d08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c7f2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xc8d121
push 0xca5918
push edi
call fcn.00c8e3f0
push eax
push ebx
push esi
call fcn.00c8cf60
push 0xca58f8
push edi
call fcn.00c8e3f0
push eax
push ebx
push esi
call fcn.00c8cf60
push 0xca58d8
push edi
call fcn.00c8e3f0
push eax
push ebx
push esi
call fcn.00c8cf60
push 0xca58c0
push edi
call fcn.00c8e3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00c8cf60
push 0xca58a0
push edi
call fcn.00c8e3f0
push eax
push ebx
push esi
call fcn.00c8cf60
push 0xca5888
push edi
call fcn.00c8e3f0
push eax
push ebx
push esi
call fcn.00c8cf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xc8e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c8e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c8e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c8e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c8e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc8ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc8ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xca087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc8ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc8ec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402d10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042e4
test esi, esi
jne 0x402d47
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004043d4
jmp 0x402d68
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402bac
mov dword [esp], eax
test esi, esi
je 0x402d68
cmp dword [ebx], 0
je 0x402d68
dec esi
jmp 0x402d4f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403698
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x414020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403730
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403710
xor eax, eax
push ebp
push 0x403709
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40374c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403710
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x414020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x414020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404160
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415044], 0
je 0x4041c1
cmp word [0x415218], 0xd7b2
jne 0x404189
cmp dword [0x415220], 0
jbe 0x404189
mov eax, 0x415214
call dword [0x415230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x4041dd
push 0
push 0x414064
push 0x41406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405dc2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404554
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403124
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dc9
lea eax, [ebp - 0x10]
call fcn.004042e4
ret

Function at 0x40a104
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a13d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043d4
jmp 0x40a146
mov eax, ebx
mov edx, esi
call fcn.00404338
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a150
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a171
mov al, byte [esp]
jmp 0x40a173
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a808
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a670
mov eax, dword [0x414500]
cmp byte [eax], 0
je 0x40a884
mov eax, dword [0x414420]
call fcn.00403094
call fcn.00402ad8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407a58
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a8cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a8ba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4143fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415660]
call fcn.00405204
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b5cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b630
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404554
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004074b8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b637
lea eax, [ebp - 0xc]
call fcn.004042e4
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437008]
jne 0x40100a
repz ret
jmp fcn.004015dc

Function at 0x405835
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402fff
and dword [ebp - 4], 0
cmp dword [0x438dd4], 0
mov ebx, eax
jne 0x4058e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405997
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405997
push eax
call fcn.00402f8d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438dd4], eax
call esi
push eax
call fcn.00402f8d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438dd8], eax
call esi
push eax
call fcn.00402f8d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438ddc], eax
call esi
push eax
call fcn.00402f8d
pop ecx
mov dword [0x438de4], eax
test eax, eax
je 0x4058e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f8d
pop ecx
mov dword [0x438de0], eax
mov eax, dword [0x438de0]
cmp eax, ebx
je 0x40593e
cmp dword [0x438de4], ebx
je 0x40593e
push eax
call fcn.00403008
push dword [0x438de4]
mov esi, eax
call fcn.00403008
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40593e
test edi, edi
je 0x40593e
call esi
test eax, eax
je 0x405935
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405935
test byte [ebp - 0xc], 1
jne 0x40593e
or dword [ebp + 0x10], 0x200000
jmp 0x405977
mov eax, dword [0x438dd8]
cmp eax, ebx
je 0x405977
push eax
call fcn.00403008
pop ecx
test eax, eax
je 0x405977
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405977
mov eax, dword [0x438ddc]
cmp eax, ebx
je 0x405977
push eax
call fcn.00403008
pop ecx
test eax, eax
je 0x405977
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438dd4]
call fcn.00403008
pop ecx
test eax, eax
je 0x405997
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405999
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432f10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x437008]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x2a739c4], 0x114e
mov eax, dword [esp + 0x408]
mov dword [0x2a73808], eax
jne 0x432f51
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401000
add esp, 0x404
ret
Function at 0x432f80
Capabilities:
Get hostname

Disassembly:
sub esp, 0x818
mov eax, dword [0x437008]
xor eax, esp
mov dword [esp + 0x814], eax
mov eax, dword [esp + 0x81c]
push edi
xor edi, edi
cmp dword [esp + 0x824], edi
mov dword [esp + 0xc], eax
jle 0x433070
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push esi
lea esp, [esp]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 5
mov dword [esp + 0x1c], 0
call fcn.00432f70
mov eax, dword [esp + 0x1c]
add eax, 0x46
mov dword [esp + 0x14], eax
nop
sub dword [esp + 0x14], 0x46
mov ecx, dword [esp + 0x18]
movsx edx, byte [ecx + edi]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov esi, dword [esp + 0x830]
mov al, byte [esp + 0x10]
mov byte [ecx + edi], al
cmp esi, 0xf
jne 0x433064
push 0
push 0
call ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.poxifuyubucicoyiruholefabofukup
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea eax, [esp + 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
push str.veratupamolowubifizetoxeduzi
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
inc edi
cmp edi, esi
jl 0x432fc0
pop esi
pop ebp
pop ebx
cmp dword [esp + 0x824], 0x2d
pop edi
jne 0x43308f
mov dword [0x2a73af8], 0xa62e7790
mov dword [0x2a73afc], 0xffffffff
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00401000
add esp, 0x818
ret

Function at 0x4330b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x437008]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x437ff0]
push esi
mov esi, dword [0x2a739c4]
push edi
mov edi, dword [0x2a7380c]
push eax
call fcn.00432f10
add esp, 4
cmp dword [0x2a739c4], 0x2f
jne 0x4330ef
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
call fcn.00432f80
add esp, 8
cmp dword [0x2a739c4], 0x568
pop edi
pop esi
jne 0x433128
push 0
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea edx, [esp + 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret
Function at 0x4015be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x42fe20
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
mov esi, 0x42fe30
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x42fe60
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5c]
push eax
push 0x20019
movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
lea eax, [ebp - 0x54]
push eax
push 0x80000002
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016d1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x60]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x5c]
call esi
test eax, eax
jne 0x4016d1
mov eax, dword [ebp - 0x60]
cmp eax, edi
jbe 0x4016d1
cmp dword [ebp - 0x64], 7
jne 0x4016d1
inc eax
push ebx
push eax
call fcn.00407eaa
push dword [ebp - 0x60]
mov ebx, eax
push edi
push ebx
call fcn.00407920
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x5c]
call esi
test eax, eax
jne 0x4016c9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x24]
push eax
call edi
cmp byte [ebx], 0
mov dword [ebp - 0x68], eax
mov esi, ebx
je 0x4016c7
push esi
call edi
mov dword [ebp - 0x6c], eax
cmp eax, dword [ebp - 0x68]
jne 0x4016b8
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4016c3
mov eax, dword [ebp - 0x6c]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x40169b
jmp 0x4016c7
mov byte [ebp - 0x55], 1
xor edi, edi
push ebx
call fcn.00407eb5
pop ecx
pop ebx
cmp dword [ebp - 0x5c], edi
pop edi
pop esi
je 0x4016e1
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x55]
xor ecx, ebp
call fcn.004076ca
leave
ret
Function at 0x40199b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x42fff4
push 0x42fffc
mov dword [ebp - 0x40c], edi
call fcn.0040a477
pop ecx
pop ecx
mov dword [edi + 0x34], eax
test eax, eax
jne 0x4019e7
push eax
push 0x430000
mov ecx, edi
call fcn.0040176a
xor eax, eax
jmp 0x401a92
push ebx
push 0x430024
push eax
call fcn.0040a38b
push 0x430028
push esi
mov dword [ebp - 0x408], eax
call fcn.0040a38b
add esp, 0x10
cmp dword [ebp - 0x408], 0
mov ebx, eax
je 0x401a83
test ebx, ebx
je 0x401a71
mov esi, 0x400
jmp 0x401a44
push ebx
call fcn.0040a293
pop ecx
test eax, eax
jne 0x401a71
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push edi
push 1
push eax
call fcn.0040a1dd
add esp, 0x10
cmp eax, edi
jne 0x401a5f
push ebx
push esi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0040a05e
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x401a1d
jmp 0x401a71
mov ecx, dword [ebp - 0x40c]
push 0
push 0x43002c
call fcn.0040176a
push dword [ebp - 0x408]
call fcn.00409d25
mov edi, dword [ebp - 0x40c]
pop ecx
test ebx, ebx
je 0x401a8e
push ebx
call fcn.00409d25
pop ecx
mov eax, dword [edi + 0x34]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004076ca
leave
ret 4

Function at 0x401c3c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], eax
je 0x401c6e
cmp dword [edi], 0
jne 0x401c7e
mov eax, 0x200
push eax
mov dword [esi], eax
call fcn.00407eaa
pop ecx
mov dword [edi], eax
push ebx
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push dword [edi]
push dword [ebp - 0x5c]
call ebx
test eax, eax
je 0x401cc8
lea ecx, [eax + 2]
mov dword [ebp - 0x60], ecx
cmp ecx, dword [esi]
jbe 0x401cc4
cmp eax, 0x7ffd
jae 0x401cc4
push dword [edi]
call fcn.00407eb5
mov eax, dword [ebp - 0x60]
push eax
mov dword [esi], eax
call fcn.00407eaa
pop ecx
pop ecx
push dword [ebp - 0x64]
mov dword [edi], eax
push dword [esi]
push eax
push dword [ebp - 0x5c]
call ebx
test eax, eax
jne 0x401d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x58]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
push eax
push 0x42f47c
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.00401bc6
add esp, 0x10
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.0040176a
xor al, al
jmp 0x401d29
mov ecx, dword [ebp - 0x58]
add eax, 2
cmp eax, dword [esi]
jbe 0x401d1a
push 0
mov dword [ecx + 0x10], 0xe
push 0x42f4bc
jmp 0x401cf7
push dword [ebp - 0x5c]
push 0x42f4f0
call fcn.0040176a
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076ca
leave
ret 0x10