joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a56e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a5290
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a5310
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a5310
lea ecx, [esi + 0xc]
call fcn.004ba272
lea ecx, [esi + 0x10]
call fcn.004ba272
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a7b40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a7b40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a7b40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ba2e7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ba2e7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4a6388
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c9198
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4a6398
call fcn.004a68b0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4a647b
cmp byte [edi], 0
je 0x4a647b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4a63bd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004a50b0
test eax, eax
jne 0x4a63dd
push 0x50798c
lea ecx, [esi + 0x38]
call fcn.004ba424
jmp 0x4a647b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004a5100
test eax, eax
jne 0x4a640c
mov ecx, esi
call fcn.004a5200
push edi
add esi, 0x38
push 0x507968
push esi
call fcn.004b7d47
add esp, 0xc
jmp 0x4a647b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004a7130
test eax, eax
je 0x4a6474
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004a6550
test eax, eax
jne 0x4a6490
push edi
lea eax, [esi + 0x38]
push 0x507944
push eax
call fcn.004b7d47
add esp, 0xc
mov ecx, esi
call fcn.004a68b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4a6538
mov ecx, dword [0x507c1c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004b7d47
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004a51b0
test eax, eax
jne 0x4a64fa
push 0x507928
lea ecx, [esi + 0x38]
call fcn.004ba424
jmp 0x4a650a
push 0xfa
mov ecx, esi
call fcn.004a7130
test eax, eax
jne 0x4a6527
mov ecx, esi
call fcn.004a68b0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004ba2e7
jmp 0x4a647b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004ba2e7
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4bc6b8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bc6f0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ba742
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ba71a
jmp 0x4bc6fc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bdda6
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 0x4bdde8
call fcn.004c391a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bdde8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bdddf
xor eax, eax
jmp 0x4bddf0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bddf6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c3e4a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c3e78
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c3e96
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c3db0
jmp 0x4c3e96
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c3e96
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c3db0
test edi, edi
mov eax, edi
jne 0x4c3e80
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x422529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00422480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x422558
mov eax, 0xea61
jmp 0x4225d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x422568
mov eax, 0xea62
jmp 0x4225d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00422480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x422595
mov eax, 0xea62
jmp 0x4225d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x4225ad
mov eax, 0xea65
jmp 0x4225d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x4225c2
mov eax, 0xea66
jmp 0x4225d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x4225d2
mov eax, 0xea67
jmp 0x4225d6
xor eax, eax
jmp 0x4225d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x206e6217
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0xbef50b5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100215a
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100c084]
push edi
mov edi, ecx
test edi, edi
mov dword [ebp - 4], eax
jne 0x1002183
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002285
push esi
push 0x1264
call sub.cmutil.dll_CmMalloc
mov esi, eax
test esi, esi
je 0x1002284
lea eax, [esi + 0x3c]
mov dword [esi + 4], eax
push ebx
lea eax, [esi + 0x5c]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x15d]
mov dword [esi + 0x1c], eax
push esi
push dword [ebp + 8]
mov eax, 0x81
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x25f]
mov dword [esi + 0x2c], eax
mov eax, 0x801
push 0
lea ecx, [esi + 0x1de]
lea ebx, [esi + 0xa60]
push edi
mov dword [esi], 0x3c
mov dword [esi + 8], 0x20
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x100220e
push esi
call sub.cmutil.dll_CmFree
xor eax, eax
jmp 0x1002283
mov al, byte [ebx]
xor edi, edi
test al, al
je 0x1002281
mov ecx, ebx
cmp al, 0x20
jne 0x100221d
inc edi
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1002218
test edi, edi
je 0x1002281
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi*2]
cmp eax, 0x800
ja 0x1002204
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0x808]
rep stosd dword es:[edi], eax
mov cl, byte [ebx]
test cl, cl
stosb byte es:[edi], al
je 0x1002273
mov edx, ebx
lea eax, [ebp - 0x808]
cmp cl, 0x20
jne 0x1002269
mov byte [eax], 0x25
inc eax
mov byte [eax], 0x32
inc eax
mov byte [eax], 0x30
jmp 0x100226b
mov byte [eax], cl
inc edx
mov cl, byte [edx]
inc eax
test cl, cl
jne 0x1002257
lea eax, [ebp - 0x808]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.010051d5
leave
ret 4
Function at 0x10025a9
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [esi + 0x1c]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [eax + 0x2c]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi + 0x148]
cmp dword [ecx], edi
mov dword [ebp - 0xc], eax
jne 0x10026de
cmp eax, 0xffffffff
je 0x10026ed
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x148]
mov dword [esi + 0x140], eax
cmp dword [ecx], edi
jne 0x10026de
cmp eax, 0xffffffff
je 0x10026de
push ebx
mov ebx, 0x2000
push ebx
call sub.cmutil.dll_CmMalloc
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x10026dd
push edi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
jmp 0x10026a8
cmp dword [ebp - 4], edi
je 0x10026d5
cmp dword [ebp - 8], edi
je 0x10026c4
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x148]
cmp dword [eax], edi
jne 0x10026d5
cmp dword [ebp - 4], edi
je 0x10026d5
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 8], ecx
jne 0x10026cd
lea eax, [esi + 0x13c]
add dword [eax], ecx
mov ecx, dword [esi + 0x134]
cmp ecx, edi
mov eax, dword [eax]
je 0x1002695
push dword [esi + 0x138]
push dword [esi + 0x140]
push eax
call ecx
mov eax, dword [esi + 0x148]
cmp dword [eax], edi
jne 0x10026d5
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x148]
cmp dword [eax], edi
je 0x1002632
jmp 0x10026d5
mov dword [ebp - 4], 1
jmp 0x10026d5
push 0x70
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x10]
call sub.cmutil.dll_CmFree
pop ebx
cmp dword [ebp - 0xc], 0xffffffff
je 0x10026ed
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x1002bf7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x100c084]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x254], ebx
je 0x1002db0
cmp byte [ebx], 0
je 0x1002db0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
cmp eax, 0x104
ja 0x1002db0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call fcn.01005037
cmp al, 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x1002c6f
push 0x1001300
lea eax, [ebp - 0x10c]
push eax
call esi
push 0x100149c
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x250], eax
je 0x1002da5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - 0x258], eax
call ebx
mov ecx, dword [ebp - 0x258]
lea eax, [ecx + eax + 1]
cmp eax, 0x104
ja 0x1002d78
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x1001498
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
je 0x1002d78
push 0x1001494
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
je 0x1002d78
mov ebx, dword [ebp - 0x254]
push ebx
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call fcn.01005037
cmp al, 0x5c
je 0x1002d29
push 0x1001300
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call esi
test byte [ebp - 0x24c], 1
je 0x1002d59
mov eax, dword [ebp - 0x24c]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x24c], 0x10
lea eax, [ebp - 0x10c]
push eax
je 0x1002d70
call fcn.01002bf7
jmp 0x1002d7e
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1002d7e
mov ebx, dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002ca0
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
jmp 0x1002dbd
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010051d5
leave
ret 4
Function at 0x1003070
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1003118
cmp esi, 0xffffffff
je 0x1003118
push edi
push ebx
mov byte [ebp - 4], bl
xor eax, eax
push ebx
lea edi, [ebp - 3]
stosw word es:[edi], ax
push ebx
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push 3
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x1003118
cmp dword [ebp - 0xc], 3
jb 0x1003118
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x10014a4
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x10030e0
mov dword [ebp - 8], ebx
jmp 0x1003118
push 0x10014a0
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
je 0x1003118
xor eax, eax
xor ecx, ecx
mov dl, byte [ebp + ecx - 4]
cmp dl, 0x30
jl 0x1003111
cmp dl, 0x39
jg 0x1003111
movsx edx, dl
inc ecx
cmp ecx, 3
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x30]
jl 0x10030f3
cmp eax, ebx
je 0x1003118
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1003b22
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x100c084]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 0xc]
push 0x3f
push ebx
mov dword [ebp - 0x1b4], eax
call sub.cmutil.dll_CmStrchrA
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x1003b62
push 0x1001514
jmp 0x1003b71
push ebx
call esi
cmp byte [eax + ebx - 1], 0x26
je 0x1003b78
push 0x1001510
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x1ac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x19c], 1
movzx eax, word [ebp - 0x1a0]
je 0x1003bbf
mov eax, dword [ebp - 0x1a0]
push 0x1001500
push eax
push dword [ebp - 0x1a4]
push dword [ebp - 0x1a8]
push 0x800
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
push eax
push dword [ebp - 0x19c]
movzx eax, word [ebp - 0x1dc]
push eax
push 0x10014cc
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add eax, ebx
push eax
call edi
mov eax, dword [ebp - 0x1b0]
add esp, 0x24
test eax, eax
je 0x1003c21
cmp byte [eax], 0
je 0x1003c21
push eax
push 0x10014c0
push ebx
call esi
add eax, ebx
push eax
call edi
add esp, 0xc
mov eax, dword [ebp - 0x1b4]
test eax, eax
je 0x1003cb3
cmp byte [eax], 0
je 0x1003cb3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003c37
and dword [ebp - 0x1b0], 0
sub eax, edx
test eax, eax
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x118], cl
mov byte [ebp - 0x13], cl
jle 0x1003c9c
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0x1b0]
mov al, byte [eax + ecx]
cmp al, 0x20
jne 0x1003c74
push 0x10014bc
jmp 0x1003c7b
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b0]
cmp eax, dword [ebp - 0x1b8]
jl 0x1003c5a
lea eax, [ebp - 0x118]
push eax
push 0x10014b4
push ebx
call esi
add eax, ebx
push eax
call edi
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010051d5
leave
ret 8
Function at 0x1004a12
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1004a92
cmp dword [ebp + 0x14], ebx
je 0x1004a92
push esi
push edi
mov esi, 0x104
push esi
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp edi, ebx
je 0x1004a8c
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x1004a5c
cmp dword [ebp + 8], ebx
je 0x1004a6d
cmp dword [ebp + 0xc], ebx
je 0x1004a6d
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x1004a80
cmp dword [ebp + 8], ebx
je 0x1004a80
cmp dword [ebp + 0xc], ebx
je 0x1004a80
add esi, esi
cmp esi, 0x100000
ja 0x1004a8c
push esi
push edi
call sub.cmutil.dll_CmRealloc
jmp 0x1004a31
cmp eax, ebx
jne 0x1004a8c
push edi
call sub.cmutil.dll_CmFree
xor edi, edi
mov eax, edi
pop edi
pop esi
jmp 0x1004a94
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x1004c71
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x1004d3d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1004d3d
cmp byte [eax], 0
je 0x1004d3d
cmp byte [ecx], 0
je 0x1004d3d
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
call esi
mov edi, 0x10016c4
push edi
mov ebx, eax
call esi
lea eax, [ebx + eax + 1]
push eax
call sub.cmutil.dll_CmMalloc
mov ebx, eax
test ebx, ebx
je 0x1004d2f
push edi
push dword [ebp + 8]
push 0x10016bc
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebx], 0
je 0x1004d2f
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x1004d29
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x1004d0a
mov dword [ebp - 4], 1
jmp 0x1004d20
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0
push dword [ebp + 8]
push ebx
call esi
test eax, eax
jne 0x1004d20
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1004d2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call sub.cmutil.dll_CmFree
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
jmp 0x1004d3f
xor eax, eax
leave
ret 8

Function at 0x1004e68
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi], eax
je 0x1004eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004ece
cmp dword [ebp + 0xc], ebx
je 0x1004ec0
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x1004ece
cmp eax, 0x80
jne 0x1004ec0
cmp dword [ebp + 0x14], ebx
je 0x1004ece
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
xor eax, eax
jmp 0x1004ed3
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1004f0d
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
jne 0x1004f25
xor eax, eax
jmp 0x1004fa5
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1004fa3
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x7fff
jae 0x1004f99
push esi
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp edi, ebx
je 0x1004f99
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004f99
cmp byte [edi], bl
mov eax, edi
je 0x1004f99
mov cl, byte [eax]
cmp cl, 9
je 0x1004f97
cmp cl, 0xa
je 0x1004f97
cmp cl, 0xd
je 0x1004f97
inc eax
cmp byte [eax], bl
jne 0x1004f7f
jmp 0x1004f99
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x10052ed
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x10016d0
call fcn.010054f0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100532a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100532a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005342
cmp eax, 0x20b
je 0x100532f
mov dword [ebp - 0x1c], ebx
jmp 0x1005356
cmp dword [ecx + 0x84], 0xe
jbe 0x100532a
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1005350
cmp dword [ecx + 0x74], 0xe
jbe 0x100532a
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100d324], 0xffffffff
or dword [0x100d328], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100c1d0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100c1cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100d32c], eax
call fcn.010054e6
cmp dword [0x100c088], ebx
jne 0x10053b1
push fcn.010054e6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010054cf
push 0x100c010
push 0x100c00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100c1c8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100c1c4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100c008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1005447
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100541b
cmp al, 0x22
jne 0x100540d
cmp byte [esi], 0x22
jne 0x1005424
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100542e
cmp al, 0x20
jbe 0x1005420
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1005452
movzx eax, word [ebp - 0x50]
jmp 0x1005455
cmp byte [esi], 0x20
jbe 0x1005424
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005447
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1005472
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10054a7
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100552b
ret