joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10142b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10197a5c], 0xbaf
mov dword [0x10197a58], 0x77a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10187584]
mov dh, byte [eax + 0x10187555]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x2c], ecx
jne 0x10142b5b
lea eax, [ebp - 0x20]
mov dword [0x10197a5c], 0x8c2
mov dword [0x10197a58], 0x2310
mov dword [ebp - 0x30], eax
call fcn.101428ef
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1014252d
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x10142c77
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x10197a58]
add ecx, 0xffffee8b
mov dword [0x10197a58], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10143112
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x10197a5c], 0x322
mov dword [ecx + 0xd0], 0x4550
mov dword [0x10197a58], 0xfb1
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x48], ecx
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x10142c77
mov eax, dword [ebp - 0x3c]
add eax, 0x2094
mov ecx, dword [0x10197a5c]
add ecx, 0xfffff237
mov dword [0x10197a58], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x10142f8a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10197a5c]
add eax, 0xfffffd5c
mov dword [0x10197a5c], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x10197a58], 0x2650
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10197a5c], 0x129
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10142ff9
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x101430e9
jmp 0x101430fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x10143026
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x10142ff9
mov eax, dword [ebp - 0x20]
mov ecx, 0x35f0
mov dword [0x10197a58], 0x1fdb
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x101430fd
mov eax, 0x199d
mov dword [0x10197a58], 0x388
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
jne 0x101430fd
mov eax, 0x199d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
jne 0x101430fd
mov eax, 0xfffff9e7
mov dword [0x10197a58], 0xffffe3d2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
jne 0x101430fd
mov eax, 0x29da
mov dword [0x10197a58], 0x13c5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
jne 0x101430fd
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
je 0x10142fd9
jmp 0x101430fd
mov eax, 1
mov dword [0x10197a5c], 0xfa2
mov dword [ebp - 0x24], eax
jmp 0x1014310a
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [0x10197a58], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
add esp, 0x24
pop ebp
ret
Function at 0x10143565
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.101437d1
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x10197a58], 0xda3
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10197a5c], 0xffffecc6
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
jne 0x10143649
mov eax, dword [ebp - 0x24]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ebp - 0x25]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov ah, byte [ebp - 0x2d]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x34], edx
jne 0x101435f5
jmp 0x1014367a
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x25], bh
mov byte [ebp - 0x2d], cl
je 0x1014367a
jmp 0x101435c7
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], ecx
jb 0x1014365b
jmp 0x101435bc
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x101435f5
mov al, byte [ebp - 0x2d]
test al, 1
jne 0x10143683
jmp 0x10143620
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x10197a58], 0x47ea
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x10197a5c], 0x114b
mov dword [ebp - 0x24], edx
jmp 0x101435bc
Function at 0x1014395b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10197a60], 0
mov dword [0x10197a64], 0
mov dword [0x10197a70], 0
mov dword [0x10197a58], 0x2bc
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x101439c2
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, ecx
add edi, 1
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x10197a60], edx
mov dword [0x10197a58], 0x97e
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10197a64], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10197a68], cl
mov ebx, dword [0x10197a5c]
add ebx, 0xfffff27d
mov dword [0x10197a58], ebx
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10197a68]
mov edx, dword [0x10197a64]
mov byte [ebx + edx], cl
mov edx, dword [0x10197a60]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10197a64]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10197a70], ecx
mov dword [0x10197a58], 0x2e2
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
xor cl, byte [edx + esi]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov dword [0x10197a58], 0x130b
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x101439ba
mov eax, dword [0x10197a64]
mov ecx, dword [0x10197a60]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x101439c2
Function at 0x10143abe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x10197a58], 0x1b4a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1014324e
lea ecx, [0x101426a5]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov dword [esp + 0x88], 0x157200
mov dword [0x10197a5c], 0x894
mov edx, dword [0x10197a44]
mov dword [esp + 0x38], edx
mov edx, dword [0x10197a48]
mov dword [esp + 0x64], edx
mov edx, dword [0x10197a4c]
mov dword [esp + 0x74], edx
mov edx, dword [0x10197a50]
mov dword [esp + 0x70], edx
mov edx, dword [0x10197a54]
mov dword [esp + 0x44], edx
mov dword [0x10197a58], 0x1e0a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10143b72
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10143b86
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10143b4f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [0x10197a5c], 0xe2d
mov dword [0x10197a58], 0xf67
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x7c], edx
call fcn.10142f8a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x10143bf7
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10142b30
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10197a5c], 0x5b1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x1001398
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.010016dd
add esi, 4
mov eax, dword [esi]
xor edi, edi
inc edi
test eax, eax
je 0x10013db
cmp byte [eax], 0x2d
jne 0x10013d6
jmp 0x10013c6
cmp cl, 0x6c
jne 0x10013db
mov dword [0x1002060], edi
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x10013bb
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10013b4
cmp dword [esi], 0
jne 0x10013e4
call fcn.01001118
mov eax, edi
jmp 0x100143a
push 0x1002080
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x1001433
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x271a
call fcn.010016a1
jmp 0x1001433
push 0xa
call dword [sym.imp.msvcrt.dll_putchar]
pop ecx
push dword [esi]
call fcn.01001127
test eax, eax
jne 0x1001430
push dword [esi]
push 0x2710
push edi
call fcn.01001632
add esp, 0xc
add esi, 4
cmp dword [esi], 0
jne 0x100140c
xor eax, eax
pop edi
pop esi
ret

Function at 0x10016e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0xa
pop esi
jmp 0x100170a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2747
jne 0x100171f
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [esi + esi*4]
shl esi, 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10016f1
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x401000
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x100
push 1
call fcn.00401487
mov ebp, eax
push 0x100
push 1
mov dword [esp + 0x28], ebp
call fcn.00401487
push 0x100
push 1
mov dword [esp + 0x28], eax
call fcn.00401487
push 0x40
push 1
mov ebx, eax
call fcn.00401487
add esp, 0x20
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push 0x100
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebp
call fcn.00401460
mov edx, eax
add esp, 8
mov edi, 0x405058
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x100
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
push esi
push 0x40504c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
je 0x4011bd
mov ebp, esi
mov ecx, 0x40
xor eax, eax
mov edi, ebx
push 0x100
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x405044
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401320
add esp, 0xc
test eax, eax
je 0x40113c
push ebx
call fcn.004011f0
add esp, 4
push 0x100
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x405030
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401320
add esp, 0xc
test eax, eax
je 0x40118b
push ebx
call fcn.004011f0
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ebp, [eax + ecx + 1]
or ecx, 0xffffffff
mov dword [esp + 0x24], ebp
add ebp, edx
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4010be
mov ebp, dword [esp + 0x18]
mov esi, edx
push ebp
call fcn.00401430
push esi
call fcn.00401430
push ebx
call fcn.00401430
mov eax, dword [esp + 0x28]
push eax
call fcn.00401430
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4011f0
Capabilities:
Get file attributes
Read .ini file
Set file attributes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x100
push 1
call fcn.00401487
mov esi, eax
push 0x100
push 1
mov dword [esp + 0x30], esi
call fcn.00401487
mov edi, dword [esp + 0x38]
add esp, 0x10
mov ebp, eax
push edi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0x100
push esi
push 0x405068
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
je 0x4012f6
mov dword [esp + 0x14], esi
mov edi, 0x405064
or ecx, 0xffffffff
xor eax, eax
add ebp, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov dword [esp + 0x1c], eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov ecx, dword [esp + 0x10]
mov esi, edi
lea edi, [ebx + ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov eax, dword [esp + 0x18]
and ecx, 3
mov ebp, dword [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
lea edx, [edx + eax + 1]
lea ebx, [ebx + eax + 2]
or ecx, 0xffffffff
lea edi, [edx + esi]
xor eax, eax
mov dword [esp + 0x14], edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
jne 0x401263
mov edx, dword [esp + 0x28]
push edx
push ebp
push 0x405068
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push esi
call fcn.00401430
push ebp
call fcn.00401430
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x401320
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x140
lea eax, [esp]
push ebx
push edi
push eax
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov eax, dword [esp + 0x154]
test eax, eax
je 0x401408
cmp ebx, 0xffffffff
je 0x4013fd
push ebp
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00401590
mov esi, dword [esp + 0x15c]
push esi
call fcn.00401590
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00401510
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x10
test eax, eax
jne 0x4013b7
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4013f8
lea edx, [esp + 0x3c]
push edx
call fcn.00401590
push esi
call fcn.00401590
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00401510
add esp, 0x10
test eax, eax
je 0x401385
mov ecx, dword [esp + 0x154]
push 0x5c
push ecx
lea edi, [esp + 0x148]
call fcn.00401460
mov edx, eax
add esp, 8
or ecx, 0xffffffff
xor eax, eax
inc edx
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, 1
push ebx
call ebp
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x140
ret
cmp ebx, 0xffffffff
je 0x4013fd
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop ebx
add esp, 0x140
ret

Function at 0x402fcd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405130
cmp edx, dword [eax]
je 0x402fef
add eax, 8
inc ecx
cmp eax, 0x4051c0
jl 0x402fe0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405130]
jne 0x40311d
mov eax, dword [0x4054d4]
cmp eax, 1
je 0x4030f7
test eax, eax
jne 0x403020
cmp dword [0x405084], 1
je 0x4030f7
cmp edx, 0xfc
je 0x40311d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403057
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402150
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40309a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043bc
push edi
call fcn.00403d00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402150
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402160
lea eax, [ebp - 0xa0]
push 0x40439c
push eax
call fcn.00402160
push dword [esi + 0x405134]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402160
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403c75
add esp, 0x2c
pop edi
jmp 0x40311d
lea eax, [ebp + 8]
lea esi, [esi + 0x405134]
push 0
push eax
push dword [esi]
call fcn.004038c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x52b7c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd7000]
push edi
jmp 0x52b7da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52b7e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b7d0
mov eax, 1
add ebx, ebx
jne 0x52b7f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52b804
jne 0x52b823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b823
dec eax
add ebx, ebx
jne 0x52b810
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52b7e8
add ebx, ebx
jne 0x52b81f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52b875
xor ecx, ecx
sub eax, 3
jb 0x52b83b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52b8aa
sar eax, 1
mov ebp, eax
jmp 0x52b846
add ebx, ebx
jne 0x52b846
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b814
inc ecx
add ebx, ebx
jne 0x52b854
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b814
add ebx, ebx
jne 0x52b861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52b856
jne 0x52b872
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52b856
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52b894
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52b886
jmp 0x52b7d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52b894
add edi, ecx
jmp 0x52b7d6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52b8b2
cmp byte [edi], 0x11
jne 0x52b8b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52b8b7
lea edi, [esi + 0x124000]
mov eax, dword [edi]
or eax, eax
je 0x52b92f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1802ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x180428]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52b8e4
mov ecx, edi
jns 0x52b913
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 + 0x18042c]
or eax, eax
je 0x52b929
mov dword [ebx], eax
add ebx, 4
jmp 0x52b901
call dword [esi + 0x18043c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52b960
cmp al, 0xef
ja 0x52b953
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52b935
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52b942
mov ebp, dword [esi + 0x180430]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x52b994
sub esp, 0xffffff80
jmp 0x425f74