joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009bba0
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]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov eax, 1
lea ecx, [ebp - 0x24]
mov edx, dword [0x100a3134]
mov esi, edx
add esi, 0xffffe20a
mov dword [0x100a3134], esi
mov esi, edx
add esi, 0xffffe745
mov dword [0x100a3138], esi
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1009d22c]
mov dh, byte [eax + 0x1009d1fd]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x38], ecx
jne 0x1009bbea
mov eax, dword [ebp - 0x30]
add eax, 0xffff9b5a
mov dword [0x100a3138], eax
call fcn.1009ca8f
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1009b493
xor ecx, ecx
mov edx, dword [0x100a3138]
add edx, 0xffffdfff
mov dword [0x100a3134], edx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x1009bcff
mov eax, dword [ebp - 0x3c]
mov dword [0x100a3134], 0x1bd6
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 [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1009b648
mov dword [0x100a3138], 0x152e
mov eax, dword [ebp - 0x44]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x30], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0xc], ecx
mov dword [0x100a3134], 0x1f3
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x1009bcff
mov eax, dword [ebp - 0x44]
add eax, 0x18c1
mov dword [0x100a3134], 0xfffff23d
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1009bd80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x100a313c], 0
mov dword [0x100a3140], 0
mov dword [0x100a314c], 0
mov dword [0x100a3134], 0xb6a
cmp eax, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jne 0x1009befa
jmp 0x1009bdf1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov dword [0x100a3134], 0x23ea
mov dword [0x100a3138], 0x168a
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x100a313c], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x100a3140], edx
mov dword [0x100a3134], 0x966
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x100a3144], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x100a3134]
add edx, 0xfffff9f2
mov dword [0x100a3138], edx
mov cl, byte [0x100a3144]
mov edx, dword [0x100a3140]
mov byte [edi + edx], cl
mov dword [0x100a3134], 0x18cf
mov edx, dword [0x100a313c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x100a3140]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x100a314c], ebx
mov dword [0x100a3134], 0xe19
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov edx, dword [0x100a3138]
add edx, 0xfffff07b
mov dword [0x100a3138], edx
mov dword [0x100a3134], 0x23c0
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
jne 0x1009bf0c
mov dword [0x100a3134], 0x1517
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x100a313c]
mov ecx, dword [0x100a3140]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
jmp 0x1009bdf1
Function at 0x1009c2ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [0x100a3134], 0xdfc
mov dword [ebp - 0x10], eax
call fcn.1009b30e
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov ebx, dword [0x100a3138]
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], ebx
mov dword [ebp - 0x24], edi
je 0x1009c34e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffa65
mov dword [0x100a3134], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x1009c3bf
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jmp 0x1009c3ca
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x100a3134], 0xafd
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
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 - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1009c442
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], ch
mov al, byte [ebp - 0x59]
test al, 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], ecx
jne 0x1009c3e4
jmp 0x1009c442
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1009c39c
jmp 0x1009c44f
mov eax, dword [ebp - 0x40]
add eax, 2
mov dword [ebp - 0x60], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x30]
cmp ecx, edx
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
jb 0x1009c3ca
jmp 0x1009c3bf
Function at 0x1009c481
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x100a3134]
add edx, 0xfffff5b0
mov dword [0x100a3138], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1009b8db
lea ecx, [0x1009c7f9]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x7c], 0x14b600
mov edx, dword [0x100a3120]
mov dword [esp + 0x48], edx
mov edx, dword [0x100a3124]
mov dword [esp + 0x58], edx
mov edx, dword [0x100a3128]
mov dword [esp + 0x80], edx
mov edx, dword [0x100a312c]
mov dword [esp + 0x64], edx
mov edx, dword [0x100a3130]
mov dword [esp + 0x74], edx
mov dword [0x100a3134], 0x24cf
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1009c59f
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1009bba0
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x18], eax
jmp 0x1009c5ca
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov ecx, dword [0x100a3138]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
add eax, 0x1278
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x78], esi
mov dword [0x100a3134], eax
call fcn.1009c658
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x1009c516
jmp 0x1009c5ca
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1009c545
jmp 0x1009c5ae
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
je 0x1009c589
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1009c59f
mov eax, dword [esp + 0x18]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1009c658
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [0x100a3138], 0x890
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
mov dword [0x100a3134], 0x12cd
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
jmp 0x1009c75e
mov eax, 1
mov ecx, 0x46a1
mov dword [0x100a3138], 0x174f
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
je 0x1009c7f0
jmp 0x1009c6f7
mov eax, 0x12ff
mov dword [0x100a3134], 0x191a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
je 0x1009c709
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [0x100a3134], eax
mov dword [ebp - 0x24], ecx
jmp 0x1009c7f0
mov eax, 0x12ff
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
je 0x1009c73b
jmp 0x1009c6f7
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
jl 0x1009c75e
jmp 0x1009c774
mov eax, 0x20d2
mov dword [0x100a3134], 0x26ed
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
je 0x1009c7c6
jmp 0x1009c6f7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
jne 0x1009c722
mov eax, dword [ebp - 0x2c]
mov ecx, 0xcb2
mov dword [0x100a3138], 0x296
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x1009c6f7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
mov dword [ebp - 0x30], eax
mov eax, 0xcb2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2], 0x6f
mov dword [ebp - 0x20], eax
je 0x1009c6d6
jmp 0x1009c6f7
mov eax, 0x46a1
mov dword [0x100a3134], 0x4cbc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
je 0x1009c6a7
jmp 0x1009c6f7
mov eax, dword [ebp - 0x24]
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x402890
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41667b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push esi
push edi
mov esi, ecx
push str._n_MyRunningCDRom__Start_MyRunningCDRom_n
call fcn.00401950
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
add esp, 4
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov ecx, 0x41
mov dword [esp + 0x10], eax
lea edi, [esp + 0x60]
mov dword [esp + 0x14], eax
push 0x421580
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], eax
call fcn.0040ffda
mov eax, dword [esi + 0xdc]
lea ecx, [esp + 0x60]
push eax
push 0x104
push ecx
push 0x421580
push str.OPEN
push str.AUTORUN
mov dword [esp + 0x288], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi + 0xe0]
lea edx, [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0x10]
push str._s_s
push ecx
call fcn.0040f845
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x164]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x164]
push ecx
push str._______Run_command_line_____s_
call fcn.00401950
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
je 0x4029c4
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push 0x20
push 1
push 0
lea ecx, [esp + 0x178]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str._MyRunningCDRom_End_MyRunningCDRom_n
call fcn.00401950
add esp, 4
lea ecx, [esp]
mov dword [esp + 0x268], 0xffffffff
call fcn.0040ff6c
mov ecx, dword [esp + 0x260]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x26c
ret
Function at 0x403629
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x416758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push str._n_MyCheckRegValue__Start_MyCheckRegValue_n
call fcn.00401950
add esp, 4
xor ebx, ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x14], bl
push 0x421580
call fcn.0040ffda
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xe8]
push eax
push ecx
lea edx, [esp + 0x14]
push str.Software_s_s
push edx
mov dword [esp + 0x38], ebx
call fcn.0040f845
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
push str._______Check_registry_key_is__s
call fcn.00401950
mov edx, dword [esp + 0x14]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [esp + 0xc]
push eax
jne 0x4037c2
push str.________s_Registry_key_open_success
call fcn.00401950
mov ecx, dword [esp + 0x38]
add esp, 8
mov eax, 4
cmp ecx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
je 0x40376d
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push str.CDInstall
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push str.CDInstall
jne 0x403753
push str.________s_value_Query_is_success
call fcn.00401950
mov eax, dword [esp + 0x10]
add esp, 8
cmp eax, 1
push eax
push str.CDInstall
sete dl
push str.________s_value_has__x_DWORD
mov byte [esp + 0x20], dl
call fcn.00401950
add esp, 0xc
push str._______CD_Installing_Porcedure_is_not_running
call fcn.00401950
add esp, 4
push str._______Vdsetup.exe_is_terminated
call fcn.00401950
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4037cf
push str.________s_value_Query_is_fail
call fcn.00401950
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4037cf
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
push eax
push ebx
push str.CDInstall
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40379e
mov eax, dword [esp + 8]
push eax
push str.CDInstall
push str._______Success__s_value_is_set__x
jmp 0x4037ad
mov ecx, dword [esp + 8]
push ecx
push str.CDInstall
push str._______Fail__s_value_is_set__x
call fcn.00401950
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4037cf
push str.________s_Registry_key_open_fail
call fcn.00401950
add esp, 8
push str._MyCheckRegValue__End_MyCheckRegValue_n
call fcn.00401950
mov esi, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0xc]
and esi, 0xff
mov dword [esp + 0x28], 0xffffffff
call fcn.0040ff6c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4094b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ea90
cmp edx, dword [eax]
je 0x4094d3
add eax, 8
inc ecx
cmp eax, 0x41eb20
jl 0x4094c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ea90]
jne 0x409601
mov eax, dword [0x4236c8]
cmp eax, 1
je 0x4095db
test eax, eax
jne 0x409504
cmp dword [0x41e59c], 1
je 0x4095db
cmp edx, 0xfc
je 0x409601
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40953b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bb40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406630
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40957e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406630
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418774
push edi
call fcn.0040c9f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bb40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bb50
lea eax, [ebp - 0xa0]
push 0x418754
push eax
call fcn.0040bb50
push dword [esi + 0x41ea94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bb50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c95f
add esp, 0x2c
pop edi
jmp 0x409601
lea eax, [ebp + 8]
lea esi, [esi + 0x41ea94]
push 0
push eax
push dword [esi]
call fcn.00406630
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 0x4154d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4154fe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41551c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415436
jmp 0x41551c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41551c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415436
test edi, edi
mov eax, edi
jne 0x415506
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10038470
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100385f9
pushal
mov esi, section..data
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x1003849a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100384a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10038490
mov eax, 1
add ebx, ebx
jne 0x100384b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x100384a8
jne 0x100384c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100384a8
xor ecx, ecx
sub eax, 3
jb 0x100384d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1003854a
mov ebp, eax
add ebx, ebx
jne 0x100384e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100384f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10038514
inc ecx
add ebx, ebx
jne 0x10038500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x100384f5
jne 0x10038511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100384f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jle 0x10038534
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10038525
jmp 0x10038496
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10038534
add edi, ecx
jmp 0x10038496
pop esi
sub edi, dword [edi - 4]
push edi
mov edi, esi
mov ecx, 0x20d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10038556
cmp byte [edi], 9
jne 0x10038556
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 0x1003855b
pop edi
mov eax, dword [edi]
or eax, eax
je 0x100385c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38064]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10038583
push edx
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x38068]
pop edx
or eax, eax
je 0x100385c1
mov dword [ebx], eax
add ebx, 4
jmp 0x100385a0
popal
xor eax, eax
ret 0xc
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100385f8
cmp al, 0xef
ja 0x100385eb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100385cd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100385da
popal
jmp 0x1000d59a
Function at 0x1019ac53
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101c9190]
jne 0x1019ac5d
repz ret
jmp fcn.1019e7ab

Function at 0x101a0aff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1019ad76
and dword [ebp - 4], 0
cmp dword [0x101cb378], 0
mov ebx, eax
jne 0x101a0bb0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101a0c61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101a0c61
push eax
call fcn.1019ad04
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101cb378], eax
call esi
push eax
call fcn.1019ad04
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101cb37c], eax
call esi
push eax
call fcn.1019ad04
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101cb380], eax
call esi
push eax
call fcn.1019ad04
pop ecx
mov dword [0x101cb388], eax
test eax, eax
je 0x101a0bb0
push 0x101ae234
push edi
call esi
push eax
call fcn.1019ad04
pop ecx
mov dword [0x101cb384], eax
mov eax, dword [0x101cb384]
cmp eax, ebx
je 0x101a0c08
cmp dword [0x101cb388], ebx
je 0x101a0c08
push eax
call fcn.1019ad7f
push dword [0x101cb388]
mov esi, eax
call fcn.1019ad7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101a0c08
test edi, edi
je 0x101a0c08
call esi
test eax, eax
je 0x101a0bff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101a0bff
test byte [ebp - 0xc], 1
jne 0x101a0c08
or dword [ebp + 0x10], 0x200000
jmp 0x101a0c41
mov eax, dword [0x101cb37c]
cmp eax, ebx
je 0x101a0c41
push eax
call fcn.1019ad7f
pop ecx
test eax, eax
je 0x101a0c41
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101a0c41
mov eax, dword [0x101cb380]
cmp eax, ebx
je 0x101a0c41
push eax
call fcn.1019ad7f
pop ecx
test eax, eax
je 0x101a0c41
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101cb378]
call fcn.1019ad7f
pop ecx
test eax, eax
je 0x101a0c61
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101a0c63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret