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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov ebx, ecx
lea ecx, [ebp - 0x610]
push 0
push ecx
mov dword [ebp - 0xe24], eax
call fcn.00407ee0
add esp, 0xc
push ebx
lea edx, [ebp - 0x610]
push 0x1ff
push edx
call fcn.0040460c
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404251
sub eax, edx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x417a80
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
jmp 0x404280
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404280
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x202]
push 0x10000
mov dword [ebp - 0xe28], eax
call fcn.004050cd
add esp, 4
push 0x10000
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00407ee0
add esp, 0xc
push 0x7fe
lea edx, [ebp - 0xe0e]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0xe1c], 0x10000
mov word [ebp - 0xe10], cx
call fcn.00407ee0
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x20e]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0xe18], esi
mov dword [ebp - 0xe14], esi
mov dword [ebp - 0xe20], esi
mov word [ebp - 0x210], ax
call fcn.00407ee0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xe24]
lea eax, [ebp - 0xe10]
push eax
push ecx
lea esi, [ebp - 0xe18]
call fcn.00403b40
add esp, 8
test eax, eax
je 0x40441c
mov eax, dword [ebp - 0xe28]
lea edx, [ebp - 0xe10]
push edx
push eax
lea ecx, [ebp - 0x610]
push ecx
push 0xbba
mov edx, esi
call fcn.00403c50
add esp, 0x10
test eax, eax
je 0x40441c
lea edx, [ebp - 0xe10]
push edx
lea eax, [ebp - 0xe20]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0xe1c]
mov ecx, ebx
call fcn.00403e50
add esp, 0xc
test eax, eax
je 0x40441c
mov edx, 0xbba
cmp word [ebp - 0xe20], dx
jne 0x40441c
cmp dword [ebp - 0xe1c], 0
je 0x40441c
cmp byte [ebx], 0
jne 0x40441c
push 0x417c80
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404597
add esp, 0xc
push 0x4137b0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0xe14]
push edx
mov dword [ebp - 0xe14], 0
call fcn.004048b9
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404412
lea eax, [ebp - 0xe14]
push eax
mov edi, esi
call fcn.00404460
add esp, 4
mov dword [ebp - 0xe14], 1
test ebx, ebx
je 0x404429
push ebx
call fcn.00405161
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x40443a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404588
mov esp, ebp
pop ebp
ret
Function at 0x40deeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409a53
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40df9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e046
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e046
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40df9e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x40dff7
cmp dword [0x416cbc], ecx
je 0x40dff7
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40dff7
test ebx, ebx
je 0x40dff7
call edi
test eax, eax
je 0x40dfee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40dfee
test byte [ebp - 8], 1
jne 0x40dff7
or dword [ebp + 0x10], 0x200000
jmp 0x40e02a
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e02a
push eax
call esi
test eax, eax
je 0x40e02a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e02a
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e02a
push eax
call esi
test eax, eax
je 0x40e02a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e046
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e048
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404588
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xf922902
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x72cb231a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x14]
push edi
mov edi, ecx
mov esi, dword [edi + 0xbc]
mov ecx, dword [edi + 0x1c]
add esi, edi
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x4018ae
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
test al, 4
je 0x4018c2
test byte [ecx + 0x3a], 1
je 0x4018e2
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
or dword [esi + 0x10], 0x200
test byte [ecx + 0x3a], 2
je 0x4018e2
mov eax, dword [ecx + 0x46]
or dword [esi + 0x10], 0x400
mov dword [esi + 0x14], eax
test dword [edi + 0x78], 0x400
je 0x4018f2
or dword [esi + 0x10], 0x4000
test byte [ecx + 0x3a], 4
je 0x4018ff
or dword [esi + 0x10], 0x100
test byte [ebx + 6], 2
mov edx, 1
je 0x401927
or dword [esi + 0x10], 0x80
mov word [esi + 0x20], dx
cmp word [edi + 0x18], 3
jne 0x40192c
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40192c
or word [esi + 0x20], 0x20
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x18], eax
cmp word [esi + 0x18], 0xd
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x1c], eax
jne 0x401993
movsx edx, word [ecx]
mov ecx, dword [0x4ad9ac]
cmp edx, dword [ecx + 0x194]
jge 0x401989
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4ad9ac]
mov ecx, dword [eax + 0x1a0]
mov eax, dword [eax + 0x19c]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x401989
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401989
mov edx, dword [edx + 0xc]
call fcn.004343d0
jmp 0x40198b
xor eax, eax
mov dword [esi + 0x1c], eax
mov edx, 1
cmp dword [edi + 0xcc], 0
jne 0x4019a5
or word [esi + 0x20], 2
or dword [esi + 0x10], 8
mov cx, word [esi + 0x10]
pop edi
mov word [esi + 0x22], cx
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x407340
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea edx, [ecx + 2]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407350
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.0046d1e4
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x407410
mov ecx, ebx
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x407380
push 0x5c
push ebx
call fcn.0046db94
add esp, 8
test eax, eax
je 0x4073a4
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x4073cd
cmp word [ebx + 2], 0x5c
jne 0x4073cd
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.0046dc3a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4073f0
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x4073e6
cmp word [ebx + 2], 0x3a
jne 0x4073e3
cmp word [ebx + 4], 0x5c
jne 0x4073e3
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x4073e6
push 0x5c
push ebx
call fcn.0046dc3a
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.0046d1e4
mov esi, eax
add esp, 8
test esi, esi
jne 0x40741a
push dword [ebp - 4]
call fcn.0046ca27
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x407487
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.0046dce8
push esi
call fcn.0046dd2b
add esp, 0x10
test eax, eax
je 0x407463
push esi
call fcn.0046de48
add esp, 4
test eax, eax
je 0x407450
mov edi, 1
jmp 0x407463
push esi
call fcn.0046dd2b
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
push 0x5c
push eax
mov dword [ebp - 8], ebx
call fcn.0046dc3a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4074fb
mov ecx, dword [ebp - 8]
test edi, edi
je 0x407421
jmp 0x4074fb
mov edx, esi
sub edx, dword [ebp - 4]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x407490
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4074a4
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4074c7
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x4074c7
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.0046dd2b
add esp, 4
test eax, eax
je 0x4074fb
push esi
call fcn.0046de48
add esp, 4
test eax, eax
je 0x4074e8
mov edi, 1
jmp 0x4074fb
push esi
call fcn.0046dd2b
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.0046ca27
push dword [ebp - 4]
call fcn.0046ca27
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40754f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
neg eax
sbb eax, eax
add eax, 0x40000002
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
jne 0x407560
mov eax, 0x40000001
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, dword [ebp + 8]
mov edx, 0x40000002
cmovne eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x407580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4075b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
neg eax
sbb eax, eax
add eax, 0x40000004
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 4], esi
mov ecx, 0x40000004
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
push 1
push 0x8000
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
xor esi, esi
call fcn.0046d1e4
add esp, 8
mov dword [ebp - 4], eax
test edi, edi
je 0x4076d3
lea ecx, [ecx]
push 0
mov ebx, 0x8000
cmp edi, ebx
cmovb ebx, edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4076cb
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x4076d5
cmp eax, ebx
jne 0x4076d5
mov ecx, ebx
shr ecx, 2
mov edx, edi
test ecx, ecx
je 0x407691
lea esp, [esp]
mov eax, esi
shr eax, 0x1f
add edx, 4
lea esi, [eax + esi*2]
add esi, dword [edx - 4]
dec ecx
jne 0x407680
mov eax, ebx
and eax, 3
mov dword [ebp - 0x14], eax
mov edi, 0
jbe 0x4076b8
mov ebx, eax
movzx ecx, byte [edi + edx]
mov eax, esi
shr eax, 0x1f
add ecx, eax
inc edi
lea esi, [ecx + esi*2]
cmp edi, ebx
jb 0x4076a2
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], edi
jne 0x407640
mov edi, dword [ebp - 4]
jmp 0x4076d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4076d5
mov edi, eax
push 0x8000
push 0
push edi
call fcn.00470860
push edi
call fcn.0046ca27
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 0
push 0
mov ebx, ecx
push 0x186a0
push ebx
mov dword [ebp - 8], 0
call esi
push 1
push 0
push 0
push ebx
call esi
push 2
push 0
push 0
push ebx
mov edi, eax
call esi
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov esi, eax
call edi
cmp esi, 0x155cc0
jge 0x407774
push 1
push 0
push 0
push ebx
call edi
push 2
push 0
push 0
push ebx
mov esi, eax
call edi
push 0
push 0
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407779
mov edi, 0x155cc0
lea eax, [edi + 8]
push 1
push eax
call fcn.0046d1e4
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x407805
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4077a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
je 0x4077f2
cmp dword [esi], 0x77777777
jne 0x4077c4
cmp dword [ecx + eax + 4], 0x12478749
je 0x4077dd
inc eax
inc esi
cmp eax, edi
jb 0x4077b2
push ecx
call fcn.0046ca27
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, ecx
add esi, 0x186a0
mov dword [0x4ad864], esi
mov dword [ebp - 8], 1
push ecx
call fcn.0046ca27
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407cf0
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
mov esi, dword [0x4ad85c]
push edi
push 2
push 0x104
call fcn.0046d1e4
mov edi, eax
add esp, 8
test edi, edi
je 0x407d37
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x48bed8
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.0046ca27
mov esi, dword [0x4ad85c]
add esp, 4
cmp word [esi], 0
je 0x407d68
push esi
call fcn.0046d5b8
add esp, 4
push 0
push dword [0x4ad85c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407d68
mov ecx, dword [0x4ad85c]
call fcn.00424690
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 0x67
pop esi
ret
Function at 0x407e30
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4adb40]
test eax, eax
je 0x407e63
cmp dword [0x4adb3c], 0
je 0x407e52
push eax
mov ecx, 0x4adc74
call fcn.00461740
mov eax, dword [0x4adb40]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4adb40], 0
mov eax, dword [0x4ad868]
test eax, eax
je 0x407ea0
push 0x5c
push eax
call fcn.0046db94
add esp, 8
test eax, eax
je 0x407ea0
mov edx, dword [0x4ad868]
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jae 0x407e94
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x407e99
xor ecx, ecx
mov word [eax], cx
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [0x4ad860]
test edi, edi
je 0x407f8d
cmp word [edi], 0
je 0x407f84
xor esi, esi
push edi
call fcn.0046d5b8
add esp, 4
test eax, eax
je 0x407ee9
call fcn.0046e019
cmp dword [eax], 2
je 0x407ee9
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x407ec3
jmp 0x407f55
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ef0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.0046d1e4
mov esi, eax
add esp, 8
test esi, esi
je 0x407f55
mov edx, esi
mov ecx, edi
sub edx, edi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x407f20
push 0x5c
push esi
call fcn.0046db94
add esp, 8
test eax, eax
je 0x407f4c
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0046e06d
add esp, 4
push esi
call fcn.0046ca27
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f60
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x407ec1
mov edi, dword [0x4ad860]
push edi
call fcn.0046ca27
add esp, 4
mov edx, dword [0x4ad85c]
test edx, edx
je 0x407ffa
xor esi, esi
lea esp, [esp]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407fa5
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x407fc8
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x407fc8
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push edx
call fcn.0046e06d
add esp, 4
test eax, eax
je 0x407ff4
call fcn.0046e019
cmp dword [eax], 2
je 0x407ff4
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x407ff4
mov edx, dword [0x4ad85c]
jmp 0x407fa0
mov edx, dword [0x4ad85c]
push edx
call fcn.0046ca27
push dword [0x4ad868]
mov dword [0x4ad85c], 0
call fcn.0046ca27
add esp, 8
mov dword [0x4ad868], 0
pop edi
pop esi
pop ebx
ret
Function at 0x408170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x224], 0
je 0x408232
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x208]
inc eax
cmp eax, ecx
jbe 0x4081ba
lea eax, [ecx + 0x400]
push eax
push dword [edi + 0x204]
call fcn.0046d5e6
add esp, 8
add dword [edi + 0x208], 0x400
mov dword [edi + 0x204], eax
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x204]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0x220]
inc dword [edi + 0x20c]
test eax, eax
je 0x408232
push ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408231
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [edi + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x20c]
push dword [edi + 0x204]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [edi + 0x220]
test eax, eax
je 0x408245
push eax
call fcn.0046ca27
add esp, 4
mov eax, dword [edi + 0x204]
pop edi
test eax, eax
je 0x408259
push eax
call fcn.0046ca27
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4082e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0x80000000
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4083e4
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebx
call edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x4083dd
push 0
push 0
push 0
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push 2
add eax, 0x18c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
add edi, 0xfffffffe
push edi
call fcn.0046c995
add esp, 4
mov dword [esi + 0x204], eax
test eax, eax
je 0x4083dd
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4083c5
mov dword [esi + 0x208], edi
xor eax, eax
mov dword [esi + 0x20c], 0
lea edi, [esi + 4]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [esi + 0x210], eax
push ebx
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x224], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x204]
call fcn.0046ca27
add esp, 4
mov dword [esi + 0x204], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411910
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
mov esi, edx
call fcn.00470860
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
mov esi, 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411a27
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x411a13
call fcn.0042aa50
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x4119a9
mov eax, dword [0x4ad9b4]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4ad9b4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x4119a9
push 0
push eax
call esi
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4119e8
cmp dword [ebp + 8], 0x103
jne 0x4119e8
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00402bf0
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x4119b0
pop edi
test bx, bx
je 0x411a0e
mov eax, dword [0x4ad9b4]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4ad9b4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411a0e
push 5
push eax
call esi
call fcn.0042ab40
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
pop ebx
movsx eax, cx
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, si
pop esi
mov esp, ebp
pop ebp
ret