joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029ab4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x10029ad8
cmp dword [edi + 0x74], 0
jne 0x10029ad8
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.1000624d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10029a75
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10059262
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1005927c
call fcn.1000624d
mov esi, dword [eax + 0xc]
push dword [0x10162220]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1005929a
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10059292
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100592c7
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x10059294
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10059190
mov esi, eax
jmp 0x100592b9

Function at 0x100d830f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d8327
mov edi, dword [esi + 0xc]
jmp 0x100d8367
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100d8340
call fcn.10010a5a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d8355
call fcn.10010a5a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d8367
call fcn.10010a5a
call fcn.1000624d
cmp dword [eax + 0x3c], 0
je 0x100d837c
push edi
mov ecx, ebx
call fcn.100d71c3
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d8229
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d839a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d83a6
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f2782
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1015d2f0]
jne 0x100f278c
repz ret
jmp fcn.100f8d64
Function at 0x101044ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1015d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100f9315
and dword [ebp - 0x14], 0
cmp dword [0x10164d0c], 0
mov dword [ebp - 0x18], eax
jne 0x101045b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1010465a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1013f0b4
push ebx
call edi
test eax, eax
je 0x1010465a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1013f0a4
push ebx
mov dword [0x10164d0c], eax
call edi
push eax
call esi
push 0x1013f090
push ebx
mov dword [0x10164d10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10164d14], eax
call edi
push eax
call esi
mov dword [0x10164d1c], eax
test eax, eax
je 0x101045b2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10164d18], eax
mov eax, dword [0x10164d18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1010460b
cmp dword [0x10164d1c], ecx
je 0x1010460b
push eax
call esi
push dword [0x10164d1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1010460b
test ebx, ebx
je 0x1010460b
call edi
test eax, eax
je 0x10104602
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10104602
test byte [ebp - 8], 1
jne 0x1010460b
or dword [ebp + 0x10], 0x200000
jmp 0x1010463e
mov eax, dword [0x10164d10]
cmp eax, dword [ebp - 0x18]
je 0x1010463e
push eax
call esi
test eax, eax
je 0x1010463e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1010463e
mov eax, dword [0x10164d14]
cmp eax, dword [ebp - 0x18]
je 0x1010463e
push eax
call esi
test eax, eax
je 0x1010463e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10164d0c]
call esi
test eax, eax
je 0x1010465a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1010465c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f2782
leave
ret
Function at 0x40b3b8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407ad8
xor eax, eax
push ebp
push 0x40b478
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040856c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040871c
mov eax, dword [ebx]
call fcn.0040b268
test al, al
jne 0x40b455
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040856c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040871c
mov eax, dword [ebx]
call fcn.0040b268
test al, al
jne 0x40b455
mov eax, ebx
call fcn.004079f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b47f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407a54
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x40cde0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40e818
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040e804
add esp, 0x208
pop ebx
ret

Function at 0x420cf4
Capabilities:
Encode data using xor

Disassembly:
dec ecx
mov cl, 0x93
xchg edx, eax
mov byte [0x8f0461d], al
push edi
xor bl, al
or byte [ecx], ch
leave
test al, 0x9a
invalid

Function at 0x421a88
Capabilities:
Encode data using xor

Disassembly:
sub al, 0x90
nop
cmp ch, byte [edi + edx*8 + 0x1aacd148]
and bl, byte [ecx]
cmpsd dword [esi], dword es:[edi]
out 0xac, al
pop esp
push ebp
xor byte [ebp - 0xe50ba90], ch
scasb al, byte es:[edi]
imul ecx, ecx, 0x416b3350
imul byte [edi - 0x3b]
mov edx, 0xac405581
loopne 0x421a89
cmp dword [ebx + 0x71], ebp
dec edx
cld
inc esi
mov ah, 0xd6
xor al, 0x88
das
Function at 0x430af8
Capabilities:
Encode data using xor

Disassembly:
pop esp
mov eax, dword [0x2ae30adf]
ficom word [edi + 0x33]
mov eax, dword [0x1ca98157]
sbb edi, ebx
cmp al, 0x1f
dec ebp
add ah, dl
nop
dec ecx
xor dword [esi - 0x79], esi
jbe 0x430ac4
out dx, eax
mov dword [esi], ebx
loope 0x430b4f
xchg byte [edx + 0x77], bh
test al, 0x57
mov edi, 0x51baf136
das
xchg byte [edx - 0x51], bh
push edx
dec edi
int 0x8e
scasb al, byte es:[edi]
add eax, 0xb6b7e881
fidiv dword [esi + 0x74]
sbb al, 0xd1
push esi
outsd dx, dword [esi]
mov ah, 0x69
inc edi
invalid
popal
insd dword es:[edi], dx
fcmovnb st(0), st(6)
inc dword [ebp - 0x45f262e3]
dec esi
sbb al, 0xe
loope 0x430ab4
aam 0x4b
sar dword [eax + eax*2 + 0xf], cl
test dword [eax + 0x47858a7], esi
clc
push 0x8a85f747
test al, 0x8e
dec esi
xchg edx, eax
add ebx, dword [edx + 0x5c]
invalid
mov cl, 0xa5
cmp eax, dword [edi - 0x67]
xor esi, dword [esi - 0x30ac538c]
mov ecx, 0x542c6c43
add bh, byte [eax]
test dword [eax + ebp*2 - 0x4a8d3b15], ebx
mov ch, 0x7b
invalid
cmp al, 0xab
sbb al, 0xcd
cmc
adc dword [ebx - 0x1a], edx
dec esp
cdq
xor dword [ebp + 0x1e], ebp
cmp al, 0xbd
cwde
xor bh, ch
mov ecx, 0xe8d81269
call 0xced78fd1
xchg esp, eax
into
into
pop eax
salc
cmpsd dword [esi], dword es:[edi]
jle 0x430bee
out dx, eax
dec edx
test byte [edx - 0x4d237668], bh
sahf
add dword [edi + edx*8 - 0x67], esi
invalid
or eax, 0x5481067c
hlt
jge 0x430b85
jne 0x430c29
mov ch, 0x3e
jge 0x430c14
mov edx, 0xbd56f817
out dx, al
out 0x7e, al
dec ecx
mov cl, 0xdb
jne 0x430c63
push edx
in al, dx
neg byte [edi + ebp - 0xa8f3163]
imul ebx, dword [0x422fa876], 0xb63ecf3f
or eax, dword [esp + ebp*2]
xor ch, byte [esi + 0x5ac7210d]
push ecx
sahf
pop esp
aas
push esi
or edx, edi
scasb al, byte es:[edi]
stc
iretd
push edx
xchg ecx, eax
pop edi
mov ebp, 0x9dc8b558
dec ecx
ror esp, 1
mov edx, 0xb13aded0
inc esp
pop ss
push edx
inc esp
or eax, ebp
push eax
or esp, esi
inc ebp
mov esi, 0x8a0ffe7a
mov esi, ebp
pop ecx
adc eax, 0xe812b8b0
jp 0x159d01d8
mov al, 0xb8
adc ch, al
stosb byte es:[edi], al
lodsd eax, dword [esi]
ja 0x430c47
sub al, 0x2c
pop ebx
pop edi
movsd dword es:[edi], dword [esi]
push ss
insd dword es:[edi], dx
lahf
push 0x5e
lahf
and dl, 0xcc
retf 0xbed2

Function at 0x430cf8
Capabilities:
Check for vm using instruction vpcext

Disassembly:
jge 0x430c43
lahf
mov dl, 0xcf
movq mm2, qword [ebx + ecx*8]
or eax, 0x1644b087
dec byte [esi - 0x114a93a1]
push esp
enter 0xdd8, 0xffffffffffffffca
call 0xb7f925dd
aaa
fdivr dword [ecx + 0x6c]
out dx, eax
invalid
adc eax, 0xdb77eb0b
add eax, 0x563786f8
mov dh, 0x83
xchg esp, eax
mov cl, 0xdc
push 0xe1644b08
imul ebx, dword [ebx], 0xffffffc7
push esi
jmp 0x430ca1
Function at 0x491930
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49197e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004913f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x491997
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a0d04
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a0d0c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4a0df9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00422c64
mov edx, dword [ebp - 8]
mov ecx, 0x4a0e14
xor eax, eax
call fcn.004a0be8
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4a0dc7
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4a0d26
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x3b
call fcn.00426dfc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00419f38
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004231e0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x70
call fcn.00426dcc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x414ecc]
call fcn.0041f384
call fcn.004070f0
jmp 0x4a0d26
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0e00
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407a54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407a54
ret

Function at 0x4a0f30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a0f54
mov eax, dword [ebp - 4]
jmp 0x4a0f57
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a0f5c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4a0fa9
xor ebx, ebx
jmp 0x4a0f9e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.004198cc
test eax, eax
jne 0x4a0f9d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4a1054
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0f7f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4a0fb5
je 0x4a0fbe
jmp 0x4a0fc7
call fcn.00422f10
mov esi, eax
jmp 0x4a0fc9
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4a0fc9
xor esi, esi
test si, si
je 0x4a1054
xor ebx, ebx
jmp 0x4a0fef
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4a0fee
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1054
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0fd6
xor ebx, ebx
jmp 0x4a1049
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4a1048
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4a103d
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004a0f30
push eax
mov eax, esi
call fcn.004a0f30
pop edx
cmp edx, eax
jne 0x4a1048
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1054
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0ffe
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a143c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a1511
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a152c
push ebx
push 0x4a153c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087a4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405864
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a14bc
mov al, 0x72
call fcn.004a1064
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a1410
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a14c5
call fcn.004a1410
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1518
lea eax, [ebp - 4]
call fcn.004079f4
ret
Function at 0x4a162c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a16f7
jmp 0x4a16eb
cmp dword [esi + 0x10], 0x1000
jne 0x4a16d7
test byte [esi + 0x15], 1
jne 0x4a16d7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1688
cmp ebp, 2
je 0x4a1688
cmp ebp, 0x10
je 0x4a1688
cmp ebp, 0x20
jne 0x4a16a4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a16a4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a16b5
mov eax, dword [esi]
add eax, ebx
call fcn.004a1624
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a16a8
cmp byte [esp + 4], 0
je 0x4a16d7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a16f7
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a165d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402050
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5835e5
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x61654c]
test eax, eax
jne 0x4020b1
push 0x1d4
call fcn.0041b472
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
mov ecx, eax
call fcn.00426ac0
push eax
push 0x64
lea eax, [ebp - 0xd8]
push eax
push 0x5ff374
push 0x5ff2a8
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4020e0
sub eax, edx
sar eax, 1
cmp eax, 1
setg al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b461
mov esp, ebp
pop ebp
ret
Function at 0x402110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583631
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
call fcn.004028f0
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042cfe0
add esp, 8
lea eax, [ebp - 0x230]
push eax
call fcn.00402520
push esi
push 0x104
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push 0x5ff374
push eax
push str.user
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x5ff374
lea eax, [ebp - 0x218]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4021d6
test dx, dx
je 0x4021d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4021d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4021b0
xor eax, eax
jmp 0x4021db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40226f
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
push ecx
call fcn.00402320
lea ecx, [ebp - 0x248]
test al, al
jne 0x402236
call fcn.00403780
xor bl, bl
jmp 0x4022d9
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x248]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x402250
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], al
call fcn.00403780
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00402720
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
cmp edi, eax
je 0x40229c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00403210
mov eax, dword [ebp - 0x24c]
mov bl, 1
cmp eax, 8
jb 0x4022bc
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4022f7
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00403830
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b461
mov esp, ebp
pop ebp
ret 8
Function at 0x402980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583725
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x61654c]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4029e5
push 0x1d4
call fcn.0041b472
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
mov ecx, eax
call fcn.00426ac0
push eax
push 0x64
lea eax, [ebp - 0xd8]
push eax
push 0x5ff374
push 0x5ff2a8
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xd8], 0
jne 0x402a19
xor ecx, ecx
jmp 0x402a31
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a22
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
mov ecx, esi
push eax
call fcn.00403620
cmp dword [esi + 0x10], 0
seta al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b461
mov esp, ebp
pop ebp
ret 4

Function at 0x404aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583822
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60c044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x60]
mov dword [esi], vtable.CShareVariableManager.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x404aeb
mov eax, dword [ecx]
jmp 0x404aed
mov eax, ecx
xor edx, edx
mov word [eax], dx
mov dword [ebp - 4], edx
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], edx
cmp dword [esi + 0x8c], 8
jb 0x404b13
mov eax, dword [esi + 0x78]
jmp 0x404b16
lea eax, [esi + 0x78]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0x90]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x404b33
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0xa8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x404b50
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov byte [ebp - 4], 3
push edx
push 0x5ff374
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], edx
call fcn.00403620
push 0
push 0x5ff374
lea ecx, [esi + 0x78]
call fcn.00403620
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret