joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414040
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x4e3700
push 0x4d3
call fcn.0048e144
add esp, 8
call fcn.00491749
test eax, eax
je 0x414064
inc eax
jne 0x414069
or eax, 0xffffffff
jmp 0x4140c3
push 0x4c8400
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__strcpy
add esp, 8
mov ecx, dword [0x4cecf8]
lea ecx, [ecx + ecx*2]
add ecx, 0x4d615c
push ecx
lea eax, [ebp - 0x64]
push eax
call sub.cw3220.DLL__strcat
add esp, 8
push 0x4c8408
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__strcat
add esp, 8
lea ecx, [ebp - 0x64]
push ecx
call sub.cw3220.DLL__system
pop ecx
inc eax
jne 0x4140c1
call fcn.004916c2
dec eax
je 0x4140a7
or eax, 0xffffffff
jmp 0x4140c3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x416e43
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push dword [ebp + 8]
push 0x4c8887
lea eax, [ebp - 0x64]
push eax
call sub.cw3220.DLL__sprintf
add esp, 0xc
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__system
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x416e6b
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push dword [ebp + 8]
push 0x4c8893
lea eax, [ebp - 0x64]
push eax
call sub.cw3220.DLL__sprintf
add esp, 0xc
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__system
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x416e95
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0xc]
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x4c889f
push esi
call sub.cw3220.DLL__sscanf
add esp, 0x10
push 0x4c88ac
push 0x4c88a5
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x416f20
push ebx
push 1
push 4
lea eax, [ebp - 8]
push eax
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x416f20
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jne 0x416f0d
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x416f20
cmp dword [edi], 0
jne 0x416fa9
jmp 0x416f20
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jae 0x416ed1
push esi
push 0x4c88b0
lea ecx, [ebp - 0x70]
push ecx
call sub.cw3220.DLL__sprintf
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call sub.cw3220.DLL__system
pop ecx
test ebx, ebx
je 0x416fa9
push ebx
call sub.cw3220.DLL__rewind
pop ecx
xor esi, esi
push ebx
push 1
push 4
lea eax, [ebp - 8]
push eax
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x416fa9
add esi, 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jne 0x416f91
push 0
push esi
push ebx
call sub.cw3220.DLL__fseek
add esp, 0xc
mov dword [edi], 1
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fwrite
add esp, 0x10
cmp eax, 1
jae 0x416fa9
jmp 0x416fa9
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x416fa9
add esi, 4
jmp 0x416f49
push ebx
call sub.cw3220.DLL__fclose
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416fb9
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x4c88bc
call sub.cw3220.DLL__unlink
pop ecx
push 0x4c88c3
call sub.cw3220.DLL__system
pop ecx
push 0x4c88d3
push 0x4c88cc
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x416ffa
xor eax, eax
jmp 0x4170d7
push 0x4c88dd
push 0x4c88d6
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
push ebx
push 1
push 2
lea edx, [ebp - 0x16]
push edx
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x4170c2
push ebx
push 1
push 8
lea ecx, [ebp - 0x14]
push ecx
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x4170c2
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push 0x4c88e0
lea edx, [ebp - 0x58]
push edx
call sub.cw3220.DLL__sprintf
add esp, 0x10
cmp dword [ebp - 8], 1
jne 0x41707d
push 1
lea ecx, [ebp - 0x58]
push ecx
push edi
call sub.OWL50f.dll__TListBoxData_AddString_qpxc4bool
add esp, 0xc
jmp 0x41708c
push 0
lea eax, [ebp - 0x58]
push eax
push edi
call sub.OWL50f.dll__TListBoxData_AddString_qpxc4bool
add esp, 0xc
test esi, esi
je 0x4170b7
push esi
push 1
push 4
lea edx, [ebp - 8]
push edx
call sub.cw3220.DLL__fwrite
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push esi
push 1
push 4
lea eax, [ebp - 0x1c]
push eax
call sub.cw3220.DLL__fwrite
add esp, 0x10
inc dword [ebp - 4]
inc dword [ebp - 8]
jmp 0x41701a
test esi, esi
je 0x4170cd
push esi
call sub.cw3220.DLL__fclose
pop ecx
push ebx
call sub.cw3220.DLL__fclose
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f812
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push dword [ebp + 8]
push 0x4ca87c
lea eax, [ebp - 0x64]
push eax
call sub.cw3220.DLL__sprintf
add esp, 0xc
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__system
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x41f83a
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push dword [ebp + 8]
push 0x4ca887
lea eax, [ebp - 0x64]
push eax
call sub.cw3220.DLL__sprintf
add esp, 0xc
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__system
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41f864
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0xc]
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x4ca892
push esi
call sub.cw3220.DLL__sscanf
add esp, 0x10
push 0x4ca89f
push 0x4ca898
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x41f8ef
push ebx
push 1
push 4
lea eax, [ebp - 8]
push eax
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x41f8ef
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jne 0x41f8dc
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x41f8ef
cmp dword [edi], 0
jne 0x41f978
jmp 0x41f8ef
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jae 0x41f8a0
push esi
push 0x4ca8a3
lea ecx, [ebp - 0x70]
push ecx
call sub.cw3220.DLL__sprintf
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call sub.cw3220.DLL__system
pop ecx
test ebx, ebx
je 0x41f978
push ebx
call sub.cw3220.DLL__rewind
pop ecx
xor esi, esi
push ebx
push 1
push 4
lea eax, [ebp - 8]
push eax
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x41f978
add esi, 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jne 0x41f960
push 0
push esi
push ebx
call sub.cw3220.DLL__fseek
add esp, 0xc
mov dword [edi], 1
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fwrite
add esp, 0x10
cmp eax, 1
jae 0x41f978
jmp 0x41f978
push ebx
push 1
push 4
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x41f978
add esi, 4
jmp 0x41f918
push ebx
call sub.cw3220.DLL__fclose
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f988
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
lea edi, [ebp - 0x11c]
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x4ca8ae
call sub.cw3220.DLL__system
pop ecx
push 0x4ca8bd
push 0x4ca8b6
call sub.cw3220.DLL__fopen
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41f9cc
xor eax, eax
jmp 0x41fb5d
push 0x4ca8c7
push 0x4ca8c0
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 1
push 0
mov edx, dword [ebp - 8]
dec edx
shl edx, 8
push edx
push dword [ebp - 0x18]
call sub.cw3220.DLL__fseek
add esp, 0xc
push dword [ebp - 0x18]
push 1
push pe_nt_image_headers32
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jb 0x41fb46
xor ebx, ebx
cmp byte [edi + ebx], 0xe5
jne 0x41fa38
mov dword [ebp - 0x10], 1
jmp 0x41fb1d
cmp byte [edi + ebx], 0xff
je 0x41fb0e
cmp byte [edi + ebx], 0xe5
je 0x41fb0e
xor eax, eax
mov al, byte [edi + ebx + 0xb]
xor edx, edx
mov dl, byte [edi + ebx + 0xa]
add edx, 0xffffffd0
mov ecx, edx
add ecx, ecx
lea ecx, [ecx + ecx*4]
add eax, ecx
add eax, 0xffffffd0
mov dword [ebp - 0x14], eax
cmp byte [edi + ebx], 0
jne 0x41fb0e
inc dword [ebp - 4]
push 8
lea eax, [edi + 1]
add eax, ebx
push eax
lea edx, [ebp - 0x130]
push edx
call sub.cw3220.DLL__memcpy
add esp, 0xc
mov byte [ebp - 0x128], 0
lea ecx, [ebp - 0x130]
push ecx
push dword [ebp - 0x14]
push 0x4ca8ca
lea eax, [ebp - 0x16c]
push eax
call sub.cw3220.DLL__sprintf
add esp, 0x10
cmp dword [ebp - 0x14], 1
jne 0x41facf
push 1
lea edx, [ebp - 0x16c]
push edx
push dword [ebp + 0xc]
call sub.OWL50f.dll__TListBoxData_AddString_qpxc4bool
add esp, 0xc
jmp 0x41fae3
push 0
lea ecx, [ebp - 0x16c]
push ecx
push dword [ebp + 0xc]
call sub.OWL50f.dll__TListBoxData_AddString_qpxc4bool
add esp, 0xc
test esi, esi
je 0x41fb0e
push esi
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call sub.cw3220.DLL__fwrite
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x1c], edx
push esi
push 1
push 4
lea ecx, [ebp - 0x1c]
push ecx
call sub.cw3220.DLL__fwrite
add esp, 0x10
add ebx, 0x20
cmp ebx, 0x100
jl 0x41fa26
cmp dword [ebp - 0x10], 0
jne 0x41fb46
mov eax, dword [ebp - 8]
add eax, 4
and eax, 0x8000000f
jns 0x41fb35
dec eax
or eax, 0xfffffff0
inc eax
inc eax
mov dword [ebp - 8], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jle 0x41f9f3
test esi, esi
je 0x41fb51
push esi
call sub.cw3220.DLL__fclose
pop ecx
push dword [ebp - 0x18]
call sub.cw3220.DLL__fclose
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43772e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 1
push 0xd6
push dword [ebp + 8]
call sub.cw3220.DLL__fwrite
add esp, 0x10
push ebx
push 4
push 1
push 0x4c9c9c
call sub.cw3220.DLL__fwrite
add esp, 0x10
push ebx
push 1
push 0x400
push 0x4e2f00
call sub.cw3220.DLL__fwrite
add esp, 0x10
pop ebx
pop ebp
ret
Function at 0x438a2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0x4d24d6
push 0x4d24c4
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
push 0
push 0x5ad
push ebx
call sub.cw3220.DLL__fseek
add esp, 0xc
push ebx
push 1
push 0x400
push 0x4e2f00
call sub.cw3220.DLL__fwrite
add esp, 0x10
push ebx
call sub.cw3220.DLL__fclose
pop ecx
pop ebx
pop ebp
ret
Function at 0x450080
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push 0x4e3700
push 0x826
call fcn.0048e144
add esp, 8
lea eax, [ebp - 0x64]
push eax
push 0x827
call fcn.0048e144
add esp, 8
push 3
lea edx, [ebp - 0x64]
push edx
push 0x4e3700
push dword [0x4e4434]
call fcn.00403ff0
add esp, 0x10
mov ebx, eax
cmp ebx, 2
jne 0x4500cf
or eax, 0xffffffff
jmp 0x450141
push 0x4d683c
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__strcpy
add esp, 8
mov ecx, dword [0x4cecf8]
lea ecx, [ecx + ecx*2]
add ecx, 0x4d615c
push ecx
lea eax, [ebp - 0x64]
push eax
call sub.cw3220.DLL__strcat
add esp, 8
cmp ebx, 6
jne 0x450114
push 0x4d6844
lea edx, [ebp - 0x64]
push edx
call sub.cw3220.DLL__strcat
add esp, 8
jmp 0x450125
push 0x4d685f
lea ecx, [ebp - 0x64]
push ecx
call sub.cw3220.DLL__strcat
add esp, 8
lea eax, [ebp - 0x64]
push eax
call sub.cw3220.DLL__system
pop ecx
inc eax
jne 0x45013f
call fcn.004916c2
dec eax
je 0x450125
or eax, 0xffffffff
jmp 0x450141
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4771b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x4771d3
or eax, 0xffffffff
jmp 0x4773bb
cmp dword [ebp + 0x10], 0
jne 0x4771e1
or eax, 0xffffffff
jmp 0x4773bb
cmp dword [ebp + 0x18], 0
jne 0x4771ef
or eax, 0xffffffff
jmp 0x4773bb
test ebx, ebx
jne 0x4771fb
or eax, 0xffffffff
jmp 0x4773bb
cmp dword [ebp + 0x20], 0
jne 0x477209
or eax, 0xffffffff
jmp 0x4773bb
push 0x4da378
lea edx, [ebp - 0x44]
push edx
call sub.cw3220.DLL__strcpy
add esp, 8
push 0x4da384
lea ecx, [ebp - 0x44]
push ecx
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
call fcn.004b54ec
lea eax, [ebp - 4]
push eax
push ebx
call fcn.004b4c35
add esp, 8
push dword [ebp + 0x20]
call fcn.00404052
pop ecx
mov dword [ebp - 8], eax
push esi
push 1
push 4
lea edx, [ebp - 4]
push edx
call sub.cw3220.DLL__fwrite
add esp, 0x10
push esi
push 1
push 4
lea ecx, [ebp - 8]
push ecx
call sub.cw3220.DLL__fwrite
add esp, 0x10
jmp 0x477282
push 0x4da397
push esi
call sub.cw3220.DLL__fprintf
add esp, 8
mov edi, 0x320
jmp 0x4772b2
push edi
push esi
push ebx
call fcn.004bbff4
add esp, 0xc
push ebx
call fcn.00404052
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4772bb
cmp ebx, dword [ebp + 0x20]
jne 0x47729e
test ebx, ebx
je 0x4772ca
push edi
push esi
push ebx
call fcn.004bbff4
add esp, 0xc
push dword [0x4d9f6c]
push 0xffffffffffffffff
push 0x4da3a5
push esi
call sub.cw3220.DLL__fprintf
add esp, 0x10
push esi
call sub.cw3220.DLL__fclose
pop ecx
push 0x4e2dbc
lea eax, [ebp - 0x44]
push eax
call sub.cw3220.DLL__strcpy
add esp, 8
push 0x4da3ad
lea edx, [ebp - 0x44]
push edx
call sub.cw3220.DLL__strcpy
add esp, 8
push 0x4da3b9
lea ecx, [ebp - 0x44]
push ecx
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
test esi, esi
jne 0x47733c
push 0x4e3700
push 0x280
call fcn.0048e144
add esp, 8
call fcn.00491684
or eax, 0xffffffff
jmp 0x4773bb
push esi
push 1
push 4
lea edx, [ebp + 0xc]
push edx
call sub.cw3220.DLL__fwrite
add esp, 0x10
push esi
push 1
push 4
mov ecx, dword [ebp + 0x18]
add ecx, 0x13
push ecx
call sub.cw3220.DLL__fwrite
add esp, 0x10
push esi
push 1
push 4
push 0x4d9f6c
call sub.cw3220.DLL__fwrite
add esp, 0x10
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push esi
call fcn.004a771b
add esp, 0xc
inc eax
jne 0x477391
push esi
call sub.cw3220.DLL__fclose
pop ecx
or eax, 0xffffffff
jmp 0x4773bb
push esi
call sub.cw3220.DLL__fclose
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx], 1
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x17]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x13]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff04
push ebx
push esi
push 0x4dab41
push dword [ebp + 0xc]
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x47f0d6
or eax, 0xffffffff
jmp 0x47f152
push 0x4dab44
push dword [ebp + 8]
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
test esi, esi
jne 0x47f0f8
push ebx
call sub.cw3220.DLL__fclose
pop ecx
or eax, 0xffffffff
jmp 0x47f152
push ebx
push 0xfa
push 1
lea edx, [ebp - 0xfc]
push edx
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 0xfa
jl 0x47f12b
push esi
push eax
push 1
lea ecx, [ebp - 0xfc]
push ecx
call sub.cw3220.DLL__fwrite
add esp, 0x10
jmp 0x47f0f8
test eax, eax
jle 0x47f142
push esi
push eax
push 1
lea eax, [ebp - 0xfc]
push eax
call sub.cw3220.DLL__fwrite
add esp, 0x10
push esi
call sub.cw3220.DLL__fclose
pop ecx
push ebx
call sub.cw3220.DLL__fclose
pop ecx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f158
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff04
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
push 0x4dab47
push dword [ebp + 0x10]
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
test esi, esi
jne 0x47f188
or eax, 0xffffffff
jmp 0x47f256
push 0x4dab4a
push dword [ebp + 8]
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x47f1ad
push esi
call sub.cw3220.DLL__fclose
pop ecx
or eax, 0xffffffff
jmp 0x47f256
push ebx
push 0xfa
push 1
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 0xfa
jl 0x47f1d4
push esi
push eax
push 1
push edi
call sub.cw3220.DLL__fwrite
add esp, 0x10
jmp 0x47f1ad
test eax, eax
jle 0x47f1e5
push esi
push eax
push 1
push edi
call sub.cw3220.DLL__fwrite
add esp, 0x10
push ebx
call sub.cw3220.DLL__fclose
pop ecx
push 0x4dab4d
push dword [ebp + 0xc]
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x47f20e
push esi
call sub.cw3220.DLL__fclose
pop ecx
or eax, 0xffffffff
jmp 0x47f256
push ebx
push 0xfa
push 1
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 0xfa
jl 0x47f235
push esi
push eax
push 1
push edi
call sub.cw3220.DLL__fwrite
add esp, 0x10
jmp 0x47f20e
test eax, eax
jle 0x47f246
push esi
push eax
push 1
push edi
call sub.cw3220.DLL__fwrite
add esp, 0x10
push ebx
call sub.cw3220.DLL__fclose
pop ecx
push esi
call sub.cw3220.DLL__fclose
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, dword [ebp + 8]
push 0
push 0x4df86b
call sub.cw3220.DLL__access
add esp, 8
test eax, eax
je 0x4a168c
push 0x4df893
push 0x4df87f
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4a166e
or eax, 0xffffffff
jmp 0x4a179b
mov word [ebp - 4], 0
push ebx
push 1
push 2
lea edx, [ebp - 4]
push edx
call sub.cw3220.DLL__fwrite
add esp, 0x10
push ebx
call sub.cw3220.DLL__fclose
pop ecx
push 0x4df8aa
push 0x4df896
call sub.cw3220.DLL__fopen
add esp, 8
mov ebx, eax
push 0
push 0
push ebx
call sub.cw3220.DLL__fseek
add esp, 0xc
push ebx
push 1
push 2
lea eax, [ebp - 2]
push eax
call sub.cw3220.DLL__fread
add esp, 0x10
push 2
push 0
push ebx
call sub.cw3220.DLL__fseek
add esp, 0xc
mov word [ebp - 4], 0
push ebx
push 1
push 2
lea edx, [ebp - 4]
push edx
call sub.cw3220.DLL__fwrite
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 8], ecx
push ebx
push 1
push 1
lea eax, [esi + 0xc]
push eax
call sub.cw3220.DLL__fwrite
add esp, 0x10
inc dword [ebp - 8]
push esi
call fcn.004a283b
pop ecx
jmp 0x4a1745
push esi
call fcn.004a284e
pop ecx
mov byte [ebp - 9], al
push ebx
push 1
push 1
lea edx, [ebp - 9]
push edx
call sub.cw3220.DLL__fwrite
add esp, 0x10
push esi
call fcn.004a286f
pop ecx
fstp dword [ebp - 0x10]
push ebx
push 1
push 4
lea ecx, [ebp - 0x10]
push ecx
call sub.cw3220.DLL__fwrite
add esp, 0x10
add dword [ebp - 8], 5
push esi
call fcn.004a285b
pop ecx
cmp dword [esi + 8], 0
jne 0x4a1704
push 2
mov eax, dword [ebp - 8]
add eax, 2
neg eax
push eax
push ebx
call sub.cw3220.DLL__fseek
add esp, 0xc
push ebx
push 1
push 2
lea edx, [ebp - 8]
push edx
call sub.cw3220.DLL__fwrite
add esp, 0x10
push 0
push 0
push ebx
call sub.cw3220.DLL__fseek
add esp, 0xc
inc word [ebp - 2]
push ebx
push 1
push 2
lea ecx, [ebp - 2]
push ecx
call sub.cw3220.DLL__fwrite
add esp, 0x10
push ebx
call sub.cw3220.DLL__fclose
pop ecx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57e590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xda000]
mov dword [edi + 0xfe1c0], 0xb84e4397
push edi
jmp 0x57e5ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57e5c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57e5b0
mov eax, 1
add ebx, ebx
jne 0x57e5d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57e5e4
jne 0x57e603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57e603
dec eax
add ebx, ebx
jne 0x57e5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57e5c8
add ebx, ebx
jne 0x57e5ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57e655
xor ecx, ecx
sub eax, 3
jb 0x57e61b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57e68a
sar eax, 1
mov ebp, eax
jmp 0x57e626
add ebx, ebx
jne 0x57e626
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57e5f4
inc ecx
add ebx, ebx
jne 0x57e634
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57e5f4
add ebx, ebx
jne 0x57e641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57e636
jne 0x57e652
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57e636
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57e674
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57e666
jmp 0x57e5b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57e674
add edi, ecx
jmp 0x57e5b6
pop esi
mov edi, esi
mov ecx, 0x4afc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57e692
cmp byte [edi], 0x16
jne 0x57e692
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 0x57e697
lea edi, [esi + 0x173000]
mov eax, dword [edi]
or eax, eax
je 0x57e70f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180c50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x180d54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57e6c4
mov ecx, edi
jns 0x57e6f3
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 + 0x180d58]
or eax, eax
je 0x57e709
mov dword [ebx], eax
add ebx, 4
jmp 0x57e6e1
call dword [esi + 0x180d68]
mov ebp, dword [esi + 0x180d5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x57e743
sub esp, 0xffffff80
jmp 0x4a74fe