joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x22c
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x23c]
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x28], ecx
push edi
mov dword [esp + 0x24], ebx
mov ecx, ebp
mov eax, ecx
mov byte [esp + ecx + 0x30], cl
cdq
idiv dword [esp + 0x244]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401c1b
mov edi, ebp
mov esi, ebp
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401c63
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401c40
mov edi, ebp
mov dword [esp + 0x10], ebp
mov eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov esi, 0x3e8
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x401ca4
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x1c], eax
jmp 0x401cbb
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00404540
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esi, 1
jne 0x401c95
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
cmp dword [ebx], ebp
jle 0x401d3e
mov edi, ebp
inc edi
and edi, 0x800000ff
jns 0x401cdf
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x30]
mov edx, dword [esp + 0x10]
movzx esi, cl
add edx, esi
and edx, 0x800000ff
jns 0x401cfc
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [esp + edx + 0x30]
mov byte [esp + edi + 0x30], al
mov eax, ebp
xor eax, 4
mov dword [esp + 0x10], edx
push 0
push eax
mov byte [esp + edx + 0x38], cl
call fcn.00402328
push eax
call fcn.004036a2
movzx eax, byte [esp + edi + 0x34]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x2c]
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [ebx]
jl 0x401cce
mov edi, dword [esp + 0x14]
sub edi, ebx
and edi, 0xfffffffc
push edi
push ebx
call fcn.0040404b
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040683e
add esp, 0x22c
ret
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x487550]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040246f
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402d34
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040683e
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.004036d4
push eax
call fcn.004036a2
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402d34
jmp 0x401f9b
Function at 0x40760d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40764c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40764c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40764c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40764c
cmp dword [ecx + 0x74], 0xe
jbe 0x40764c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415cca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426050
push 0x426048
push str.FlsAlloc
push 0x1e
call fcn.00415bb3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415cfe
push dword [ebp + 8]
mov ecx, esi
call dword [0x42212c]
call esi
jmp 0x415d04
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415d48
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426060
push 0x426058
push str.FlsGetValue
push 0x20
call fcn.00415bb3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415d7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416b14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004167b6

Function at 0x416b1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416945
Function at 0x41818c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407780
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414585
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4181ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41832a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004215a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x487148]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004185b2
mov ecx, dword [esi*4 + 0x487148]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418323
cmp eax, dword [edi + ecx + 0x24]
jne 0x418323
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418323
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004185b2
add esp, 0x14
test edx, edx
jl 0x418323
jg 0x418299
test eax, eax
jb 0x418323
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418323
jl 0x4182b3
cmp dword [ebp - 0x1008], eax
ja 0x418323
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4182d1
test ebx, ebx
je 0x41830a
cmp ecx, edi
jae 0x41830a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4182eb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4182f7
cmp byte [ecx + 1], 0xa
jne 0x4182f7
inc ecx
jmp 0x4182f7
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4182d1
cmp edx, ebx
jne 0x4182d1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418328
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040683e
leave
ret
Function at 0x419713
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41975e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004198b2
test al, al
jne 0x419758
sub edx, 2
cmp edx, edi
jne 0x41973e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x419780
lea eax, [edi + 2]
cmp edx, eax
je 0x419780
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041965f
add esp, 0x10
jmp 0x41987a
push esi
lea ecx, [ebp - 0x255]
call fcn.004198b2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4197c3
push dword [ebp - 0x25c]
jmp 0x419770
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x419800
cmp word [ebp - 0x226], 0
je 0x419821
cmp word [ebp - 0x226], ax
jne 0x419800
cmp word [ebp - 0x224], 0
je 0x419821
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041965f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41986d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4197da
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419855
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41987a
push 0x41948f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041f480
add esp, 0x10
jmp 0x41984a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040683e
leave
ret
Function at 0x41e91c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x487148]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e95c
cmp byte [ebx], 0xa
jne 0x41e95c
or byte [eax + edi + 0x28], 4
jmp 0x41e961
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ea5f
mov al, byte [edx]
cmp al, 0x1a
je 0x41ea41
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e990
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e9b5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e9bf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e972
jmp 0x41ea5f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ea3c
cmp dword [ebp - 0xc], 0
je 0x41ea3c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x487148]
test byte [eax + edi + 0x28], 0x48
je 0x41ea16
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ea01
mov byte [esi], dl
jmp 0x41ea12
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x487148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ea5f
cmp byte [ebp - 1], 0xa
jne 0x41ea25
cmp esi, ebx
jne 0x41ea25
mov byte [esi], 0xa
jmp 0x41ea5e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004185d0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ea5f
mov byte [esi], 0xd
jmp 0x41ea5e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x487148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ea5b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ea5f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ea68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x487148]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eaab
cmp word [esi], dx
jne 0x41eaab
or byte [edi + eax + 0x28], 4
jmp 0x41eab0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41ec03
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ebe3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eaf2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41eb28
cmp eax, edx
jae 0x41eb34
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41eaca
jmp 0x41ec03
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebdf
cmp dword [ebp - 0x14], 0
je 0x41ebdf
mov eax, dword [ebx*4 + 0x487148]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ebb7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41eb80
mov word [esi], cx
jmp 0x41ebb3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x487148]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x487148]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x487148]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41ec03
pop ebx
cmp word [ebp - 4], bx
jne 0x41ebc8
cmp esi, dword [ebp + 0xc]
jne 0x41ebc8
mov word [esi], bx
jmp 0x41ec00
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004185d0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41ec03
push 0xd
jmp 0x41ebfc
mov ecx, dword [ebx*4 + 0x487148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ebfa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec03
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4213a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4213cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4213cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x409b60
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x413190]
cmp ax, 0xcb
je 0x409c5c
cmp ax, 0xcc
je 0x409c5c
mov edx, dword [0x419660]
test edx, edx
je 0x409b92
mov eax, dword [0x419500]
call edx
mov ebx, eax
jmp 0x409b97
mov ebx, 0x419504
cmp word [0x4194f0], 0
jle 0x409bba
mov eax, 0x4194d0
call fcn.00409dd0
mov eax, ebx
call fcn.00409740
mov eax, ebx
call fcn.004097b0
mov edi, dword [ebx]
jmp 0x409bda
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x409bd5
mov edx, edi
mov eax, ebx
call fcn.00408c10
jmp 0x409bd8
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x409bc0
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x4194f0], 0
jle 0x409c5c
mov edx, 0x419410
mov eax, ebx
call fcn.00408d40
mov edi, eax
test edi, edi
je 0x409c2f
mov eax, dword [0x4194a4]
mov dword [edi + 0xc], eax
cmp dword [0x4194a4], 0
je 0x409c24
mov eax, dword [0x4194a4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4194a4], eax
sub word [0x4194f0], 1
cmp word [0x4194f0], 0
sete bl
mov eax, 0x4194d0
call fcn.00409de0
test bl, bl
je 0x409c5c
mov eax, 0x4194d0
call fcn.00409dc0
pop edi
pop esi
pop ebx
ret
Function at 0x40b740
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x419240], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.0040b920
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x419240]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402160
call sub.kernel32.dll_GetCommandLineA
mov dword [0x413200], eax
mov esi, dword [0x413200]
jmp 0x40b8e0
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x40b7d0
cmp byte [esi], 0
je 0x40b8e9
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x40b845
mov al, byte [esi]
cmp al, 1
jb 0x40b83b
sub al, 0x20
jbe 0x40b80c
sub al, 2
je 0x40b81f
jmp 0x40b83b
mov al, byte [ebp - 0x10c]
test al, al
je 0x40b84a
add dword [ebp - 0x110], 1
jmp 0x40b842
cmp byte [esi + 1], 0x22
je 0x40b836
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40b842
add esi, 1
jmp 0x40b842
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x40b7fc
test dword [ebp - 0x114], 0xffffffff
je 0x40b8d9
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.0040b920
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x419240]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x40b8d1
mov al, byte [esi]
cmp al, 1
jb 0x40b8c7
sub al, 0x20
jbe 0x40b898
sub al, 2
je 0x40b8ab
jmp 0x40b8c7
mov al, byte [ebp - 0x10c]
test al, al
je 0x40b8d6
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x40b8ce
cmp byte [esi + 1], 0x22
je 0x40b8c2
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40b8ce
add esi, 1
jmp 0x40b8ce
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x40b888
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x40b7d3
mov ebx, dword [ebp - 0x114]
mov dword [0x419230], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x419240
call fcn.004099c0
mov eax, dword [0x419240]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cea0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov byte [ebp - 4], al
cmp al, 7
jb 0x40cef7
sub al, 7
je 0x40cf56
sub al, 1
je 0x40cedf
sub al, 2
je 0x40cec4
sub al, 3
je 0x40ced0
jmp 0x40cef7
add dword [0x419cc0], 1
jmp 0x40cf56
mov eax, dword [0x419c10]
mov dword [0x419cb0], eax
jmp 0x40cf56
mov eax, dword [0x419cb0]
cmp eax, dword [0x419c10]
jbe 0x40cf56
sub dword [0x419cb0], 1
jmp 0x40cf56
mov eax, dword [0x419cb0]
sub eax, 1
mov word [ebp - 8], ax
mov eax, dword [0x419cc0]
sub eax, 1
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
movzx ax, byte [0x4139b0]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x10]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x419cb0], 1
mov eax, dword [0x419cb0]
cmp eax, dword [0x419c20]
jbe 0x40cf89
mov eax, dword [0x419c10]
mov dword [0x419cb0], eax
add dword [0x419cc0], 1
jmp 0x40cf89
mov eax, 1
call fcn.0040ce00
sub dword [0x419cc0], 1
mov eax, dword [0x419cc0]
cmp eax, dword [0x419c40]
ja 0x40cf78
leave
ret

Function at 0x40cfa0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x419cb0]
sub eax, 2
mov word [ebp - 4], ax
mov eax, dword [0x419cc0]
sub eax, 1
mov word [ebp - 2], ax
movzx ax, byte [0x4139b0]
mov word [ebp - 0xc], ax
movzx ax, byte [edi]
mov si, ax
mov bx, 1
cmp si, bx
jl 0x40d09b
sub bx, 1
lea esi, [esi]
add bx, 1
add word [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 1
mov al, bl
and eax, 0xff
lea eax, [edi + eax]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 1
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x419cb0], 1
mov eax, dword [0x419cb0]
cmp eax, dword [0x419c20]
jbe 0x40d092
mov eax, dword [0x419c10]
mov dword [0x419cb0], eax
add dword [0x419cc0], 1
jmp 0x40d06d
mov eax, 1
call fcn.0040ce00
sub dword [0x419cc0], 1
mov eax, dword [0x419cc0]
cmp eax, dword [0x419c40]
ja 0x40d05c
mov eax, dword [0x419cb0]
sub eax, 2
mov word [ebp - 4], ax
mov eax, dword [0x419cc0]
sub eax, 1
mov word [ebp - 2], ax
cmp si, bx
jg 0x40cfec
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4110f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.00407b20
call fcn.00408a10
push eax
test eax, eax
jne 0x4111b4
mov ebx, 1
sub ebx, 1
mov esi, esi
add ebx, 1
lea eax, [ebx*4 + 0x419ecc]
mov edx, 0
call fcn.00405970
mov dword [ebx*4 + 0x419eec], 0xffffffff
cmp ebx, 7
jl 0x411128
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4111b4
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cx, 0
mov edx, 0xa
call fcn.00406330
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.0040d890
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x4111b4
push 4
push ebx
push esi
mov eax, 0x410fb0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x411050
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.00407da0
lea eax, [ebp - 0x38]
call fcn.004025f0
pop eax
test eax, eax
je 0x4111cb
call fcn.00407ed0
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x51de644a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x669c249d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219