joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 0x64]
cmp eax, 3
je 0x404788
lea edi, [esi + 0x15c]
push edi
call fcn.004032d0
mov ecx, dword [esi + 0x64]
cmp ecx, 1
je 0x4046d8
mov edx, dword [esi + 0x64]
test edx, edx
jne 0x404782
mov dword [esi + 0x64], 2
mov dword [edi], 0
mov eax, ebx
call fcn.004048a0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x404713
cmp dword [esi + 0x3c], 0
je 0x40470c
mov ecx, dword [esi + 0x40]
push 0
push 0x10
push 0x417478
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x60], 0
cmp dword [esi + 0x30], 0
je 0x40473b
mov edx, dword [esi + 0x48]
push edx
call fcn.004033a0
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x404750
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x404772
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov edi, esi
call fcn.004047a0
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [edi], 0
push 0x139f
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x404b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x264]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov word [esi + 0x28], 0xca
cmp ecx, 3
je 0x404bd0
mov eax, esi
call fcn.004046a0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.00403c40
mov ecx, dword [esi + 0x264]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404c29
cmp eax, 0x102
je 0x404c15
cmp eax, 0xffffffff
jne 0x404c1e
mov edx, dword [esi + 0x264]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x264]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x264]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x404c70
push 0
push 0
call fcn.004071db
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406170
Capabilities:
Contain obfuscated stackstrings
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4191b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x406150
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x61657243
mov dword [ebp - 0x10], 0x68546574
mov dword [ebp - 0xc], 0x64616572
mov byte [ebp - 8], 0
call fcn.00406260
push eax
call dword [0x41da88]
push 0
push 0
push 0
push 0x405d60
push 0
push 0
call eax
lea ecx, [ebp - 0x28]
push ecx
mov dword [0x41da78], eax
mov dword [ebp - 0x28], 0x74696157
mov dword [ebp - 0x24], 0x53726f46
mov dword [ebp - 0x20], 0x6c676e69
mov dword [ebp - 0x1c], 0x6a624f65
mov dword [ebp - 0x18], 0x746365
call fcn.00406260
push eax
call dword [0x41da88]
mov edx, dword [0x41da78]
push 0xffffffffffffffff
push edx
call eax
mov eax, dword [0x41da78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfb
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00406765
mov esp, ebp
pop ebp
ret

Function at 0x406260
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x406280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
sub esp, 8
cmp dword [eax + edx + 0x7c], 0
jne 0x406296
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + edx + 0x78]
test ecx, ecx
je 0x406290
mov eax, dword [ecx + edx + 0x24]
push ebx
mov ebx, dword [ecx + edx + 0x18]
push esi
mov esi, dword [ecx + edx + 0x1c]
add esi, edx
push edi
mov edi, dword [ecx + edx + 0x20]
mov dword [ebp - 8], esi
xor esi, esi
add edi, edx
add eax, edx
mov dword [ebp - 4], esi
dec ebx
mov ecx, dword [edi + esi*4]
add ecx, edx
cmp byte [ecx], 0x47
jne 0x406318
cmp byte [ecx + 1], 0x65
jne 0x406318
cmp byte [ecx + 2], 0x74
jne 0x406318
cmp byte [ecx + 3], 0x50
jne 0x406318
cmp byte [ecx + 4], 0x72
jne 0x406318
cmp byte [ecx + 5], 0x6f
jne 0x406318
cmp byte [ecx + 6], 0x63
jne 0x406318
cmp byte [ecx + 7], 0x41
jne 0x406318
cmp byte [ecx + 8], 0x64
jne 0x406318
cmp byte [ecx + 9], 0x64
jne 0x406318
cmp byte [ecx + 0xa], 0x72
jne 0x406318
cmp byte [ecx + 0xb], 0x65
jne 0x406318
cmp byte [ecx + 0xc], 0x73
jne 0x406318
cmp byte [ecx + 0xd], 0x73
je 0x406327
inc esi
cmp esi, ebx
jbe 0x4062c0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax + esi*2]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
pop edi
pop esi
add eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406765
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4191b4]
jne 0x40676f
repz ret
jmp fcn.004076af
Function at 0x40c27c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4191b4]
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.0040a166
and dword [ebp - 0x14], 0
cmp dword [0x41cb94], 0
mov dword [ebp - 0x18], eax
jne 0x40c32f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c3d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c3d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41cb94], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41cb98], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41cb9c], eax
call edi
push eax
call esi
mov dword [0x41cba4], eax
test eax, eax
je 0x40c32f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41cba0], eax
mov eax, dword [0x41cba0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c388
cmp dword [0x41cba4], ecx
je 0x40c388
push eax
call esi
push dword [0x41cba4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c388
test ebx, ebx
je 0x40c388
call edi
test eax, eax
je 0x40c37f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c37f
test byte [ebp - 8], 1
jne 0x40c388
or dword [ebp + 0x10], 0x200000
jmp 0x40c3bb
mov eax, dword [0x41cb98]
cmp eax, dword [ebp - 0x18]
je 0x40c3bb
push eax
call esi
test eax, eax
je 0x40c3bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c3bb
mov eax, dword [0x41cb9c]
cmp eax, dword [ebp - 0x18]
je 0x40c3bb
push eax
call esi
test eax, eax
je 0x40c3bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41cb94]
call esi
test eax, eax
je 0x40c3d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c3d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406765
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40173b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401774
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401770
jmp 0x401760
cmp esi, eax
jae 0x401774
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401760
cmp esi, eax
jb 0x40177b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571059
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4039aa
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
cmp edi, ebx
je 0x403a4a
push 0x20a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x403a4a
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
push ebx
push esi
call fcn.00544f30
add esp, 0xc
push 1
push 0x23
push esi
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x403a2e
lea edi, [ebp - 0x10]
mov ecx, 0x105
mov edx, esi
call fcn.00403670
cmp eax, ebx
jge 0x403a23
xor ecx, ecx
jmp 0x403a26
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
jne 0x403a37
cmp ecx, ebx
je 0x403a37
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x403a4a
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
je 0x403a62
push 0xc
push str.EPSONRYOGA
mov ecx, esi
call fcn.00403ee0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4043a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f8e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
movzx eax, word [ebp + 0xc]
push 0x5a1afc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4043ff
push 0x5c3924
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x5a14b4
call fcn.00544c32
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x404423
push 0x5c3924
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], 0x5a14d0
call fcn.00544c32
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40444e
push 0x5c3924
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 0x5a14e8
call fcn.00544c32
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x404479
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x5c3924
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x5a1508
call fcn.00544c32
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4044c1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x5c3924
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 0x5a152c
call fcn.00544c32
mov eax, 0x4044ad
ret
push edi
push ebx
push eax
call fcn.005477b0
add esp, 0xc
lea edx, [ebp + 0xc]
push edx
push 0
push esi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4044f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.00404d00
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e790
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax]
xor esi, esi
cmp dword [eax - 0xc], ecx
mov dword [ebp - 0x18], esi
jg 0x406f4d
mov dword [ebp - 0x14], ecx
push 0x5c38d0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00544c32
mov eax, 0x406f36
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406f62
test al, 0x10
jne 0x406f62
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e770
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax]
xor esi, esi
cmp dword [eax - 0xc], ecx
mov dword [ebp - 0x18], esi
jg 0x406fed
mov dword [ebp - 0x14], ecx
push 0x5c38d0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00544c32
mov eax, 0x406fd6
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407002
test al, 0x10
je 0x407002
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 6
push 0x40
mov dword [ebp - 8], 0
mov edi, 3
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40793e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push esi
call fcn.00544f30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea ecx, [edi - 2]
cmp ecx, ebx
jne 0x407947
push esi
add edi, 0x400
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [edi + edi]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4078f5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x40795b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40794b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.00544f30
add esp, 0xc
test ebx, ebx
jle 0x4079fe
mov eax, esi
cmp word [eax], 0
jne 0x407996
inc dword [ebp - 8]
cmp word [eax + 2], 0
je 0x40799b
add eax, 2
jmp 0x407986
cmp dword [ebp - 8], 0
jle 0x4079fe
mov dword [ebp - 4], esi
mov ebx, esi
mov ecx, dword [ebp - 4]
cmp word [ecx], 0
jne 0x4079f8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.00544f30
mov edx, dword [ebp - 4]
sub edx, ebx
add esp, 0xc
sar edx, 1
inc edx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push edi
call fcn.00542faf
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ebx, dword [ebp - 4]
add esp, 0x10
push edi
push eax
add ebx, 2
call fcn.004551d1
cmp word [ebx], 0
je 0x4079fe
add dword [ebp - 4], 2
jmp 0x4079a6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ecx + 8]
je 0x407a18
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570469
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407a70
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 0x14], 1
mov edi, 0x400
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407b4d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
mov eax, dword [esi - 8]
mov ebx, dword [ebp + 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x407ad4
push edi
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push edi
push esi
push 0x5a14b0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0054213d
add esp, 8
test eax, eax
jl 0x407c02
cmp eax, dword [esi - 8]
jg 0x407c02
xor ecx, ecx
lea edx, [edi - 2]
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp ebx, edx
jne 0x407b57
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407b3a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x400
call fcn.00448a4d
test eax, eax
jne 0x407aa1
push 0x80004005
call fcn.00401fd0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.00401f40
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x407b85
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
int3
Function at 0x408c20
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f648
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5d2614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
cmp dword [ebp + 0xc], 0
je 0x408c8b
or ecx, eax
jge 0x408c78
push 0
lea ecx, [ebp + 8]
call fcn.00401de0
mov edx, dword [ebp + 8]
push 0x100
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
jmp 0x408cad
or ecx, eax
jge 0x408c9c
push 0
lea ecx, [ebp + 8]
call fcn.00401de0
mov edx, dword [ebp + 8]
push 0x101
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [ebp - 0x2c4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408ce2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005418f3
mov esp, ebp
pop ebp
ret