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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x42f508
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x411d64
add eax, 8
inc ebp
cmp eax, 0x42f598
jb 0x411d55
cmp ecx, dword [ebp*8 + 0x42f508]
jne 0x411f0b
mov eax, dword [0x435674]
cmp eax, 1
je 0x411ecd
test eax, eax
jne 0x411d90
cmp dword [0x42f104], 1
je 0x411ecd
cmp ecx, 0xfc
je 0x411f0b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411dcb
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 0x411e14
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 0x4295f0
add ebx, ecx
push ebx
call fcn.00415210
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, 0x42e588
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 + 0x42f50c]
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.00415180
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x436b80]
test eax, eax
je 0x411ede
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x411ee8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x42f50c]
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 0x416ee0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x435b30]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x416f28
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x416f08
mov eax, 2
jmp 0x416f23
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417008
mov eax, 1
mov dword [0x435b30], eax
cmp eax, 2
jne 0x416f48
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 0x41701a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x416f63
mov ecx, dword [0x435a90]
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 0x416f82
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.0040d2e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x416f99
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 0x416fff
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x416fe0
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 0x416fff
push esi
call fcn.0040cc80
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 0x41700f
push esi
call fcn.0040cc80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040cc80
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x417320
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4174de
push 0x3d
push edi
call fcn.0040d160
mov esi, eax
add esp, 8
test esi, esi
je 0x4174de
cmp edi, esi
je 0x4174de
mov dl, byte [esi + 1]
mov ecx, dword [0x43569c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x435698]
cmp eax, ecx
jne 0x417377
push eax
call fcn.004175b0
add esp, 4
mov dword [0x435698], eax
test eax, eax
jne 0x4173f2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41739e
mov eax, dword [0x4356a0]
test eax, eax
je 0x41739e
call fcn.00416b80
test eax, eax
je 0x4173ed
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4173aa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040d2e0
add esp, 4
mov dword [0x435698], eax
test eax, eax
je 0x4174de
mov dword [eax], 0
mov eax, dword [0x4356a0]
test eax, eax
jne 0x4173ed
push 4
call fcn.0040d2e0
add esp, 4
mov dword [0x4356a0], eax
test eax, eax
je 0x4174de
mov dword [eax], 0
mov eax, dword [0x435698]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00417530
mov esi, eax
add esp, 8
test esi, esi
jl 0x4174ef
cmp dword [ebx], 0
je 0x4174ef
test ebp, ebp
je 0x4174e7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040cc80
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x417449
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 0x417438
lea eax, [esi*4]
push eax
push ebx
call fcn.00411070
add esp, 8
test eax, eax
je 0x417463
mov dword [0x435698], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4174d6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040d2e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4174d6
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.0040cc80
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 0x417467
test ebp, ebp
jne 0x4174d6
test esi, esi
jge 0x4174f9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00411070
add esp, 8
test eax, eax
je 0x4174de
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x435698], eax
jmp 0x417467
Function at 0x41a20b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x426480
call fcn.0040caa0
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.00423a85
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41a259
call fcn.00423a85
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 0x41a267
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41a275
or eax, 0xffffffff
jmp 0x41a361
mov ecx, esi
call fcn.0041a196
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0041b0d7
push edi
call fcn.0041ab7a
and dword [ebp - 0x1c], 0
test edi, edi
je 0x41a2af
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a2af
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.0041b08b
push edi
call fcn.0041ab7a
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00419f2d
xor ebx, ebx
cmp eax, ebx
je 0x41a328
test byte [esi + 0x24], 0x10
je 0x41a2f3
push 4
mov ecx, esi
pop ebx
call fcn.0041d4d6
test ah, 1
je 0x41a2e9
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041d108
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x41a328
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041d565
jmp 0x41a328
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x41a33a
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x41a350
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41a350
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.0041a1cd
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 0x41cffe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41d040
call fcn.00423a85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d040
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d037
xor eax, eax
jmp 0x41d048
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d04e
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e4b5
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41e4dd
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041db87
pop esi
ret 4

Function at 0x41fec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x41fedd
cmp dword [0x43563c], edi
jne 0x42002f
cmp word [0x435648], di
mov dword [0x43563c], 1
jne 0x41ff0f
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x435644], eax
mov word [0x435648], cx
cmp word [0x435648], 2
jne 0x41ff4b
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x41ff4b
mov ecx, dword [0x435644]
cmp ecx, edi
je 0x41ff4b
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x435640], eax
jmp 0x420034
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.0040ccf0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x435640], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42002f
cmp dword [ebp - 0x8c], 1
je 0x41ff9f
cmp dword [ebp - 0x8c], 2
jne 0x42002f
cmp dword [ebp - 0x98], 4
jae 0x42000e
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42002f
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420003
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004103b0
add esp, 0xc
mov dword [0x435640], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42002f
cmp dword [ebp - 0x8c], 2
jne 0x42002f
cmp dword [ebp - 0x98], 4
jb 0x42002f
push edi
push 0x435640
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x435640]
pop edi
leave
ret
Function at 0x420e37
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x420e7b
push dword [ebp + 8]
call fcn.004242c6
mov esi, eax
test esi, esi
je 0x420ea6
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x420ea6
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x42e384
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc

Function at 0x42389a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x426626
call fcn.0040caa0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00418477
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00418477
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.004182f4
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x419d12
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x423f52
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x423fdc
cmp dword [esp + 0x14], ebx
je 0x423fdc
cmp esi, ebx
jne 0x423f78
push 0x10
call fcn.00423d3f
cmp eax, ebx
je 0x423f67
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x423f69
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00423ce1
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x423f8f
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x423f9f
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x423fab
call fcn.00417e34
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.0040ccf0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x424012
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x424065
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x424048
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x424048
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x42405f
and dword [ebp - 4], 0
jmp 0x42405f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x424058
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x424029
cmp dword [ebp - 4], 0
je 0x424093
push esi
lea ecx, [ebx + 0x14]
call fcn.00423cf4
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x424089
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x72bc4b73
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xbc30f81
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401426
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040175b
test eax, eax
je 0x401445
mov eax, 1
jmp 0x4014e8
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
push 0x800
call fcn.004c06eb
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
cmp dword [ebp - 8], 0
jne 0x40147b
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00401800
push eax
push 0x800
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4014d3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ab520
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004c0714
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4014ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.0040175b
test eax, eax
je 0x401508
mov eax, dword [ebp + 0xc]
jmp 0x401534
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00401800
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x40153a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040175b
test eax, eax
je 0x401554
fld qword [ebp + 0xc]
jmp 0x4015bd
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4f8128
lea edx, [ebp - 0x28]
push edx
call fcn.004ab675
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.00401800
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4015ba
lea eax, [ebp - 0x28]
push eax
call fcn.004ab61e
add esp, 4
fstp qword [ebp - 8]
fld qword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4015c3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0040175b
test eax, eax
je 0x4015e2
mov eax, 1
jmp 0x4016b5
cmp dword [ebp + 0x10], 1
jb 0x4015ee
cmp dword [ebp + 0xc], 0
jne 0x4015f5
xor eax, eax
jmp 0x4016b5
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0x1000
call fcn.004c06eb
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00401800
push eax
push 0x1000
mov edx, dword [ebp - 4]
push edx
push 0x507830
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4016a0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x401665
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004ab700
add esp, 4
shr eax, 1
cmp dword [ebp - 0x14], eax
jae 0x4016a0
lea eax, [ebp - 8]
push eax
push str._02x
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
push eax
call fcn.004ab6c7
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ecx], dl
jmp 0x40165c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004c0714
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc