joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401430
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
cmp eax, 0x416
jg 0x40148c
je 0x40147b
add eax, 0xfffffbf9
cmp eax, 0xb
ja case.0x401452.1032
jmp dword [eax*4 + 0x40151c]
mov eax, dword [esp + 4]
push 0x406218
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov ecx, dword [esp + 4]
push 0x406214
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov edx, dword [esp + 4]
push 0x406210
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
cmp eax, 0xc07
jg 0x4014d9
je case.0x401452.1031
sub eax, 0x804
je 0x4014b7
sub eax, 3
je case.0x401452.1031
sub eax, 9
jne case.0x401452.1032
mov eax, dword [esp + 4]
push 0x40620c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov ecx, dword [esp + 4]
push 0x406208
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov edx, dword [esp + 4]
push 0x406204
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
cmp eax, 0xc0a
je case.0x401452.1034
cmp eax, 0x100c
je case.0x401452.1036
mov eax, dword [esp + 4]
push 0x406200
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov ecx, dword [esp + 4]
push 0x4061fc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov edx, dword [esp + 4]
push 0x4061f8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret

Function at 0x402ce1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4062d0
cmp edx, dword [eax]
je 0x402d03
add eax, 8
inc ecx
cmp eax, 0x406360
jl 0x402cf4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4062d0]
jne 0x402e31
mov eax, dword [0x40668c]
cmp eax, 1
je 0x402e0b
test eax, eax
jne 0x402d34
cmp dword [0x406224], 1
je 0x402e0b
cmp edx, 0xfc
je 0x402e31
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402d6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004035d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004036c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402dae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004036c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053a8
push edi
call fcn.00403b00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004035d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004035e0
lea eax, [ebp - 0xa0]
push 0x405388
push eax
call fcn.004035e0
push dword [esi + 0x4062d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004035e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403a75
add esp, 0x2c
pop edi
jmp 0x402e31
lea eax, [ebp + 8]
lea esi, [esi + 0x4062d4]
push 0
push eax
push dword [esi]
call fcn.004036c0
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 0x405e97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43e74c], 0
jne 0x405ed5
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405eab
mov dword [ecx*4 + 0x43e748], eax
inc ecx
cmp ecx, 0x100
jl 0x405ea6
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405f02
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43e748]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405ee3
not eax
pop ebp
ret 0xc

Function at 0x438d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c000]
push edi
or ebp, 0xffffffff
jmp 0x438d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438d48
mov eax, 1
add ebx, ebx
jne 0x438d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438d60
jne 0x438d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438d60
xor ecx, ecx
sub eax, 3
jb 0x438d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438e02
mov ebp, eax
add ebx, ebx
jne 0x438d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x438da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x438dcc
inc ecx
add ebx, ebx
jne 0x438db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x438dad
jne 0x438dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x438dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x438ddd
jmp 0x438d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x438dec
add edi, ecx
jmp 0x438d4e
pop esi
mov edi, esi
mov ecx, 0x572
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x438e0a
cmp byte [edi], 0xc
jne 0x438e0a
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 eax, ebx
loop 0x438e0f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x438e7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38e5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38efc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x438e3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x38f00]
or eax, eax
je 0x438e78
mov dword [ebx], eax
add ebx, 4
jmp 0x438e59
call dword [esi + 0x38f04]
popal
jmp 0x40ef82
Function at 0x100023a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [0x102236e4], 0x1c2f
mov dword [ebp - 4], 0
mov dword [0x102236e0], 0x19b3
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x10002415
mov dword [0x102236e4], 0x1db6
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x100023de
mov eax, dword [ebp - 0x18]
mov dword [0x102236e0], 0x26de
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x100024cc
mov dword [0x102236e0], 0x13b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100024cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x1d], dl
mov al, byte [ebp - 0x1d]
test al, 1
jne 0x1000246a
jmp 0x100024cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100024cc
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff7
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2], 0x64
jne 0x100024cc
mov dword [0x102236e4], 0x1a7a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x100024cc
mov eax, 1
mov dword [0x102236e0], 0x181e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x100024d3
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x100024d3
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret

Function at 0x100025b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.100025b0]
mov dword [ebp - 4], eax
jmp 0x100025c1
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x100025e5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x100025e5
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x100025c1
Function at 0x10002740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
mov dword [0x102236e4], 0x2433
mov ecx, dword [0x102236e0]
add ecx, 0xffffea47
mov dword [0x102236e0], ecx
mov dword [ebp - 0x30], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jmp 0x10002777
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0xb4
mov edi, edx
add edi, esi
add edi, 0x5c
mov esi, dword [edi]
imul edi, eax, 0xb4
add edx, edi
add edx, 0x58
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x15f
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x10002777
lea eax, [0x10213327]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x102236e0], 0x6b0
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.10001eb0
mov dword [0x102236e0], 0x26d9
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.10002970
mov ecx, eax
mov dword [0x10223700], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x102236e0]
add edx, 0xffffdae8
mov dword [0x102236e0], edx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0xb4
mov ebx, edx
add ebx, edi
add ebx, 0x4c
imul edi, ecx, 0xb4
mov dword [ebp - 0x54], eax
mov eax, edx
add eax, edi
add eax, 0x58
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
add edi, eax
imul ecx, ecx, 0xb4
add edx, ecx
add edx, 0x5c
mov ecx, dword [edx]
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x58]
movzx eax, word [ebx]
xor eax, ecx
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], esi
call fcn.10003120
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
add eax, ecx
mov edx, dword [ebp - 0x60]
cmp edx, 0x15f
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
jne 0x1000284f
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], ecx
call fcn.10002300
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0xbdfef
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x126200
mov ecx, dword [ebp - 0x48]
add ecx, 0xb97ff
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f60
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002ae0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102236e8], 0
mov dword [0x102236ec], 0
mov dword [0x102236f8], 0
mov dword [0x102236e4], 0x207f
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x10002c36
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x102236e0]
add edx, 0xffffe07a
mov dword [0x102236e4], edx
mov edx, dword [0x102236e8]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x102236e8], edx
mov esi, dword [0x102236ec]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x102236ec], edx
mov ecx, dword [0x102236e8]
mov bl, byte [edi + ecx]
mov byte [0x102236f0], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov dword [0x102236e0], 0x177d
mov bl, byte [0x102236f0]
mov ecx, dword [0x102236ec]
mov byte [edi + ecx], bl
mov ecx, dword [0x102236e0]
add ecx, 0xffffed88
mov dword [0x102236e0], ecx
mov ecx, dword [0x102236e8]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x102236ec]
movzx edx, byte [edi + edx]
add edx, ecx
mov dword [0x102236e4], 0x1ac1
mov dword [0x102236e0], 0xfffff55f
and edx, 0xff
mov dword [0x102236f8], edx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x10002b39
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002df0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102236ec], 0
mov byte [0x102236f0], 0
mov dword [0x102236e0], 0xa73
mov dword [0x102236e8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10002efb
mov eax, 0x100
mov dword [0x102236f4], 0
mov ecx, dword [0x102236e4]
add ecx, 0xffffe45e
mov dword [0x102236e0], ecx
mov ecx, dword [0x102236ec]
mov edx, dword [0x102236e8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x102236f4], edi
mov dword [0x102236e0], 0x27b
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x102236ec], edx
mov ecx, dword [0x102236e8]
mov bl, byte [esi + ecx]
mov byte [0x102236f0], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov dword [0x102236e0], 0xb1f
mov bl, byte [0x102236f0]
mov ecx, dword [0x102236ec]
mov byte [esi + ecx], bl
mov dword [0x102236e4], 0x2155
mov ecx, dword [0x102236e8]
add ecx, 1
mov dword [0x102236e8], ecx
cmp ecx, 0x100
jl 0x10002e3a
jmp 0x10002f3a
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102236e8]
add eax, 1
mov dword [0x102236e8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10002efb
mov dword [0x102236e0], 0x735
mov dword [0x102236e8], 0
jmp 0x10002e3a
mov dword [0x102236e0], 0x1484
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001109
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001080
call fcn.010012c0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001144
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001144
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100115c
cmp eax, 0x20b
je 0x1001149
mov dword [ebp - 0x1c], edi
jmp 0x1001170
cmp dword [ecx + 0x84], 0xe
jbe 0x1001144
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100116a
cmp dword [ecx + 0x74], 0xe
jbe 0x1001144
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002018], 0xffffffff
or dword [0x100201c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002020], eax
call fcn.010012b6
cmp dword [section..data], edi
jne 0x10011cb
push fcn.010012b6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100129f
push 0x1001054
push 0x1001050
call sub.msvcrt.dll__initterm
mov eax, dword [0x100200c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002008]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100104c
push 0x1001048
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010012b6
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001242
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001277
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010012fb
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x100040d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 2
push 0
push ebx
call fcn.100075fd
add esp, 0xc
test eax, eax
je 0x100040f3
mov eax, 0xfffffffd
pop edi
pop esi
pop ecx
pop ebp
ret 4
push ebx
call fcn.1000780d
mov esi, eax
add esp, 4
test esi, esi
js 0x100040e7
jne 0x1000410d
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret 4
push esi
call fcn.1000648a
mov edi, eax
add esp, 4
test edi, edi
jne 0x10004126
lea eax, [edi - 2]
pop edi
pop esi
pop ecx
pop ebp
ret 4
push 0
push 0
push ebx
call fcn.100075fd
add esp, 0xc
push ebx
push esi
push 1
push edi
call fcn.10007abc
add esp, 0x10
cmp eax, esi
je 0x10004159
push edi
call fcn.10007568
mov eax, 0xfffffffd
add esp, 4
pop edi
pop esi
pop ecx
pop ebp
ret 4
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.10004210
push edi
mov esi, eax
call fcn.10007568
add esp, 4
pop edi
mov eax, esi
pop esi
pop ecx
pop ebp
ret 4

Function at 0x100061b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, eax
test edi, edi
je 0x10006232
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10006200
mov cl, byte [ebp + 8]
sub edi, esi
sub edi, 5
mov byte [esi], cl
mov dword [esi + 1], edi
test ebx, ebx
jle 0x1000620f
push ebx
lea eax, [esi + 5]
push 0x90
push eax
call fcn.1000caa0
jmp 0x1000620c
push esi
push edi
push str.FAILED_to_hook_function___08x__at___08x_
call fcn.10007ad9
add esp, 0xc
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10006232
push esi
push str.FAILED_to_restore_protection_at__p
call fcn.10007ad9
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100062a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x1001b080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
mov esi, ecx
call fcn.1000caa0
add esp, 0xc
cmp dword [0x1001c1f8], 0xffffffff
je 0x1000632d
push edi
push esi
push str.__s___s_r_n
lea ecx, [ebp - 0x804]
push 0x800
push ecx
call fcn.10007b80
lea edx, [ebp - 0x804]
push edx
call fcn.10001ef0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x808]
push 0
push eax
mov edx, esi
call fcn.10006240
mov ecx, dword [0x1001c1f8]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10006495
mov esp, ebp
pop ebp
ret

Function at 0x10006495
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b080]
jne 0x1000649f
repz ret
jmp fcn.100080e6
Function at 0x1001200c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001b080]
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.1000a220
and dword [ebp - 0x14], 0
cmp dword [0x1001cf6c], 0
mov dword [ebp - 0x18], eax
jne 0x100120bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10012167
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10012167
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001cf6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001cf70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001cf74], eax
call edi
push eax
call esi
mov dword [0x1001cf7c], eax
test eax, eax
je 0x100120bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001cf78], eax
mov eax, dword [0x1001cf78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10012118
cmp dword [0x1001cf7c], ecx
je 0x10012118
push eax
call esi
push dword [0x1001cf7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10012118
test ebx, ebx
je 0x10012118
call edi
test eax, eax
je 0x1001210f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001210f
test byte [ebp - 8], 1
jne 0x10012118
or dword [ebp + 0x10], 0x200000
jmp 0x1001214b
mov eax, dword [0x1001cf70]
cmp eax, dword [ebp - 0x18]
je 0x1001214b
push eax
call esi
test eax, eax
je 0x1001214b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001214b
mov eax, dword [0x1001cf74]
cmp eax, dword [ebp - 0x18]
je 0x1001214b
push eax
call esi
test eax, eax
je 0x1001214b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001cf6c]
call esi
test eax, eax
je 0x10012167
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10012169
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006495
leave
ret
Function at 0x4027f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004038b0
test esi, esi
jne 0x40282e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004039a0
jmp 0x40284c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040269c
mov edi, eax
test esi, esi
je 0x40284c
cmp dword [ebx], 0
je 0x40284c
dec esi
jmp 0x402835
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0

Function at 0x403d7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ebx + 0x448dfc4d]
add ebx, esp
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0040290e
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x403daa
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x403df3
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x403d9d
call fcn.0040299d
push ds
aaa
cmc
pop ecx
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
invalid
test esi, edx
clc
invalid
invalid