joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a2e0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [edi], 0
call fcn.0055dd80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42a37b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a37b
push esi
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 4]
push 0x103
push esi
call fcn.0056c3ab
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push esi
call fcn.0056db0b
add esp, 0x1c
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret
push 0x103
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push 0x103
push eax
call fcn.0056d8e2
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret

Function at 0x42a3b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42a3dd
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
test eax, eax
je 0x42a43a
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42a43a
cmp eax, 0x2800
ja 0x42a43a
push edi
push 2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 8], 0
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a420
push 0
lea eax, [ebp - 8]
sub ecx, edi
push eax
push ecx
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4310c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004315b0
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4310fc
call fcn.004312e2
mov dword [esi + 0xc], 1
jmp 0x431101
call fcn.004312e2
cmp dword [esi], 0
je 0x43114a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x431124
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042bf93
jmp 0x431135
push 0xff
mov ecx, esi
call fcn.00404f80
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00415600
jmp 0x43116e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x43116e
push dword [esi]
push dword [ebp - 4]
call fcn.00430611
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x431237
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004312e2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43127f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042bf93
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415600
jmp 0x43128a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00430611
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x431666
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x580595
call fcn.0055b617
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x43168c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4316eb
call fcn.0042bd85
push eax
lea ecx, [ebp - 0x10]
call fcn.004053c0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0055b5da
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0056d8e2
push eax
call fcn.004059a0
add esp, 0x14
test esi, esi
je 0x4316de
push esi
call fcn.0056df43
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004053f0
mov eax, ebx
call fcn.0055b5e0
ret 8
Function at 0x434f5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x434fa2
call fcn.0042c838
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x434fa2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x434fbe
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043f858
mov ebx, eax
test edi, edi
je 0x434fbc
test esi, esi
je 0x434fbc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4359ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x435a69
cmp dword [esi + 0x20], 0
je 0x435a69
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x435a69
cmp dword [ebp + 8], 0
je 0x435a69
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0042c838
push 0x58e860
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x435a3a
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x435a69
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00440425
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x435a5a
test edi, edi
je 0x435a5a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x435a65
mov ecx, esi
call fcn.0043574e
mov eax, ebx
jmp 0x435a6b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43c819
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x43c844
cmp dword [ebx + 0x80], 0
jne 0x43c844
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0042c838
push 5
push edi
mov esi, dword [eax + 0xc]
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 edi, eax
mov ecx, ebx
push edi
call fcn.0043cad7
push edi
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 0x43c87e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042c838
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43c8b5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0043c8d6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x441f01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x441f1b
mov edi, dword [esi + 0xc]
jmp 0x441f5b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x441f34
call fcn.0043b298
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x441f49
call fcn.0043b298
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x441f5b
call fcn.0043b298
call fcn.0042c838
cmp dword [eax + 0x3c], 0
je 0x441f70
push edi
mov ecx, ebx
call fcn.00441595
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0044214d
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x441f99
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x441fa5
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4638bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4638d5
call fcn.0042c838
mov esi, dword [eax + 0xc]
push 0x5955b0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46392b
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46392a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x46390b
xor esi, esi
jmp 0x463921
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00463933
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f8d3a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004f8979
push eax
push esi
push dword [ebp + 8]
call fcn.004f892e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004f8979
push eax
push esi
push dword [ebp + 8]
call fcn.004f892e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004f8969
outsd dx, dword [esi]
sub dword [esi + 0x4c], 0xff7c9d88
invalid
Function at 0x4f905f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4f9040
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4f905e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
inc esp
or bh, bh
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4f90bc
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4f90a3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4f90ac
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4f90b6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4f9098
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4f9022
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4f9109
dec eax
je 0x4f9100
sub eax, 3
je 0x4f90f7
mov dword [ebp - 4], 0x40
jmp 0x4f9126
mov dword [ebp - 4], 4
jmp 0x4f910c
mov dword [ebp - 4], 0x20
jmp 0x4f910c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4f9158
inc dword [ebp - 0x74cd8b40]
test dword [edi + edi*8 - 1], edx
inc dword [ecx]
inc ebp
or byte [edi + 0x3b], al
mov ebp, 0xffffff74
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4f90d8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004f8969
jecxz 0x4f9121
xlatb
xor dword [edi], eax
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4f9164

Function at 0x4f9197
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [eax + 0x62fffffc], esi
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
cld
invalid
call dword [edi - 0x3a]
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov ebx, 0x40fffffc
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
invalid
invalid
Function at 0x4f9282
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebx]
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004f8979
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f892e
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004f8979
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f892e
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004f8969
pushfd
sub byte [ecx - 0x335a7fa9], ch
cli
invalid

Function at 0x573aff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057397e

Function at 0x578b82
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00578842
Function at 0x401200
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x430020], 0x10
mov eax, dword [0x43000c]
push edi
jae 0x40121b
mov eax, 0x43000c
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401243
test bl, bl
jne 0x40129b
mov ecx, esi
call fcn.00402b10
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00401930
test bl, bl
je 0x401277
test al, al
je 0x40129b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push esi
call fcn.004012a0
push 0x7d0
call edi
mov ecx, esi
call fcn.00402b10
pop edi
mov esp, ebp
pop ebp
ret
test al, al
je 0x40128d
push esi
call fcn.004012a0
mov ecx, esi
call fcn.00402b10
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00402b10
mov ecx, esi
call fcn.00402220
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401ca0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42524b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x42eb24]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
mov eax, dword [0x42eb24]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push 0x4329b8
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00404480
push ebx
push 0x42ff98
or eax, 0xffffffff
lea esi, [esp + 0x14]
mov dword [esp + 0x23c], ebx
call fcn.004032b0
push ebx
push 0x42ffec
or eax, 0xffffffff
call fcn.004032b0
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00412ee0
mov eax, dword [esp + 0x1c]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x24], esi
jae 0x401d4d
lea eax, [esp + 0x10]
push eax
push 0x200
lea ecx, [esp + 0x30]
push ecx
push 0x429537
push str.upurl
push str.liveupdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401d74
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x4329f0
call fcn.00404cf0
cmp dword [esp + 0x24], esi
jb 0x401da2
mov eax, dword [esp + 0x10]
push eax
call fcn.004059f3
add esp, 4
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0041125b
add esp, 0x22c
ret
Function at 0x4028b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x425383
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x42eb24]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42eb24]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x130], 0
mov ebp, dword [esp + 0x13c]
test ebp, ebp
jne 0x40290b
xor ebx, ebx
jmp 0x402927
mov ecx, dword [esp + 0x140]
sub ecx, ebp
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00412ee0
mov edx, dword [0x42ffb8]
mov eax, 0x10
add esp, 0xc
cmp dword [0x42ffcc], eax
jae 0x402958
mov edx, 0x42ffb8
cmp dword [0x42ff94], eax
mov ecx, dword [0x42ff80]
jae 0x40296b
mov ecx, 0x42ff80
cmp dword [esi + 0x18], eax
jb 0x402975
mov eax, dword [esi + 4]
jmp 0x402978
lea eax, [esi + 4]
push edx
push ecx
push eax
lea ecx, [esp + 0x2c]
push str._s_s_s
push ecx
mov eax, 0x104
call fcn.004039e0
add esp, 0x14
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x429537
lea ecx, [esp + 0x18]
call fcn.00404a80
xor esi, esi
test ebx, ebx
mov byte [esp + 0x130], 1
jle 0x402a8e
lea edi, [ebp + 0x24]
test ebp, ebp
lea eax, [esp + 0x14]
push eax
je 0x4029e9
mov ecx, dword [esp + 0x144]
sub ecx, ebp
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4029ee
call fcn.004115fc
cmp dword [edi - 0xc], 0x10
jb 0x4029f9
mov eax, dword [edi - 0x20]
jmp 0x4029fc
lea eax, [edi - 0x20]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00404a80
call fcn.00402060
test ebp, ebp
je 0x402a32
mov ecx, dword [esp + 0x140]
sub ecx, ebp
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x402a37
call fcn.004115fc
cmp dword [edi + 0x14], 0x10
jb 0x402a41
mov eax, dword [edi]
jmp 0x402a43
mov eax, edi
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov ecx, 0x42ff7c
call fcn.00404250
mov ecx, dword [esp + 0x20]
push eax
call fcn.00404250
push eax
lea edx, [esp + 0x30]
push str._s_s_s_s
push edx
mov eax, 0x104
call fcn.004039e0
add esp, 0x18
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 1
add edi, 0x3c
cmp esi, ebx
jl 0x4029c0
mov byte [esp + 0x130], 0
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 0x402ab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x402ad7
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x140]
push ecx
push edx
mov eax, ebp
call fcn.00403d50
push ebp
call fcn.004059f3
add esp, 0xc
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041125b
add esp, 0x120
ret 0x10
Function at 0x402b10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4251e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42eb24]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x42eb24]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push 0xffffffffffffffff
mov edi, ecx
push 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.00404480
push 0
push 0x430024
or eax, 0xffffffff
lea esi, [esp + 0x14]
mov dword [esp + 0x3c], 0
call fcn.004032b0
mov esi, 0x10
cmp dword [edi + 0x18], esi
jb 0x402b8f
mov edi, dword [edi + 4]
jmp 0x402b92
add edi, 4
cmp dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
jae 0x402ba0
lea eax, [esp + 0x10]
push 1
push edi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [esp + 0x24], esi
jb 0x402bc6
mov eax, dword [esp + 0x10]
push eax
call fcn.004059f3
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041125b
add esp, 0x2c
ret

Function at 0x404c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404cd4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404cd0
lea ebx, [ebx]
cmp esi, eax
jae 0x404cd4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404cc0
cmp esi, eax
jb 0x404cda
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret