joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018b90f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1018c92a
xor ecx, ecx
mov edx, eax
mov esi, dword [0x10201cb4]
add esi, 0x1e9f
mov dword [0x10201cb8], esi
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1018b95d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x10201cb4], 0x1ee2
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1018b9d1
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
jmp 0x1018b9dc
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x40]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
je 0x1018ba21
jmp 0x1018b9f8
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edx
jmp 0x1018b9a6
mov al, byte [ebp - 0x45]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x44]
add edx, 1
mov ah, byte [ebp - 0x46]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x1018b9a6
mov al, byte [ebp - 0x46]
test al, 1
jne 0x1018ba50
jmp 0x1018ba2a
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ecx
jb 0x1018b9dc
jmp 0x1018b9d1
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10201cb4], 0xe82
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
jmp 0x1018b9d1
Function at 0x1018bb45
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10201cb4], 0x1094
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + str.0Oo]
mov dh, byte [eax + 0x1019a8dd]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1018bb67
lea eax, [ebp - 0x24]
mov dword [0x10201cb8], 0x2682
mov dword [0x10201cb4], 0x1830
mov dword [ebp - 0x34], eax
call fcn.1018ba8f
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1018b7e5
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1018bc75
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10201cb4], 0x1666
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1018c460
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xc], ecx
mov dword [0x10201cb8], 0x225e
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x2c], ecx
mov dword [0x10201cb4], 0x6c0
add ecx, 0x1b7d
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1018bc6c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1018beb3
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x10201cb8], 0x350
mov dword [ebp - 4], 0
mov dword [0x10201cb4], 0x1212
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
jmp 0x1018bf34
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
je 0x1018bfde
jmp 0x1018bff5
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [0x10201cb8], 0x17f8
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x1018bf6a
jmp 0x1018bff5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x1018bf13
jmp 0x1018bf85
mov dword [0x10201cb4], 0x2175
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1018bfa1
jmp 0x1018bff5
mov dword [0x10201cb4], 0xf85
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1018bf4c
jmp 0x1018bff5
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x1018bf34
jmp 0x1018bf13
mov dword [0x10201cb4], 0xb66
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1018bff5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1018bff5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1018bef3
jmp 0x1018bff5
mov eax, 1
mov dword [0x10201cb8], 0xeaf
mov dword [ebp - 0x18], eax
jmp 0x1018bf0b
xor eax, eax
mov dword [0x10201cb4], 0xda6
mov dword [ebp - 0x18], eax
jmp 0x1018bf0b
Function at 0x1018c6cc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10201cb4], 0x1f4f
mov dword [0x10201cc0], 0
mov byte [0x10201cc4], 0
mov dword [0x10201cbc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1018c71b
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10201cbc]
add eax, 1
mov dword [0x10201cbc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1018c71b
xor eax, eax
mov ecx, dword [0x10201cb4]
add ecx, 0x1879
mov dword [0x10201cb8], ecx
mov dword [0x10201cbc], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10201cc8], 0
mov edi, dword [0x10201cc0]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10201cc8], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x10201cc0], edx
mov dword [0x10201cb8], 0x9a3
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10201cc4], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x10201cc4]
mov esi, dword [0x10201cc0]
mov byte [ebx + esi], cl
mov esi, dword [0x10201cbc]
add esi, 1
mov dword [0x10201cbc], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1018c762
jmp 0x1018c713
Function at 0x1018ca96
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
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 [0x10201cbc], 0
mov dword [0x10201cc0], 0
mov dword [0x10201ccc], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1018cc23
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10201cb4], 0x1117
mov edi, eax
add edi, 1
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10201cbc], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10201cc0], edx
mov dword [0x10201cb8], 0x1d4a
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10201cc4], cl
mov dword [0x10201cb8], 0xde
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x10201cb4]
add edx, 0xfffff139
mov dword [0x10201cb4], edx
mov cl, byte [0x10201cc4]
mov edx, dword [0x10201cc0]
mov byte [ebx + edx], cl
mov edx, dword [0x10201cbc]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10201cc0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x10201cb8]
mov esi, edx
add esi, 0xffffed9e
mov dword [0x10201cb4], esi
and ecx, 0xff
mov dword [0x10201ccc], ecx
add edx, 0xffffd6c7
mov dword [0x10201cb8], edx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x10201cb4], 0x1c45
xor ch, cl
mov byte [0x10201cd0], ch
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov dword [0x10201cb8], 0x1677
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1018cc23
mov eax, dword [0x10201cc0]
mov ecx, dword [0x10201cbc]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x1018caef
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1018cc2b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x10201cb4]
add edx, 0x25b9
mov dword [0x10201cb4], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1018c117
lea ecx, [0x1018c3f5]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x24], edx
mov dword [esp + 0x68], 0x147600
mov dword [0x10201cb8], 0xae6
mov edx, dword [0x10201ca0]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10201ca4]
mov dword [esp + 0x28], edx
mov edx, dword [0x10201ca8]
mov dword [esp + 0x64], edx
mov edx, dword [0x10201cac]
mov dword [esp + 0x50], edx
mov edx, dword [0x10201cb0]
mov dword [esp + 0x38], edx
mov dword [0x10201cb4], 0x6f5
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1018cd55
lea eax, [esp + 0x20]
mov ecx, dword [0x10201cb4]
add ecx, 0x20eb
mov dword [0x10201cb4], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1018bb45
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x1018cd82
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [0x10201cb8], 0x2594
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x20], edx
call fcn.1018beb3
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1018cccc
jmp 0x1018cd82
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1018cd0d
jmp 0x1018cd64
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
je 0x1018cd3f
mov dword [0x10201cb8], 0x3ad
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1018cd55
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40ec03
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x40f468
call fcn.0040f1a8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x410c20
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40ec48
cmp eax, esi
jne 0x40ec3b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40ec4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ec1f
xor esi, esi
inc esi
cmp dword [0x410c24], esi
jne 0x40ec5d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40ec97
cmp dword [0x410c24], ebx
jne 0x40ec91
mov dword [0x410c24], esi
push 0x4011c4
push 0x4011b8
call fcn.0040ed7c
pop ecx
pop ecx
test eax, eax
je 0x40ec97
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40ed6c
mov dword [0x41004c], esi
cmp dword [0x410c24], esi
jne 0x40ecba
push 0x4011b4
push 0x4011ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x410c24], 2
test edi, edi
jne 0x40ecc7
xor eax, eax
mov ecx, 0x410c20
xchg dword [ecx], eax
cmp dword [0x410c28], 0
je 0x40ecf3
push 0x410c28
call fcn.0040f000
pop ecx
test eax, eax
je 0x40ecf3
push ebx
push 2
push ebx
mov esi, dword [0x410c28]
mov ecx, esi
call dword [0x41116c]
call esi
push dword [0x410058]
push dword [0x410054]
push dword [0x410050]
call fcn.0040a3af
add esp, 0xc
mov dword [0x410048], eax
cmp dword [0x410060], 0
jne 0x40ed51
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x41004c], 0
jne 0x40ed65
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x410048]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0054f000
jmp 0x40ec03

Function at 0x40eec4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40f488
call fcn.0040f1a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ef24
cmp eax, 0xffffffff
je 0x40ef24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40ef1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40ef1d
cmp edx, 0x10000000
jae 0x40ef1d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40ef1a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ef90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40efce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40efc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40efd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40efb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4013ef
Capabilities:
Terminate process

Disassembly:
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x4012c6
mov dword [0x404144], esi
jmp 0x401271
push 0x58
push 0x4012f8
call fcn.00401124
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x404038
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x402342
xor esi, esi
inc esi
mov eax, dword [0x404034]
cmp eax, esi
je 0x402360
mov eax, dword [0x404034]
test eax, eax
jne 0x4011e2
mov dword [0x404034], esi
push 0x4012f0
push 0x4012e8
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x4023f6
mov eax, dword [0x404034]
cmp eax, esi
jne 0x401295
push 0x4012e4
push 0x4012dc
call fcn.00493000
pop ecx
pop ecx
mov dword [0x404034], 2
test ebx, ebx
jne 0x4012a1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x404044], 0
jne 0x40236d
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x401320
cmp al, 0x22
je 0x4011d2
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
jne 0x40239a
inc esi
jmp 0x4012b5
test al, al
je 0x40132a
cmp dword [ebp - 0x1c], 0
jne 0x4012be
mov al, byte [esi]
test al, al
je 0x4018ee
cmp al, 0x20
ja 0x4018ee
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40132a
call fcn.004013f9
jmp 0x4011ed
test byte [ebp - 0x3c], 1
jne 0x402391
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call 0x401922
mov dword [0x404058], eax
cmp dword [0x404054], 0
jne 0x4023d2
push eax
call dword [sym.imp.MSVCR80.dll_exit]
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00401342
push eax
call fcn.00401a08
pop ebp
ret 0x10
cmp eax, esi
jne 0x402350
xor esi, esi
inc esi
mov ebx, esi
jmp 0x40123c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401227
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x401271
push 0x404044
call fcn.00402be3
pop ecx
test eax, eax
je 0x4012ae
push 0
push 2
push 0
call dword [0x404044]
jmp 0x4012ae
movzx eax, word [ebp - 0x38]
jmp 0x4018fb
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4012d9
cmp dword [0x404144], 0
jne 0x4023e1
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x404058]
jmp 0x402402
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401674
ret
Function at 0x493610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
mov dword [edi + 0x8723c], 0xdfff3641
push edi
or ebp, 0xffffffff
jmp 0x49363a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x493641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493630
mov eax, 1
add ebx, ebx
jne 0x493653
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x493664
jne 0x493683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493683
dec eax
add ebx, ebx
jne 0x493670
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x493648
add ebx, ebx
jne 0x49367f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4936d5
xor ecx, ecx
sub eax, 3
jb 0x49369b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49370a
sar eax, 1
mov ebp, eax
jmp 0x4936a6
add ebx, ebx
jne 0x4936a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493674
inc ecx
add ebx, ebx
jne 0x4936b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493674
add ebx, ebx
jne 0x4936c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4936b6
jne 0x4936d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4936b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4936f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4936e6
jmp 0x493636
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4936f4
add edi, ecx
jmp 0x493636
pop esi
mov edi, esi
mov ecx, 0x2993
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x493712
cmp byte [edi], 0xe
jne 0x493712
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 0x493717
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x493786
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x93000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9303c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x493744
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x93044]
or eax, eax
je 0x493780
mov dword [ebx], eax
add ebx, 4
jmp 0x493761
call dword [esi + 0x93040]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4937b7
cmp al, 0xef
ja 0x4937aa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x49378c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x493799
mov ebp, dword [esi + 0x93048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x93812]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x493803
sub esp, 0xffffff80
jmp 0x4014c0
Function at 0x10001800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x18
movzx esi, word [eax + 0x264]
mov edi, dword [eax + 0x468]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x258]
test eax, eax
jne 0x100018d1
test byte [ebx + 0x1a], 1
jne 0x100018e0
mov edx, dword [ebx + 0x450]
lea eax, [ebx + 0x454]
mov dword [ebx + 0x258], 1
mov dword [ebx + 0x454], 0
mov dword [ebx + 0x458], 0
mov dword [ebx + 0x45c], 0
mov dword [ebx + 0x460], 0
mov dword [ebx + 0x464], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x100018c0
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x100018c0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._controller_destroy.constprop.0
mov eax, dword [0x1000c008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0x10]
mov eax, ebx
call dbg.HID_set_state
jmp 0x10001836