joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bf03
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002bf1d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1002bf58
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
mov eax, dword [ebp - 0x14]
push dword [eax]
push dword [ebp - 0x18]
push 1
call fcn.10026d66
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x1002d1ea
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002d20e
xor eax, eax
jmp 0x1002d34a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.1002c889
add esp, 0x10
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002d236
xor eax, eax
jmp 0x1002d34a
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002c8ee
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002d255
xor eax, eax
jmp 0x1002d34a
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x421a
call fcn.1002c965
add esp, 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ebf
lea eax, [ebp + 8]
push eax
push 1
call fcn.1002c9f3
add esp, 0x14
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002ca82
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x1002d2c4
push 0x2d8c
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0
call fcn.1002cad7
add esp, 0x10
push dword [ebp - 4]
call fcn.1002c069
pop ecx
test eax, eax
jne 0x1002d2d5
xor eax, eax
jmp 0x1002d34a
lea eax, [ebp - 4]
push eax
push 0x4ce6
push 0x10d9
push 1
call fcn.1002cad7
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002d332
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002d30c
xor eax, eax
jmp 0x1002d34a
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002d325
xor eax, eax
jmp 0x1002d34a
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002d1b7
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002d343
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002d347
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10041006
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10041046
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0xf
push 5
call fcn.1003e6af
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x10041060
push 0x1b8c
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x10041209
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10041254
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shl eax, 2
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax + 0x20], ecx
jmp 0x1004127c
push 0
push 0x2385
push 0x417
push 0x39d
push 0x1c76
push 0x189f
push 0x24ff
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esp, ebp
pop ebp
ret
Function at 0x1007a626
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008238c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100695aa
mov dword [ebp - 0x14], eax
cmp dword [0x10cbb49c], esi
jne 0x1007a719
push 0x800
push esi
push 0x10007cac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007a6a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007a7f9
push esi
push esi
push 0x10007cac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007a7f9
push 0x10007cc4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007a7f9
push eax
call ebx
push 0x10007cd0
push edi
mov dword [0x10cbb49c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ce0
push edi
mov dword [0x10cbb4a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007cf4
push edi
mov dword [0x10cbb4a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cbb4ac], eax
test eax, eax
je 0x1007a716
push 0x10007d10
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cbb4a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007a73e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007a731
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007a753
push 4
pop eax
jmp 0x1007a7fb
cmp dword [ebp - 0x14], esi
je 0x1007a753
push dword [0x10cbb49c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007a738
mov eax, dword [0x10cbb4a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007a7b1
cmp dword [0x10cbb4ac], edi
je 0x1007a7b1
push eax
call ebx
push dword [0x10cbb4ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007a7b1
test eax, eax
je 0x1007a7b1
call ecx
test eax, eax
je 0x1007a7a6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007a7a6
test byte [ebp - 8], 1
jne 0x1007a7b1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007a7e1
mov eax, dword [0x10cbb4a0]
cmp eax, edi
je 0x1007a7de
push eax
call ebx
test eax, eax
je 0x1007a7de
call eax
mov esi, eax
test esi, esi
je 0x1007a7de
mov eax, dword [0x10cbb4a4]
cmp eax, edi
je 0x1007a7de
push eax
call ebx
test eax, eax
je 0x1007a7de
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10cbb49c]
call ebx
test eax, eax
je 0x1007a7f9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007a7fb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100657bc
mov esp, ebp
pop ebp
ret
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41fd10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x41fd32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fd39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fd28
mov eax, 1
add ebx, ebx
jne 0x41fd4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fd40
jne 0x41fd5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd40
xor ecx, ecx
sub eax, 3
jb 0x41fd70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41fde2
mov ebp, eax
add ebx, ebx
jne 0x41fd7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41fd88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fdac
inc ecx
add ebx, ebx
jne 0x41fd98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41fd8d
jne 0x41fda9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fdcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fdbd
jmp 0x41fd2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fdcc
add edi, ecx
jmp 0x41fd2e
pop esi
mov edi, esi
mov ecx, 0x1a3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41fdea
cmp byte [edi], 3
jne 0x41fdea
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 0x41fdef
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41fe67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2064c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20688]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41fe1c
mov ecx, edi
jns 0x41fe4b
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 + 0x2068c]
or eax, eax
je 0x41fe61
mov dword [ebx], eax
add ebx, 4
jmp 0x41fe39
call dword [esi + 0x20690]
popal
jmp 0x40215c
Function at 0x444860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
jmp 0x44487a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x444881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x444870
mov eax, 1
add ebx, ebx
jne 0x444893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4448a4
jne 0x4448b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4448b4
dec eax
add ebx, ebx
jne 0x4448b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x444888
xor ecx, ecx
sub eax, 3
jb 0x4448cc
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44493e
sar eax, 1
mov ebp, eax
jmp 0x4448d7
add ebx, ebx
jne 0x4448d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4448e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x444908
inc ecx
add ebx, ebx
jne 0x4448f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4448e9
jne 0x444905
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4448e9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x444928
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x444919
jmp 0x444876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x444928
add edi, ecx
jmp 0x444876
pop esi
mov edi, esi
mov ecx, 0xba3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x444946
cmp byte [edi], 5
jne 0x444946
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 0x44494b
lea edi, [esi + 0x42000]
mov eax, dword [edi]
or eax, eax
je 0x4449c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x449f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x44ad8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x444978
mov ecx, edi
jns 0x4449a7
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 + 0x44ae0]
or eax, eax
je 0x4449bd
mov dword [ebx], eax
add ebx, 4
jmp 0x444995
call dword [esi + 0x44adc]
mov ebp, dword [esi + 0x44ae4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4449f7
sub esp, 0xffffff80
jmp 0x41c550
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403014
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x403020
push 0x40301c
push 0x403018
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403020]
push dword [0x40301c]
push dword [0x403018]
mov dword [0x40300c], esp
call fcn.0040194c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x40194c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x401980
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x40199b
mov edi, eax
inc edi
jmp 0x401978
inc edi
cmp byte [edi], 0x20
je 0x401977
jmp 0x40199b
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40198c
cmp eax, 0x20
jne 0x40197f
jmp 0x40198f
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40199b
cmp eax, 0x20
je 0x40198e
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00401324
pop edi
leave
ret
Function at 0x4013b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
call sub.MSVCRT.dll_malloc
mov esi, eax
mov eax, dword [esp + 0x14]
push 0x408190
push eax
call sub.MSVCRT.dll__wfopen
mov edi, eax
push edi
push ebx
push 1
push esi
call sub.MSVCRT.dll_fread
push edi
mov ebx, eax
call sub.MSVCRT.dll_fclose
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
push 1
push esi
push ebx
push ecx
push edx
push eax
call fcn.00401520
push esi
call sub.MSVCRT.dll_free
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x4023f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [0x40ad48]
push edi
cmp ecx, ebx
je 0x402420
mov ecx, dword [ecx]
lea eax, [esi + 0x214]
mov dword [eax], ecx
add dword [0x40ad4c], 4
cmp dword [eax], ebx
jmp 0x40244c
push dword [esi + 0x20c]
lea edi, [esi + 0x214]
push 1
push 4
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jae 0x40244a
push str.Read_Error
mov ecx, esi
call fcn.00401efb
cmp dword [edi], ebx
je 0x4025c4
mov ecx, esi
call fcn.0040215f
mov ecx, esi
call fcn.00401f86
lea edi, [esi + 0x220]
mov ecx, 0x3f1
mov eax, 0x20202020
mov dword [ebp - 4], 0xfc4
rep stosd dword es:[edi], eax
cmp dword [esi + 0x214], ebx
mov dword [ebp - 8], ebx
jbe 0x4025c4
mov edi, 0xfff
mov ecx, esi
call fcn.00402185
mov ebx, eax
cmp bx, 0x100
jge 0x40250a
mov eax, dword [0x40ad58]
test eax, eax
je 0x4024c2
mov ecx, dword [0x40ad5c]
lea edx, [ecx + 1]
cmp edx, dword [0x40ad54]
jge 0x4024ef
mov byte [ecx + eax], bl
inc dword [0x40ad5c]
jmp 0x4024ef
mov ecx, dword [esi + 0x210]
lea eax, [esi + 0x210]
dec dword [ecx + 4]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jl 0x4024e3
mov ecx, dword [ecx]
mov byte [ecx], bl
mov eax, dword [eax]
inc dword [eax]
jmp 0x4024ef
movsx eax, bx
push ecx
push eax
call sub.MSVCRT.dll__flsbuf
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 8]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jmp 0x4025b5
mov ecx, esi
call fcn.004022c5
mov cx, ax
mov eax, dword [ebp - 4]
sub eax, ecx
lea ecx, [ebx - 0xfd]
dec eax
and eax, edi
test cx, cx
jle 0x4025b5
movsx eax, ax
mov dword [ebp - 0xc], eax
movsx eax, cx
add dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
and eax, edi
movzx bx, byte [eax + esi + 0x220]
mov eax, dword [0x40ad58]
test eax, eax
je 0x40256d
mov ecx, dword [0x40ad5c]
lea edx, [ecx + 1]
cmp edx, dword [0x40ad54]
jge 0x40259a
mov byte [ecx + eax], bl
inc dword [0x40ad5c]
jmp 0x40259a
mov ecx, dword [esi + 0x210]
lea eax, [esi + 0x210]
dec dword [ecx + 4]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jl 0x40258e
mov ecx, dword [ecx]
mov byte [ecx], bl
mov eax, dword [eax]
inc dword [eax]
jmp 0x40259a
movsx eax, bx
push ecx
push eax
call sub.MSVCRT.dll__flsbuf
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jne 0x40253a
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x214]
jb 0x40248d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40311c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4031e3
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
push ebx
push edi
push dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 8]
mov dword [ecx], eax
movzx edi, word [esi + 0xe]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
xor ebx, ebx
dec edi
mov dword [ebp + 8], eax
je 0x403172
sub edi, 3
je 0x40316e
sub edi, 4
jne 0x403175
mov ebx, 0x100
jmp 0x403175
push 0x10
jmp 0x403174
push 2
pop ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
and word [ebp - 8], 0
and word [ebp - 0xa], 0
add eax, 0xe
push 0x4083f8
mov dword [ebp - 0xe], eax
push dword [ebp + 0xc]
lea eax, [ebx*4 + 0x36]
mov word [ebp - 0x10], 0x4d42
mov dword [ebp - 6], eax
call sub.MSVCRT.dll__wfopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4031d8
push edi
push 1
lea eax, [ebp - 0x10]
push 0xe
push eax
call sub.MSVCRT.dll_fwrite
push edi
push 1
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_fwrite
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 0x10
Function at 0x4037bb
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1878
call fcn.00405e70
push ebx
push esi
push edi
mov esi, ecx
push 0x12
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
push 0x13
lea edi, [ebp - 0x78]
pop ecx
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x40ad88]
mov ecx, 0x1ff
mov dword [ebp - 0x1078], eax
xor eax, eax
lea edi, [ebp - 0x1074]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x78], 0x4c
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x70], eax
mov eax, 0x104
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x1078]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x6c], str..jpeg
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x4039c2
lea eax, [ebp - 0x1078]
push 0x2e
push eax
call sub.MSVCRT.dll_wcsrchr
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40386f
push 0x40848c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40386f
mov word [edi], bx
mov edx, dword [0x40ad88]
mov ecx, 0x1ff
xor eax, eax
cmp dword [ebp + 8], 0x3f
lea edi, [ebp - 0x1874]
mov dword [ebp - 0x1878], edx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0x874]
mov dword [ebp - 0x878], edx
push ebx
rep stosd dword es:[edi], eax
push ebx
jne 0x40393b
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x1042
push dword [esi + 0x1970]
call edi
cmp eax, 0xffffffff
je 0x4039c2
lea ecx, [ebp - 0x1878]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 0x1073
mov dword [ebp - 0x14], 0x100
push dword [esi + 0x1970]
call edi
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x878]
push str._s.jpeg
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x878]
push ebx
push eax
lea eax, [ebp - 0x1878]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push ebx
lea eax, [ebp - 0x878]
push ebx
push eax
push 0x408304
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4039c2
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x1004
push dword [esi + 0x1970]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
jle 0x4039c2
lea eax, [ebp - 0x1878]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x14], 0x100
push dword [ebp + 8]
push 0x1073
push dword [esi + 0x1970]
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x878]
push str._s__03d.jpeg
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x878]
push ebx
push eax
lea eax, [ebp - 0x1878]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jl 0x403958
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40478b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00405e70
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ebx, ecx
push 0
push 0x1042
push dword [ebx + 0x1970]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40485b
mov edx, dword [0x40ad88]
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x828]
mov dword [ebp - 0x82c], edx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0x1028]
mov dword [ebp - 0x102c], edx
mov dword [ebp - 0x24], 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x82c]
mov edi, 0x1073
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x14], 0x3e8
push dword [ebp - 4]
push edi
push dword [ebx + 0x1970]
call esi
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x14], 0x3e8
push dword [ebp - 4]
push edi
push dword [ebx + 0x1970]
call esi
xor eax, eax
push 5
push eax
lea ecx, [ebp - 0x82c]
push eax
push ecx
push 0x408304
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
leave
ret