joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1351ec0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcc000]
push edi
or ebp, 0xffffffff
jmp 0x1351ee2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1351ee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1351ed8
mov eax, 1
add ebx, ebx
jne 0x1351efb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1351f0c
jne 0x1351f2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1351f2b
dec eax
add ebx, ebx
jne 0x1351f18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1351ef0
add ebx, ebx
jne 0x1351f27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1351f7d
xor ecx, ecx
sub eax, 3
jb 0x1351f43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1351fb2
sar eax, 1
mov ebp, eax
jmp 0x1351f4e
add ebx, ebx
jne 0x1351f4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1351f1c
inc ecx
add ebx, ebx
jne 0x1351f5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1351f1c
add ebx, ebx
jne 0x1351f69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1351f5e
jne 0x1351f7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1351f5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1351f9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1351f8e
jmp 0x1351ede
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1351f9c
add edi, ecx
jmp 0x1351ede
pop esi
mov edi, esi
mov ecx, 0x3cba
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1351fba
cmp byte [edi], 0x24
jne 0x1351fba
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 0x1351fbf
lea edi, [esi + 0xf4e000]
mov eax, dword [edi]
or eax, eax
je 0x1352037
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf5dbcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf5dd0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1351fec
mov ecx, edi
jns 0x135201b
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 + 0xf5dd10]
or eax, eax
je 0x1352031
mov dword [ebx], eax
add ebx, 4
jmp 0x1352009
call dword [esi + 0xf5dd20]
mov ebp, dword [esi + 0xf5dd14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x135206b
sub esp, 0xffffff80
jmp 0x4839fb
Function at 0x4023e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0040d1e0
add esp, 0xc
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x4024c6
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
lea edi, [ebp - 0x224]
xor al, al
mov ecx, 0x208
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x2c]
shr ecx, 1
add ecx, 1
cmp ecx, 0x103
jbe 0x40245e
mov dword [ebp - 0x10], 0x103
jmp 0x40246d
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x2c]
shr eax, 1
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, eax
call fcn.00402e10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0xa1f36c6b
jne 0x4024b9
cmp dword [ebp - 0x18], 0xe47c
jne 0x4024b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
jmp 0x4024c8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
jmp 0x402420
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4024f7
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4024f7
xor eax, eax
jmp 0x402627
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
je 0x402515
xor eax, eax
jmp 0x402627
mov eax, dword [ebp - 0x18]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x60]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x40257d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x18]
jae 0x4025be
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.00402f10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0xc]
jne 0x4025bc
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp + 0x10]
jne 0x4025bc
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x4025be
jmp 0x402562
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jne 0x4025cd
xor eax, eax
jmp 0x402627
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x64]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004023b0
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x402624
cmp dword [ebp + 0x14], 0
je 0x402624
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x402e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x402e31
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edi]
xor dl, dl
movzx esi, word [edi]
mov cl, 0x30
mov byte [esp + 0x17], al
mov al, 0xd5
mov byte [esp + 0x24], 0x9a
mov bl, 0x77
test si, si
je 0x402ed5
mov ecx, 0x77d59a30
mov dword [esp + 0x1c], 0xe3f65af6
mov eax, esi
mov ebp, ecx
mov edx, 0xe3f65af6
mov dword [esp + 0x18], eax
nop word [eax + eax]
xor esi, esi
movzx eax, ax
and ecx, 0x1ffffff
lea edi, [edi + 2]
shld esi, ecx, 7
shrd ebp, edx, 0x19
shl ecx, 7
shr edx, 0x19
or ecx, ebp
or esi, edx
cdq
xor ecx, eax
xor edx, esi
mov ebx, ecx
mov eax, edx
shrd ebx, eax, 0x18
mov eax, edx
mov esi, ecx
shrd esi, eax, 0x10
mov eax, edx
mov ebp, ecx
mov dword [esp + 0x28], esi
mov esi, ecx
shrd esi, eax, 8
mov eax, dword [esp + 0x18]
mov byte [esp + 0x16], al
movzx eax, word [edi]
mov dword [esp + 0x24], esi
mov esi, eax
mov dword [esp + 0x18], esi
test ax, ax
jne 0x402e70
mov eax, dword [esp + 0x28]
mov dl, byte [esp + 0x16]
mov dh, byte [esp + 0x17]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov byte [esp + 0x2a], cl
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x28], dh
mov byte [esp + 0x29], dl
mov byte [esp + 0x2c], al
mov byte [esp + 0x2b], cl
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2d], bl
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x402f2f
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [edi]
xor bh, bh
mov byte [esp + 0xf], bl
mov cl, 0x30
mov byte [esp + 0x10], 0x9a
mov al, 0x77
mov byte [esp + 0x14], 0xd5
test bl, bl
je 0x402fbb
mov ecx, 0x77d59a30
mov dword [esp + 0x24], 0xe3f65af6
mov eax, ecx
mov edx, 0xe3f65af6
nop dword [eax]
xor esi, esi
lea edi, [edi + 1]
shrd eax, edx, 0x19
and ecx, 0x1ffffff
mov bh, bl
shld esi, ecx, 7
shr edx, 0x19
or esi, edx
shl ecx, 7
or ecx, eax
movsx eax, bl
mov bl, byte [edi]
cdq
xor ecx, eax
xor edx, esi
mov eax, edx
mov esi, ecx
shrd esi, eax, 0x18
mov eax, edx
mov dword [esp + 0x18], esi
mov esi, ecx
shrd esi, eax, 0x10
mov eax, edx
mov dword [esp + 0x14], esi
mov esi, ecx
shrd esi, eax, 8
mov eax, ecx
mov dword [esp + 0x10], esi
test bl, bl
jne 0x402f60
mov bl, byte [esp + 0xf]
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov byte [esp + 0x1a], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x14]
pop edi
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bh
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov edx, 0x2b
push edi
push 0xdb77
push 0x4f2a576c
lea ecx, [edx - 0x2a]
call fcn.004027e0
mov ebp, dword [esp + 0x34]
add esp, 8
push ebp
call eax
xor ecx, ecx
mov edx, 2
lea esi, [eax + 0x32]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040aff0
add esp, 4
lea ecx, [esi + esi]
mov ebx, eax
mov edx, 0x7c
xor al, al
mov edi, ebx
rep stosb byte es:[edi], al
push 0xda92
push 0x4aa576c
lea ecx, [edx - 0x7b]
call fcn.004027e0
add esp, 8
push ebp
push ebx
call eax
mov byte [esp + 0x11], 0x68
mov byte [esp + 0x12], 0x71
mov byte [esp + 0x13], 0xb
mov byte [esp + 0x14], 0x71
mov byte [esp + 0x15], 0x7d
mov byte [esp + 0x16], 0x71
mov byte [esp + 0x17], 0x19
mov byte [esp + 0x18], 0x71
mov byte [esp + 0x19], 0x7c
mov byte [esp + 0x1a], 0x71
mov byte [esp + 0x1b], 0xc
mov byte [esp + 0x1c], 0x71
mov byte [esp + 0x1d], 0x1b
mov byte [esp + 0x1e], 0x71
mov byte [esp + 0x1f], 0x7e
mov byte [esp + 0x20], 0x71
mov byte [esp + 0x21], 0x28
mov byte [esp + 0x22], 0x71
mov byte [esp + 0x23], 0xd
mov byte [esp + 0x24], 0x71
mov byte [esp + 0x25], 0x71
mov byte [esp + 0x26], 0x71
mov al, byte [esp + 0x11]
mov byte [esp + 0x27], 0
cmp byte [esp + 0x27], 0
jne 0x404fe2
xor ecx, ecx
lea esi, [ecx + 0x7f]
mov al, byte [esp + ecx + 0x11]
movzx eax, al
sub eax, 0x71
lea eax, [eax + eax*8]
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [esp + ecx + 0x11], dl
inc ecx
cmp ecx, 0x16
jb 0x404fc2
mov edx, 4
push 0xda96
push 0x422a576c
lea ecx, [edx - 3]
call fcn.004027e0
add esp, 8
lea ecx, [esp + 0x11]
push ecx
push ebx
call eax
mov edx, 0x58
push 0x1a1f
push 0x480574d
lea ecx, [edx - 0x57]
call fcn.004027e0
add esp, 8
push ebx
push ebp
call eax
test eax, eax
jne 0x405042
push 0x1a1f
push 0x480574d
lea edx, [eax + 0x58]
lea ecx, [eax + 1]
call fcn.004027e0
add esp, 8
push ebx
push ebp
call eax
push ebx
call fcn.0040b010
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x405f00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
nop dword [eax]
mov eax, dword [0x455ee4]
test eax, eax
jne 0x405f4d
push 0xc8
call fcn.0040aff0
add esp, 4
test eax, eax
je 0x405f46
mov word [eax], 0x101
mov dword [eax + 4], 0x1e
mov dword [eax + 8], 5
mov dword [eax + 0x10], 3
jmp 0x405f48
xor eax, eax
mov dword [0x455ee4], eax
test byte [eax + 0x10], 1
je 0x405f5f
cmp dword [ebp + 0x98], 1
sete cl
jmp 0x405f61
mov cl, 1
mov eax, dword [eax + 0x10]
shr eax, 1
test al, 1
je 0x405f76
cmp dword [ebp + 0x9c], 2
sete al
jmp 0x405f78
mov al, 1
test cl, cl
je 0x405f80
test al, al
jne 0x405fa3
mov edx, 8
push 0x9227
push 0xa5477053
lea ecx, [edx - 7]
call fcn.004027e0
add esp, 8
push 0xa
call eax
jmp 0x405f10
xor eax, eax
mov ecx, dword [eax + 0x413638]
cmp ecx, 0xffffffff
je 0x405fb8
test ecx, ecx
jne 0x40604a
add eax, 0x110
cmp eax, 0x42680
jl 0x405fa5
mov esi, dword [0x455c80]
mov eax, dword [0x455c84]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x40600b
nop dword [eax]
push 0
push dword [esi]
call edi
mov edx, 8
push 0x9227
push 0xa5477053
lea ecx, [edx - 7]
call fcn.004027e0
add esp, 8
push 0xa
call eax
add esi, 4
cmp esi, ebx
jne 0x405fe0
push 0
push dword [ebp + 0x20]
call edi
push 0
push dword [ebp + 0x24]
call edi
push 0
push dword [ebp + 0x28]
call edi
mov esi, dword [ebp + 0x1c]
mov edx, 3
push 0x8960
push 0x7e6b6543
lea ecx, [edx - 2]
call fcn.004027e0
add esp, 8
push esi
call eax
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 8
push 0x9227
push 0xa5477053
lea ecx, [edx - 7]
call fcn.004027e0
add esp, 8
push 0x64
call eax
jmp 0x405fa3
Function at 0x40a9c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x455ee0]
push ebx
mov ebx, ecx
test eax, eax
jne 0x40aa1d
push esi
push 0x427
call fcn.0040aff0
mov esi, eax
add esp, 4
mov dword [0x455ee0], esi
test esi, esi
jne 0x40a9e9
pop esi
pop ebx
ret
push edi
mov edi, 0x40e0d0
xor edx, edx
sub edi, esi
mov eax, edx
lea ecx, [esi + edx]
and eax, 0x1f
inc edx
mov al, byte [eax + 0x40e0b0]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, 0x427
jb 0x40a9f3
pop edi
mov eax, esi
mov dword [ebx + 0xc4], 0x427
pop esi
pop ebx
ret
Function at 0x401220
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp eax, 0xffffffff
je 0x401255
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
test eax, eax
jne 0x40126d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [esp + 4], esi
pop esi
sete al
pop ecx
ret 0x10

Function at 0x401360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4090e9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40d01c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d01c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
xor edi, edi
mov dword [esp + 0x5c], edi
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [0x40d6b8]
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 4]
mov ecx, 0x40d6b8
call eax
mov ebx, dword [eax]
mov edx, dword [0x40d6b8]
mov eax, dword [edx + 0xc]
push ebx
mov ecx, 0x40d6b8
call eax
test eax, eax
je 0x401456
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x18], 0x10
mov ebp, eax
jb 0x4013f9
mov esi, dword [esi + 4]
jmp 0x4013fc
add esi, 4
call fcn.004011b0
push esi
call fcn.00402e80
add esp, 4
test ebp, ebp
jbe 0x401445
mov edi, edi
mov eax, ebp
sub eax, edi
mov esi, 0xa00000
cmp eax, 0xa00000
ja 0x401422
mov esi, eax
mov ecx, dword [0x40d6bc]
mov edx, dword [0x40d6b8]
mov eax, dword [edx]
push ecx
push esi
push edi
push ebx
mov ecx, 0x40d6b8
call eax
test eax, eax
je 0x401445
add edi, esi
cmp edi, ebp
jb 0x401410
mov edx, dword [0x40d6b8]
mov eax, dword [edx + 8]
push ebx
mov ecx, 0x40d6b8
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00403d46
add esp, 0x30
ret
Function at 0x402980
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xa4
mov eax, dword [0x40d01c]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xb8]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call fcn.004011b0
mov ecx, dword [esp + 8]
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call edi
push eax
call fcn.00402e80
add esp, 0xc
cmp dword [esp + 8], 2
je 0x4029eb
mov eax, 1
jmp 0x402b17
call edi
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x63
lea edx, [esp + 0x49]
push 0
push edx
mov byte [esp + 0x50], 0
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], 0x10
jae 0x402a1d
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x44]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x402a21
lea eax, [esp + 0x44]
push str.debug
push eax
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x402a5e
mov dword [0x40d6a0], 1
call fcn.004011b0
push str.true
call fcn.00402e80
add esp, 4
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40d638
push 0x67
push esi
call edi
push 0x64
push 0x40d5d0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00402b30
mov eax, esi
call fcn.00402bc0
test eax, eax
jne 0x402a9c
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x402b17
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
call fcn.00401a60
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x402b07
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push esi
push eax
call ebp
test eax, eax
jne 0x402af4
lea ecx, [esp + 0x14]
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x402ad1
pop ebp
pop ebx
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
xor ecx, esp
call fcn.00403d46
add esp, 0xa4
ret 0x10
Function at 0x402bc0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x40d638
push 0x40d5d0
push 0
mov dword [0x40d634], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x402bfa
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0xea60
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
pop esi
ret

Function at 0x403d46
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d01c]
jne 0x403d50
repz ret
jmp fcn.004041ac
Function at 0x2109769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x210d190
cmp edx, dword [eax]
je 0x210978b
add eax, 8
inc ecx
cmp eax, 0x210d220
jl 0x210977c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x210d190]
jne 0x21098b9
mov eax, dword [0x210dbb0]
cmp eax, 1
je 0x2109893
test eax, eax
jne 0x21097bc
cmp dword [0x210d0e4], 1
je 0x2109893
cmp edx, 0xfc
je 0x21098b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x21097f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0210a670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0210a490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x2109836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0210a490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x210c45c
push edi
call fcn.0210af00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0210a670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0210a680
lea eax, [ebp - 0xa0]
push 0x210c43c
push eax
call fcn.0210a680
push dword [esi + 0x210d194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0210a680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0210ae75
add esp, 0x2c
pop edi
jmp 0x21098b9
lea eax, [ebp + 8]
lea esi, [esi + 0x210d194]
push 0
push eax
push dword [esi]
call fcn.0210a490
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 0x41eed0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4a04cc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41ef50
arpl word [edx + esi], si
xor byte [eax], 0xdf
pop ecx
sub esp, ebx
adc esp, dword [edx + 0x4d36237a]
insb byte es:[edi], dx
rcl ecx, cl
test al, 0xfb
jns 0x41ef52
add dword [eax - 0x10e7e3ca], ebp
xchg ebx, esi
xor bh, byte [ebx]
mov dl, 0x47
pop eax
mov al, byte [0x70e0846a]
imul dword [ebx]
mov ecx, 0xd6d2c95b
xchg ebx, eax
mov ecx, esi
leave
push cs
sal dword [esi], 1
ror cl, 0xff
clc
push ecx
dec ebx
enter 0xffffffffffffaff1, 0x41
invalid
invalid
inc edx
cmp eax, 0x8315b488
stosd dword es:[edi], eax
mov ah, 0xcd
fisttp word [ecx]
fiadd dword [ebx]
invalid