joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x1c
test edx, edx
je 0x100011d0
cmp word [edx], 0
mov esi, edx
je 0x10001210
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10001158
sub eax, esi
sar eax, 1
add eax, 1
lea edx, [ebp - 0x10]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x12]
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
lea edx, [ebp - 0x10]
sub esp, 0x14
test eax, eax
je 0x100011c8
movzx eax, word [ebp - 0x12]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
add eax, eax
mov dword [esp + 4], esi
mov word [ebp - 0x12], ax
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp], ebx
call edi
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov dword [esp], ebx
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x12]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
mov eax, 1
jmp 0x10001168
Function at 0x10001550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, 3
mov edi, dword fs:[0x18]
sub esp, 0x44
mov eax, dword [esi + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x10001638
cmp dword [edi + 0x34], 0x20
jne 0x100015d0
sub ebx, 1
je 0x100015d0
mov dword [esp], 0x64
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
jmp 0x10001567
test byte [0x100110ac], 8
jne 0x100015e8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [esi + 8]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_update__s__error__lu_n
mov dword [esp + 8], str.update_job_status
mov dword [esp + 4], 0x100110ac
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x28
mov dword [esp], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edx, dword [ebp - 0x34]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x10001680
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x100015d9
mov eax, dword [esi + 0x50]
mov dword [esp], edx
mov dword [esp + 0x10], 0
mov dword [ebp - 0x2a], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 8], 0x1e
mov dword [ebp - 0x26], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x22], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x1e], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1a], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x16], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x12], eax
movzx eax, word [esi + 0x6c]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2a]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x34]
sub esp, 0x14
jmp 0x10001667
Function at 0x10005680
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
test byte [0x100110ac], 8
jne 0x100057bb
mov dword [esp], 0x10011080
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
cmp esi, dword [ebp + 0x10]
ja 0x100057b1
nop
lea esi, [esi]
mov ebx, dword [0x100110a0]
cmp ebx, 0x100110a0
jne 0x100056e6
jmp 0x10005780
mov ebx, dword [ebx]
cmp ebx, 0x100110a0
je 0x10005780
cmp dword [ebx + 0x14], esi
jne 0x100056d8
mov eax, dword [ebx + 8]
test byte [0x100110ac], 8
jne 0x10005730
mov dword [esp], eax
call edi
sub esp, 4
test eax, eax
je 0x10005771
add esi, 1
cmp dword [ebp + 0x10], esi
jae 0x100056c0
xor ebx, ebx
mov dword [esp], 0x10011080
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.deleting_job__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.NetrJobDel
mov dword [esp + 4], 0x100110ac
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
sub esp, 4
test eax, eax
jne 0x10005703
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
jmp 0x1000570d
test byte [0x100110ac], 8
je 0x100057b1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.job__lu_not_found_n
mov dword [esp + 8], str.NetrJobDel
mov dword [esp + 4], 0x100110ac
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ebx, 0xede
jmp 0x1000570d
mov eax, dword [ebp + 8]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str._s__lu__lu_n
mov dword [esp + 8], str.NetrJobDel
mov dword [esp + 4], 0x100110ac
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10005699
Function at 0x10005c00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
cmp word [eax], 0
je 0x10005d20
mov ebx, eax
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10005c18
sub eax, ebx
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x10005d3d
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x10005c40
cmp word [edi], 0
je 0x10005c8c
mov ecx, edi
nop
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10005c60
mov eax, ecx
sub eax, edi
sar eax, 1
cmp edi, ecx
jne 0x10005c84
jmp 0x10005c8c
xor ebx, ebx
mov word [edi + eax*2 - 2], bx
sub eax, 1
je 0x10005c8c
cmp word [edi + eax*2 - 2], 0x5c
je 0x10005c78
mov esi, dword fs:[0x18]
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x10005d10
mov ecx, dword [esi + 0x34]
cmp ecx, 3
jne 0x10005ce8
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov ebx, eax
test eax, eax
je 0x10005d18
xor ecx, ecx
mov word [eax], cx
mov eax, edi
call sym._create_directory
test eax, eax
jne 0x10005cf5
mov edx, 0x5c
mov word [ebx], dx
jmp 0x10005c93
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x10005cf5
mov eax, 0x80070003
jmp 0x10005cf5
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x10005d3d
xor eax, eax
mov word [edi], ax
jmp 0x10005c8c
mov eax, 0x8007000e
jmp 0x10005d04
Function at 0x10005d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0xc
mov edi, dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov ecx, eax
sub esp, 8
mov eax, str._tasks_
nop
add eax, 2
cmp word [eax], 0
jne 0x10005d80
sub eax, str._tasks_
sar eax, 1
cmp word [ebx], 0
mov edx, eax
je 0x10005daf
mov edx, ebx
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10005da0
sub edx, ebx
sar edx, 1
add edx, eax
add ecx, edx
lea eax, [ecx + ecx]
mov dword [ebp - 0x10], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, eax
test eax, eax
je 0x10005e70
mov ecx, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [ebp - 0x10], eax
mov dword [esp + 4], ecx
call edi
mov edx, dword [ebp - 0x10]
sub esp, 8
cmp word [edx], 0
mov ecx, edx
je 0x10005df9
mov esi, esi
lea edi, [edi]
add ecx, 2
cmp word [ecx], 0
jne 0x10005df0
xor eax, eax
nop
lea esi, [esi]
movzx edi, word [eax + str._tasks_]
mov word [ecx + eax], di
add eax, 2
test di, di
jne 0x10005e00
movzx ecx, word [edx]
test esi, esi
je 0x10005e43
test cx, cx
je 0x10005e7a
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10005e28
sub eax, edx
sub eax, 2
add eax, edx
mov dword [esi], eax
cmp word [ebx], 0x5c
jne 0x10005e49
add ebx, 2
cmp word [ebx], 0x5c
je 0x10005e40
test cx, cx
mov ecx, edx
je 0x10005e59
add ecx, 2
cmp word [ecx], 0
jne 0x10005e50
xor eax, eax
nop
lea esi, [esi]
movzx esi, word [ebx + eax]
mov word [ecx + eax], si
add eax, 2
test si, si
jne 0x10005e60
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffe
jmp 0x10005e36
Function at 0x10008560
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x100110c0], 8
jne 0x10008638
test esi, esi
jne 0x1000867a
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x10008598
cmp ax, 0x5c
jne 0x100085ab
nop
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x5c
je 0x10008598
cmp ax, 0x2f
je 0x10008598
test ax, ax
je 0x10008670
mov eax, ebx
xor edx, edx
call sym._get_full_name
mov ebx, eax
test eax, eax
je 0x10008684
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
je 0x100085f0
xor esi, esi
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword fs:[0x18]
mov esi, dword [edi + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
cmp esi, 0x8007010b
jne 0x100085d9
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x100085d7
mov esi, dword [edi + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
jmp 0x100085d9
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s__lx_n
mov dword [esp + 8], str.SchRpcDelete
mov dword [esp + 4], 0x100110c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000857c
mov esi, 0x80070005
jmp 0x100085e2
mov esi, 0x80070057
jmp 0x100085e2
mov esi, 0x8007000e
jmp 0x100085e2
Function at 0x10010260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100102b8
cmp byte [esi + ebx - 1], 0xa
je 0x1001028c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100180a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100108e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10010ab8
mov edi, dword [0x100180a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x100109c7
test byte [0x100111e8], 8
jne 0x10010a60
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100111f8], 8
jne 0x10010a20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10010969
cmp esi, 3
jbe 0x100109d8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1001097a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10015b08]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10010969
mov dword [esp], 0x100111f8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10010940
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10010940
mov dword [esp], 0x100111e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1001092b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10010933
mov eax, 0xffffffff
jmp 0x100109c7
Function at 0x700f9c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x700f9d3
pop dword [ebp - 0x40]
mov eax, 0xf79e492a
add eax, 0xf62b0a9
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x71d7d717
sub dword [ebp - 0x50], 0x238591cc
mov dword [ebp - 0x4c], 0xcf21a0b4
add dword [ebp - 0x4c], 0x6311ab91
mov dword [ebp - 0x48], 0xec8d9ac6
add dword [ebp - 0x48], 0x5fbea968
mov dword [ebp - 0x44], 0x2c6d1cf7
sub dword [ebp - 0x44], 0x2c6d1cf7
lea eax, [ebp - 0x50]
push eax
mov eax, 0x3f4e6700
add eax, 0xc7b2d930
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xc57cd52c
sub dword [ebp - 0x50], 0x510a6bd6
mov dword [ebp - 0x4c], 0x34165b8d
sub dword [ebp - 0x4c], 0xf2a9fa18
mov dword [ebp - 0x48], 0x33b0bd12
add dword [ebp - 0x48], 0x2fbeaf5a
mov dword [ebp - 0x44], 0xb04d8fb0
add dword [ebp - 0x44], 0x4fb27050
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x4a66a098
add eax, 0xbc9a9f9c
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3afee
push 0
call eax
mov ecx, 0x5055bacc
add ecx, 0xafaa9084
xor esi, esi
add esi, eax
mov edi, 0x7021400
add edi, dword [ebp - 0x40]
mov ebx, 0xec3415ec
sub dword [ebp - 4], 0xb527f5fe
mov edx, dword [edi]
sub dword [ebp - 0x1c], 0x96c5117a
sub edx, ebx
sub dword [ebp - 0x1c], 0xdac614bd
mov dword [esi], edx
xor dword [ebp - 0x18], 0xaecb2dc
add esi, 0xe4e77902
add esi, 0x1b188702
add edi, 0xbc1bd6a
sub edi, 0xbc1bd66
loop 0x700faeb
add eax, 0x3bd29282
sub eax, 0x3bd1726f
xor ebx, ebx
add ebx, eax
add eax, 0x7ddadd84
sub eax, 0x7ddadd7f
mov ecx, 0x3304dc07
add ecx, 0xd3fb23f9
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4072c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4073fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4073e6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x407321
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073e6
cmp dword [ebp - 0x10], 0
jne 0x407336
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x4073e6
cmp dword [ebp - 0x10], 0x70000000
jb 0x407344
call fcn.00405d0c
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x4072ea
test eax, eax
jne 0x4073e6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x407394
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073e6
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x40739f
dec esi
test esi, esi
je 0x4073ad
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x40739e
cmp dword [ebp - 0xc], 7
jne 0x4073b8
test esi, esi
je 0x4073b8
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x4073d9
test esi, esi
je 0x4073d9
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407403
lea eax, [ebp - 0x14]
call fcn.00403198
ret
Function at 0x409ec4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409f97
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409fb0
push ebx
push 0x409fbc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409f44
mov al, 0x6a
call fcn.00409b20
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409e98
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409f4d
call fcn.00409e98
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f9e
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x7d0100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x66c000]
push edi
or ebp, 0xffffffff
jmp 0x7d0122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7d0129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d0118
mov eax, 1
add ebx, ebx
jne 0x7d013b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7d014c
jne 0x7d016b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d016b
dec eax
add ebx, ebx
jne 0x7d0158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7d0130
add ebx, ebx
jne 0x7d0167
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7d01bd
xor ecx, ecx
sub eax, 3
jb 0x7d0183
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7d01f2
sar eax, 1
mov ebp, eax
jmp 0x7d018e
add ebx, ebx
jne 0x7d018e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d015c
inc ecx
add ebx, ebx
jne 0x7d019c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d015c
add ebx, ebx
jne 0x7d01a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7d019e
jne 0x7d01ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7d019e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7d01dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7d01ce
jmp 0x7d011e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7d01dc
add edi, ecx
jmp 0x7d011e
pop esi
mov edi, esi
mov ecx, 0x2d62d4
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x7d0217
cmp byte [edi], 0x35
jne 0x7d01fc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x7d01fa
lea edi, [esi + 0x7a7000]
mov eax, dword [edi]
or eax, eax
je 0x7d025f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7c3c40]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7c3d58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7d021d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7c3d5c]
or eax, eax
je 0x7d0259
mov dword [ebx], eax
add ebx, 4
jmp 0x7d023a
call dword [esi + 0x7c3d6c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7d0290
cmp al, 0xef
ja 0x7d0283
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7d0265
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7d0272
mov ebp, dword [esi + 0x7c3d60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x7d02c4
sub esp, 0xffffff80
jmp 0x341230
Function at 0x1000cd31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002cd97
call fcn.10017073
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000cdae
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000cdae
call fcn.10005a99
mov esi, eax
jmp 0x1000ce85
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000cdd1
call fcn.10005a99
jmp 0x1000ce78
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000cdc7
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000ce01
mov esi, 0x8007000e
jmp 0x1000ce7a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000d77d
jmp 0x1000ce27
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cdfa
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000cdc7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1000d77d
mov esi, eax
test edi, edi
je 0x1000ce85
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000ce9e
lea ecx, [ebp - 0x418]
call fcn.1000c4af
mov eax, esi
call fcn.10016fc0
ret 0x10

Function at 0x1000d77d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1000d78c
pop dword [ebp - 0x34]
mov eax, 0xfc9d32c6
sub eax, 0xec9c5b3a
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3f0a1
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x4340
xor edx, edx
add edx, eax
mov ebx, 0xc503dc22
add ebx, 0x4b00cfde
add ebx, dword [ebp - 0x34]
mov edi, 0x73db98df
mov dword [ebp - 0x20], 0xbad23245
mov esi, dword [ebx]
add dword [ebp - 8], 0xd96e9e88
sub esi, edi
sub dword [ebp - 0x2c], eax
mov dword [edx], esi
xor dword [ebp - 0x28], 0x97704efa
add edx, 0xa85606d8
add edx, 0x57a9f92c
add ebx, 4
loop 0x1000d7dc
add eax, 0xffd3
mov ebx, eax
add eax, 5
mov ecx, 0x1dc4a1a8
sub ecx, 0xdc4a1a8
add ecx, dword [ebp - 0x34]
call ebx
leave
ret