joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, ecx
cmp eax, 0x19
inc eax
mov eax, ecx
cmp eax, 0xffffffa9
mov eax, 0xfa985df5
nop
mov eax, 0x75a5d4f9
cmp eax, 0xbcca3481
mov eax, 0x68771a0a
mov eax, ebx
mov eax, 0x7e6499b9
cmp eax, 0x28
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp eax, 0xffffffeb
mov eax, ecx
mov eax, 0x1ce3f392
cmp eax, 0xffffff85
mov eax, ecx
cmp eax, 0x13
cmp eax, 0x46b039df
inc eax
mov eax, ecx
nop
nop
cmp eax, 0x35
inc eax
nop
mov eax, 0x100c6e48
inc eax
mov eax, ebx
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop
mov eax, 0xb829e070
inc eax
inc eax
cmp eax, 0xfffffff7
inc eax
cmp eax, 0x3b9a631e
mov eax, 0x9db06b7d
nop
mov eax, ecx
cmp eax, 0xe5942e4c
nop
cmp eax, 0x55a3ef8e
mov eax, ebx
inc eax
nop
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc eax
mov eax, 0xcd6e3c11
cmp eax, 0xffffffe2
cmp eax, 0xffffffde
mov eax, ecx
inc eax
cmp eax, 0x81b24c77
inc eax
mov eax, ebx
mov eax, ebx
cmp eax, 0x72
mov eax, 0x5cd60569
mov eax, 0x3e6a2aa3
mov eax, ebx
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
mov eax, 0x3ad5b45a
inc eax
mov eax, 0x7530c61
cmp eax, 0x986444a7
inc eax
cmp eax, 0x2a
nop
mov eax, ebx
nop
nop
cmp eax, 0x1368a51d
mov eax, ebx
cmp eax, 0xffffffa9
mov eax, ecx
cmp eax, 0x26fe3f32
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, ecx
mov eax, ebx
cmp eax, 0xffffff8b
inc eax
nop
mov eax, ebx
cmp eax, 0xcc6caa10
mov eax, ecx
nop
nop
mov eax, ecx
cmp eax, 0xffffff9b
inc eax
mov eax, ebx
cmp eax, 0x5d
cmp eax, 0xe0207724
cmp eax, 0xffffff9b
inc eax
nop
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10009840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x10009873
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000987f
mov al, 1
jmp 0x10009a22
mov dword [ebp - 0x2c], 8
call fcn.1000c370
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x20], eax
call fcn.1000c370
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.1000c400
add esp, 8
movzx eax, al
test eax, eax
je 0x100098c2
xor al, al
jmp 0x10009a22
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.10006850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x54]
call fcn.1000b9f0
mov ecx, eax
call fcn.10008460
mov esi, eax
lea ecx, [ebp - 0x54]
call fcn.1000f970
add esi, eax
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.1000b9f0
mov ecx, eax
call fcn.10008460
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x38]
call fcn.10010210
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000993d
cmp dword [ebp - 0x1c], 1
je 0x10009944
cmp dword [ebp - 0x1c], 3
je 0x100099de
jmp 0x100099f6
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
call fcn.1000b9f0
mov ecx, eax
call fcn.10008460
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x18], edx
je 0x100099a7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x54]
call fcn.1000b9f0
mov ecx, eax
call fcn.10008460
push eax
call fcn.1001857c
add esp, 0x10
cmp dword [ebp - 0x18], eax
je 0x100099a7
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007a30
mov al, byte [ebp - 0xd]
jmp 0x10009a22
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100099ca
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007a30
mov al, byte [ebp - 0xe]
jmp 0x10009a22
cmp dword [ebp - 0x18], 0
jne 0x100099dc
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.1000b360
jmp 0x10009a0e
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007a30
mov al, byte [ebp - 0xf]
jmp 0x10009a22
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007a30
mov al, byte [ebp - 0x10]
jmp 0x10009a22
jmp 0x100098d5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001e770
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001e5e6
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x70723ab
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1d6472b1
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x465d70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4873b0]
jne 0x465d7a
repz ret
jmp fcn.0046fdf0
Function at 0x47f0f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
cmp dword [0x7b5ee8], 0x37
jne 0x47f1c0
push 0
push 0x457700
push 0
push 0x457710
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x457718
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0x457750
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x528]
push ecx
push 0x457778
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x928]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
push 0x45779c
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 0
push 0x4577b4
push 0
push 0x4577c4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov edx, dword [0x7ad934]
add edx, dword [ebp + 8]
mov eax, dword [0x7b5eec]
add eax, dword [ebp + 8]
mov cl, byte [eax + 0x12336]
mov byte [edx], cl
mov esp, ebp
pop ebp
ret 4
Function at 0x47f620
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c8
call fcn.00471b20
mov dword [ebp - 4], 0
jmp 0x47f63f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x47f6d0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x7b5ee8], 0x9e
jne 0x47f6c0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x4577e8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0
push 0x4578e0
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
lea edx, [ebp - 0x4a0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
cmp dword [ebp - 4], 0x9be51dc
jle 0x47f6cb
jmp 0x47f6d0
jmp 0x47f636
push 0x488400
mov eax, dword [0x7b5ee8]
push eax
mov ecx, dword [0x7ad934]
push ecx
call fcn.0047f5a0
mov dword [ebp - 0x4a4], 0
jmp 0x47f702
mov edx, dword [ebp - 0x4a4]
add edx, 1
mov dword [ebp - 0x4a4], edx
cmp dword [ebp - 0x4a4], 0x3e79e
jge 0x47f721
cmp dword [ebp - 0x4a4], 0x1e673
jne 0x47f71f
call fcn.0047f0d0
jmp 0x47f6f3
mov dword [ebp - 0x4a8], 0
jmp 0x47f73c
mov eax, dword [ebp - 0x4a8]
add eax, 1
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0xdd9a7
jge 0x47f772
cmp dword [0x7b5ee8], 0xc01
jne 0x47f770
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0x4578bc
push 0x457928
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
jmp 0x47f72d
jmp dword [0x7ad934]
Function at 0x40275c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40278b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040346c
jmp 0x4027a9
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026e4
mov edi, eax
test ebx, ebx
je 0x4027a9
cmp dword [esi], 0
je 0x4027a9
dec ebx
jmp 0x402792
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40282c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40e03c], 0x8088405
inc edx
mov dword [0x40e03c], edx
mul edx
mov eax, edx
ret

Function at 0x402948
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4029c0
xor eax, eax
push ebp
push 0x4029b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4029c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404514
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4046d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404575
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4046ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4045e7
xor eax, eax
push ebp
push 0x4045e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0040436c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4045c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40470c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045e7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4046c8
cmp byte [ebp - 0xd], 0
jne 0x404629
cmp byte [ebp - 0x12], 0
je 0x4046c8
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404642
dec ebx
cmp byte [ebx], 0x2e
je 0x404651
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404641
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4046c8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40467e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4046c8
cmp byte [ebp - 0xd], 0
je 0x4046c8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4046c8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406ea4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406edd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040346c
jmp 0x406ee6
mov eax, ebx
mov edx, esi
call fcn.004033d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406ef0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406f11
mov al, byte [esp]
jmp 0x406f13
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c2e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0040bf80
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403720
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40c342
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40d39c]
mov dl, 1
mov eax, dword [0x40be38]
call fcn.00407700
call fcn.00402e54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x428290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
jmp 0x4282aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282a0
mov eax, 1
add ebx, ebx
jne 0x4282c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282b8
jne 0x4282d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282b8
xor ecx, ecx
sub eax, 3
jb 0x4282e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42835a
mov ebp, eax
add ebx, ebx
jne 0x4282f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428324
inc ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428305
jne 0x428321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428305
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428344
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428335
jmp 0x4282a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428344
add edi, ecx
jmp 0x4282a6
pop esi
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283ac
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2dc28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2dc64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x428361
mov ecx, edi
jns 0x428390
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2dc6c]
or eax, eax
je 0x4283a6
mov dword [ebx], eax
add ebx, 4
jmp 0x42837e
call dword [esi + 0x2dc68]
mov ebp, dword [esi + 0x2dc70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4283e0
sub esp, 0xffffff80
jmp 0x401e60
Function at 0x401229
Capabilities:
Create process on windows

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00402d80
push edi
mov dword [ebp - 8], eax
call fcn.00401d50
push eax
pop ebx
push ebx
call fcn.00402d80
push eax
pop esi
add esp, 0xc
xor eax, eax
or ebx, ebx
mov dword [ebp - 4], esi
jle 0x40128b
push edi
pop ecx
sub esi, edi
mov dl, byte [ecx]
cmp dl, 0x2e
je 0x401284
inc eax
mov byte [esi + ecx], dl
inc ecx
cmp eax, ebx
jl 0x401272
jmp 0x40128b
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0
push dword [ebp - 4]
push str._s.cab
push dword [ebp - 8]
call fcn.00401cb9
add esp, 0xc
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
leave
ret

Function at 0x4012b4
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x4348f4]
push ecx
pop ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
mov dword [ebp - 0x118], eax
call edi
sub esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
call ebx
lea ecx, [ebp - 0x12c]
push ecx
push esi
lea ecx, [ebp - 0x124]
push ecx
push eax
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push dword [0x4348f4]
lea eax, [ebp - 0x110]
push eax
mov dword [0x4348f8], eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or eax, eax
je 0x4013d6
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
call fcn.00401000
push dword [ebp - 0x114]
call fcn.00401b21
add esp, 0xc
push esi
push esi
push 3
push esi
push esi
push 0x100
push dword [0x4348f4]
call ebx
push eax
pop ebx
lea eax, [ebp - 0x12c]
push eax
push esi
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x118]
push dword [0x4348f4]
call edi
push 2
push dword [ebp - 0x114]
call edi
sub eax, eax
inc eax
jmp 0x4013d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret
Function at 0x4013e7
Capabilities:
Copy file
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov esi, str..exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x11c]
sub ebx, ebx
push str._s_s
push eax
mov dword [ebp - 0x264], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x27c], ebx
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x278], eax
jne 0x401465
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4015e4
mov esi, 0x104
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
mov edi, eax
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x280]
push eax
push 1
lea eax, [ebp - 0x25d]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x25d], 0x30
je 0x40159c
push esi
call fcn.00402d80
pop ecx
push esi
mov dword [ebp - 0x268], eax
call fcn.00402d80
push eax
pop edi
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00401d50
pop ecx
mov ebx, eax
push ebx
call fcn.00402d80
pop ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 0x274], eax
jle 0x401530
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x230]
sub dword [ebp - 0x26c], eax
mov al, byte [ebp + ecx - 0x230]
cmp al, 0x2e
je 0x401526
mov edx, dword [ebp - 0x26c]
add edx, ecx
inc ecx
cmp ecx, ebx
mov byte [ebp + edx - 0x230], al
jl 0x401505
jmp 0x401530
mov eax, dword [ebp - 0x274]
mov byte [eax + ecx], 0
push dword [ebp - 0x274]
push dword [ebp - 0x270]
push str._s_s.cab
push esi
push dword [ebp - 0x268]
call fcn.00401d34
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x270]
push str._s_s
push esi
push edi
call fcn.00401d34
add esp, 0x14
push 1
push dword [ebp - 0x268]
mov dword [0x4348f4], edi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or eax, eax
je 0x40159a
mov ecx, dword [ebp - 0x268]
call fcn.004012b4
or eax, eax
je 0x40159a
inc dword [ebp - 0x264]
xor ebx, ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
or eax, eax
je 0x4015bc
cmp dword [ebp - 0x264], 2
jne 0x4015d2
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x27c], 1
cmp dword [ebp - 0x27c], ebx
je 0x40146a
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret