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

Disassembly:
sub esp, 0x70
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
cmp dword [eax + 4], 0xffffffff
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], eax
je 0x417509
xor eax, eax
push 0x4e
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.0043f900
add esp, 0xc
cmp dword [esp + 0x88], 0
je 0x4173c8
xor eax, eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
lea eax, [esp + 0x14]
xor edx, edx
push eax
mov word [esp + 0x18], dx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x20]
push edx
movzx edx, word [esp + 0x1c]
push eax
movzx eax, word [esp + 0x22]
push ecx
movzx ecx, word [esp + 0x2a]
push edx
push eax
push ecx
push str.__UTC___02d__02d__d____02d:_02d:_02d:_03d_:
lea edx, [esp + 0x48]
push 0x28
push edx
call fcn.0043dec2
add esp, 0x28
xor ecx, ecx
mov eax, 0x64
mov dword [esp + 0x10], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d2aa
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x94]
push eax
push ecx
push 0xffffffffffffffff
push edx
push esi
call fcn.0043dd9f
add esp, 0x18
cmp eax, 0xffffffff
jne 0x41745d
mov edi, edi
push esi
call fcn.0042d2d9
mov eax, dword [esp + 0x14]
add eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d2aa
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x18]
mov esi, eax
lea eax, [esp + 0x98]
push eax
push ecx
push 0xffffffffffffffff
push edx
push esi
call fcn.0043dd9f
add esp, 0x1c
cmp eax, 0xffffffff
je 0x417410
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
mov ebx, eax
lea eax, [esp + 0x28]
push eax
call edi
lea eax, [ebx + eax + 5]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d2aa
mov ecx, dword [esp + 0x14]
mov ebx, eax
push esi
lea eax, [esp + 0x30]
push eax
push str._s_s_r_n
push ecx
push ebx
call fcn.0043dec2
add esp, 0x18
push ebx
call edi
mov edi, eax
inc edi
push edi
call fcn.0042d2aa
add esp, 4
push 0
push 0
push edi
mov ebp, eax
push ebp
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4174d4
push 0
lea edx, [esp + 0x14]
push edx
sub eax, edi
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0042d2d9
push ebx
call fcn.0042d2d9
push ebp
call fcn.0042d2d9
add esp, 0xc
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043d85c
add esp, 0x70
ret
Function at 0x417520
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x164
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x160], eax
xor eax, eax
lea ecx, [esp]
push ecx
mov word [esp + 0x148], ax
mov dword [esp + 0x14a], eax
mov dword [esp + 0x14e], eax
mov dword [esp + 0x152], eax
mov dword [esp + 0x156], eax
mov dword [esp + 0x15a], eax
mov dword [esp + 0x15e], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp], 0
je 0x4175b4
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x4175bf
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp + 4]
cmp eax, 0xa
ja case.default.0x4175cd
jmp dword [eax*4 + 0x41772c]
push 0x4604f4
push 0xd
lea ecx, [esp + 0x14c]
push ecx
jmp 0x417686
push str.mips
push 0xd
lea edx, [esp + 0x14c]
push edx
jmp 0x417686
push str.alpha32
jmp 0x41767c
push 0x460518
push 0xd
lea ecx, [esp + 0x14c]
push ecx
jmp 0x417686
push 0x460520
push 0xd
lea edx, [esp + 0x14c]
push edx
jmp 0x417686
push 0x460528
jmp 0x41767c
push str.ia64
push 0xd
lea ecx, [esp + 0x14c]
push ecx
jmp 0x417686
push str.alpha64
push 0xd
lea edx, [esp + 0x14c]
push edx
jmp 0x417686
push str.msil
jmp 0x41767c
push 0x460558
push 0xd
lea ecx, [esp + 0x14c]
push ecx
jmp 0x417686
push str.ia32onWin64
push 0xd
lea edx, [esp + 0x14c]
push edx
jmp 0x417686
push 0x460578
push 0xd
lea eax, [esp + 0x14c]
push eax
call fcn.0043de53
add esp, 0xc
push 0x118
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.0043f900
add esp, 0xc
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417702
movzx ecx, word [esp + 0x13c]
movzx edx, byte [esp + 0x142]
lea eax, [esp + 0x144]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push str._d._d._d.sp_d._s
push 0x14
push esi
call fcn.0043dec2
add esp, 0x20
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0043d85c
add esp, 0x164
ret
lea edx, [esp + 0x144]
push edx
push 0x14
push esi
call fcn.0043de53
mov ecx, dword [esp + 0x16c]
add esp, 0xc
xor ecx, esp
call fcn.0043d85c
add esp, 0x164
ret
Function at 0x417760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1468
call fcn.00441c60
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x1464], eax
push esi
mov esi, dword [ebx + 0x14]
push edi
xor edi, edi
cmp esi, edi
jne 0x41779f
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1464]
xor ecx, esp
call fcn.0043d85c
mov esp, ebp
pop ebp
ret
push 0x24c
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.0043f900
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417789
push 0x206
lea eax, [esp + 0x266]
xor edx, edx
push edi
push eax
mov word [esp + 0x26c], dx
call fcn.0043f900
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.0043de53
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 0x14]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417789
push 0
push 0
push 0
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x474]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x417865
add edi, eax
cmp eax, 0x1000
je 0x417840
mov dword [esp + 8], edi
test edi, edi
je 0x417789
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
cmp dword [ebx + 0x18], eax
setne al
inc eax
add eax, edi
push eax
call fcn.0042d2aa
xor ecx, ecx
add esp, 4
cmp dword [ebx + 0x18], ecx
mov edi, eax
setne cl
inc ecx
add ecx, dword [esp + 8]
push ecx
push 0
push edi
call fcn.0043f900
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0
lea edx, [esp + 0x10]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x18], 0
je 0x4178d9
mov esi, edi
jmp 0x4178ed
push edi
call fcn.00417930
add esp, 4
push edi
mov esi, eax
call fcn.0042d2d9
add esp, 4
lea ecx, [esp + 0x260]
push ecx
push str._s
push 0
push ebx
call fcn.00417320
push esi
push 0
push ebx
call fcn.00417320
add esp, 0x1c
push esi
call fcn.0042d2d9
mov ecx, dword [esp + 0x1470]
add esp, 4
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043d85c
mov esp, ebp
pop ebp
ret
Function at 0x419d60
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x455b3b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x240], eax
push ebp
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
push 0
push 2
mov dword [esp + 0x1c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x419dbd
or eax, eax
jmp 0x419f1e
push 0x228
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0043f900
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x419f17
lea edx, [esp + 0x44]
push 0x460700
push edx
call fcn.0043e099
add esp, 8
test eax, eax
jne 0x419f04
cmp dword [esp + 0x264], eax
je 0x419f45
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x419f04
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x419f4b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x25c], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x419e8a
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401cc0
mov esi, dword [esp + 0x18]
push 0x104
push esi
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0043d945
add esp, 8
test eax, eax
jl 0x419f55
cmp eax, dword [esi - 8]
jg 0x419f55
xor ecx, ecx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], cx
call ebp
cmp dword [esi - 0xc], 0
je 0x419ed9
push esi
call fcn.00419f60
add esp, 4
test eax, eax
je 0x419ed9
inc dword [esp + 0x14]
lea eax, [esi - 0x10]
mov dword [esp + 0x25c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419f00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x419df2
push esi
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0043d85c
add esp, 0x250
ret
inc dword [esp + 0x14]
jmp 0x419f04
push 0x80004005
call fcn.00401f60
push 0x80070057
call fcn.00401f60
int3
Function at 0x41cf00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455a69
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
push str.firefox.exe
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00401ea0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x30], 1
call fcn.0041cc60
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cf83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41cf9d
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea esi, [esp + 0x18]
mov dword [esp + 0x1c], 1
call fcn.0041cd70
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
je 0x41d0d7
push 3
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.0040dc60
push 5
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov byte [esp + 0x30], 4
call fcn.0040dc60
lea ecx, [esp + 0x14]
push 0x4613e4
push ecx
mov byte [esp + 0x30], 5
call fcn.0040df10
add esp, 8
test al, al
je 0x41d014
push 1
push 0x4613ec
mov ecx, edi
call fcn.00401d70
jmp 0x41d08d
lea edx, [esp + 0xc]
push 0x4613f0
push edx
call fcn.0040df10
add esp, 8
test al, al
je 0x41d031
push 0x4613fc
jmp 0x41d086
lea eax, [esp + 0xc]
push str.1.9.1
push eax
call fcn.0040df10
add esp, 8
test al, al
je 0x41d04e
push 0x461410
jmp 0x41d086
lea ecx, [esp + 0xc]
push str.1.9.2
push ecx
call fcn.0040df10
add esp, 8
test al, al
je 0x41d06b
push 0x461424
jmp 0x41d086
lea edx, [esp + 0xc]
push str.2.0.0
push edx
call fcn.0040df10
add esp, 8
test al, al
je 0x41d08d
push 0x461438
mov ecx, edi
call fcn.00401e60
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d0b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d0d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d0fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x41e0d0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x455058
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
push 0
push 4
push 0
push 0
push esi
push 0x41e1d0
call fcn.0042f4f6
mov dword [esi + 0x10], eax
test eax, eax
jne 0x41e123
mov eax, 0x8000ffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], edx
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41e1b1
mov edi, dword [0x4701e0]
test edi, edi
je 0x41e1b1
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403230
mov dword [esp + 0x18], 0
mov ecx, dword [eax]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
push 0x461510
push 1
push edi
call fcn.00417320
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e1b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret 8
Function at 0x41fa90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x454731
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41fae3
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41fb21
push 0x104
lea ecx, [esp + 0x10]
call fcn.00401cc0
mov esi, dword [esp + 0xc]
push 0
push 0x25
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0043d945
add esp, 8
test eax, eax
jl 0x41fc30
cmp eax, dword [esi - 8]
jg 0x41fc30
xor ecx, ecx
mov dword [esi - 0xc], eax
push 8
mov word [esi + eax*2], cx
push str.Msi.dll
lea ecx, [esp + 0x14]
call fcn.00401630
mov dword [esp + 0x14], 0x104
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41fb87
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x10], 1
jge 0x41fbbd
push 0x104
mov ecx, edi
call fcn.00401cc0
mov eax, dword [edi]
mov esi, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
call sub.msi.dll_MsiMessageBoxW
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x41fbea
push ecx
push eax
call fcn.0043d945
add esp, 8
test eax, eax
jl 0x41fc30
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x41fc30
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [esi - 0x10]
mov byte [esp + 0x20], cl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fc1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
push 0x80070057
call fcn.00401f60
int3
Function at 0x420150
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x48], eax
xor eax, eax
push 0x40
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
call fcn.0043f900
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x26
jne 0x4202c9
cmp word [esi], 0x7b
jne 0x4202c9
cmp word [esi + 0x4a], 0x7d
jne 0x4202c9
movzx edx, word [esi + 0x10]
movzx eax, word [esi + 0xe]
movzx ecx, word [esi + 0xc]
mov word [esp + 4], dx
movzx edx, word [esi + 0xa]
mov word [esp + 6], ax
movzx eax, word [esi + 8]
mov word [esp + 8], cx
movzx ecx, word [esi + 6]
mov word [esp + 0xa], dx
movzx edx, word [esi + 4]
mov word [esp + 0xc], ax
movzx eax, word [esi + 2]
mov word [esp + 0xe], cx
movzx ecx, word [esi + 0x1a]
mov word [esp + 0x10], dx
movzx edx, word [esi + 0x18]
mov word [esp + 0x12], ax
movzx eax, word [esi + 0x16]
mov word [esp + 0x14], cx
movzx ecx, word [esi + 0x14]
mov word [esp + 0x16], dx
movzx edx, word [esi + 0x24]
mov word [esp + 0x18], ax
movzx eax, word [esi + 0x22]
mov word [esp + 0x1a], cx
movzx ecx, word [esi + 0x20]
mov word [esp + 0x1c], dx
movzx edx, word [esi + 0x1e]
mov word [esp + 0x1e], ax
movzx eax, word [esi + 0x2a]
mov word [esp + 0x20], cx
movzx ecx, word [esi + 0x28]
mov word [esp + 0x22], dx
movzx edx, word [esi + 0x2e]
mov word [esp + 0x24], ax
movzx eax, word [esi + 0x2c]
mov word [esp + 0x26], cx
movzx ecx, word [esi + 0x34]
mov word [esp + 0x28], dx
movzx edx, word [esi + 0x32]
mov word [esp + 0x2a], ax
movzx eax, word [esi + 0x38]
mov word [esp + 0x2c], cx
movzx ecx, word [esi + 0x36]
mov word [esp + 0x2e], dx
movzx edx, word [esi + 0x3c]
mov word [esp + 0x30], ax
movzx eax, word [esi + 0x3a]
mov word [esp + 0x32], cx
movzx ecx, word [esi + 0x40]
mov word [esp + 0x34], dx
movzx edx, word [esi + 0x3e]
mov word [esp + 0x36], ax
movzx eax, word [esi + 0x44]
mov word [esp + 0x38], cx
movzx ecx, word [esi + 0x42]
mov word [esp + 0x3a], dx
movzx edx, word [esi + 0x48]
mov word [esp + 0x3c], ax
movzx eax, word [esi + 0x46]
mov word [esp + 0x3e], cx
lea ecx, [esp + 4]
mov word [esp + 0x40], dx
mov word [esp + 0x42], ax
push ecx
jmp 0x4202ce
lea edx, [esp + 4]
push edx
mov ecx, edi
call fcn.00401ea0
mov ecx, dword [esp + 0x48]
xor ecx, esp
mov eax, edi
call fcn.0043d85c
add esp, 0x4c
ret
Function at 0x4209d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x454fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x43c]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], ebx
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x420a34
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x40e
lea edx, [esp + 0x1e]
xor ecx, ecx
push ebx
mov dword [esp + 0x43c], ebx
push edx
mov word [esp + 0x24], cx
call fcn.0043f900
add esp, 0xc
push esi
push 0x208
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, ebx
jne 0x420a7f
lea esi, [edi - 0x10]
jmp 0x420ad5
xor ecx, ecx
cmp eax, ebx
jbe 0x420a9b
cmp word [esp + ecx*2 + 0x18], bx
jne 0x420a96
mov edx, 0x3b
mov word [esp + ecx*2 + 0x18], dx
inc ecx
cmp ecx, eax
jb 0x420a85
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420aa2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d70
mov eax, 0x3b
lea ebx, [esp + 0x14]
call fcn.0040e150
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401f90
or edx, 0xffffffff
add eax, 0x10
mov dword [esp + 0x438], edx
lea ecx, [esi + 0xc]
mov dword [ebp], eax
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420b04
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebp
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0043d85c
add esp, 0x424
ret