joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd451
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403068
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40201c
ret
mov edi, edi
mov esi, 0x4020c7
mov edi, esi
push 1
push 0x403086
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov edx, eax
pop ebx
mov ecx, 0x3ab
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x402040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x402066
xor eax, eax
mov dword [0x403099], eax
add esp, 4
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x101f6679
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10207910], 0x169c
mov dword [0x1020791c], 0
mov byte [0x10207920], 0
mov esi, dword [0x10207914]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffff725
mov dword [0x10207914], ecx
mov dword [0x10207918], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dl, cl
mov dword [0x10207910], 0x798
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10207918]
add eax, 1
mov dword [0x10207918], eax
cmp eax, 0x100
mov dword [ebp - 0x20], eax
jl 0x101f66d6
xor eax, eax
mov dword [0x10207918], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x10207924], 0
mov dword [0x10207914], 0x1c19
mov edx, dword [0x1020791c]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x28], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x10207924], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1020791c], edx
mov dword [0x10207910], 0x5d9
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov cl, byte [ecx + edi]
mov byte [0x10207920], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x10207910], 0x138b
mov cl, byte [0x10207920]
mov edx, dword [0x1020791c]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x10207918]
add edx, 1
mov dword [0x10207918], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x101f6715
mov dword [0x10207914], 0x870
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101f67d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10207914], 0x243e
mov dword [0x10207910], 0x1928
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, sym.UEMy__Ordinal_1048711
imul esi, ecx, 0x7c
mov edi, edx
add edi, esi
add edi, 4
imul esi, ecx, 0x7c
add edx, esi
add edx, 0x48
add ecx, 1
mov edx, dword [edx]
movzx esi, word [edi]
xor esi, edx
add esi, eax
cmp ecx, 0x1e1
mov eax, esi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x101f6811
xor eax, eax
mov dword [0x10207914], 0x908
mov dword [0x10207910], 0x24bf
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101f8215]
mov dh, byte [eax + 0x101f81e6]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x140], ecx
jne 0x101f6888
lea eax, [ebp - 0x12c]
mov dword [0x10207914], 0x2260
mov dword [0x10207910], 0xe94
mov dword [ebp - 0x144], eax
call fcn.101f792c
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.101f63c3
mov ecx, eax
mov dword [0x1020792c], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
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, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, sym.UEMy__Ordinal_1048711
imul esi, eax, 0x7c
mov edi, edx
add edi, esi
add edi, 0x48
mov esi, dword [edi]
imul edi, eax, 0x7c
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x7c
add edx, ebx
add edx, 4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.101f6e25
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x1e1
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x101f6933
lea eax, [0x101f81f4]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x10207910], 0x349
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.101f6679
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.101f6c34
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x534dc
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x142200
add al, 0
and dl, byte [eax + eax]
Function at 0x101f6a83
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 [0x10207910], 0x24bf
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x101f8215]
mov dl, byte [eax + 0x101f81e6]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x101f6aa5
lea eax, [ebp - 0x24]
mov dword [0x10207914], 0x2260
mov dword [0x10207910], 0xe4d
mov dword [ebp - 0x34], eax
call fcn.101f792c
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101f63c3
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x101f6baf
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 [0x10207914], 0x909
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.101f6530
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x10207910], 0x1fc8
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x40], ecx
mov dword [0x10207914], 0x3e4
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 4], ecx
add ecx, 0x157e
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x101f6ba6
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 0x101f6c34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10207918], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x1020791c], 0
mov dword [0x10207928], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x101f6d61
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x10207918], edx
mov dword [0x10207910], 0x8c6
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1020791c], edx
mov dword [0x10207910], 0x135e
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x10207920], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10207920]
mov edx, dword [0x1020791c]
mov byte [ebx + edx], cl
mov edx, dword [0x10207918]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1020791c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10207928], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x10207914], 0x18e3
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov dword [0x10207910], 0x1318
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
jne 0x101f6d69
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x10207918]
mov ecx, dword [0x1020791c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jmp 0x101f6c91

Function at 0x101f6f05
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x10207910]
add esi, 0xfffff3cb
mov dword [0x10207910], esi
mov dword [0x10207914], 0x12fb
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x101f717d
jmp 0x101f6fd3
mov dword [0x10207910], 0x17af
mov dword [0x10207914], 0x2127
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [0x10207910]
add edx, 0xfffff012
mov dword [0x10207910], edx
and byte [eax], dl
Function at 0x101f7188
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x10207910], 0x1f05
mov dword [ebp - 0x10], eax
call fcn.101f6258
xor ecx, ecx
mov dword [0x10207910], 0x260c
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x10207910], 0x18d2
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10207910], 0x2627
mov ebx, dword [eax + esi + 0x24]
mov dword [0x10207914], 0x10b1
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x101f72f1
jmp 0x101f728b
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [ebp - 0x30]
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 - 0x34], eax
mov byte [ebp - 0x35], bh
mov byte [ebp - 0x36], cl
je 0x101f7282
mov eax, dword [ebp - 0x34]
add eax, 1
mov cl, byte [ebp - 0x35]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x36]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x2c], eax
jne 0x101f7209
jmp 0x101f7282
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x28], eax
jb 0x101f72a3
jmp 0x101f72f1
mov al, byte [ebp - 0x36]
test al, 1
jne 0x101f72cc
jmp 0x101f725c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x4c], eax
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
jmp 0x101f72a3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [0x10207910], 0x1f05
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
jmp 0x101f7209
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101f72fc
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x10207914], 0x14f6
mov edx, dword [0x10207910]
add edx, 0xca
mov dword [0x10207910], edx
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.101f67d8
lea ecx, [0x101f76bc]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
mov dword [0x10207914], 0x446
mov dword [esp + 0x78], 0x142200
mov edx, dword [0x102078fc]
mov dword [esp + 0x50], edx
mov edx, dword [0x10207900]
mov dword [esp + 0x7c], edx
mov edx, dword [0x10207904]
mov dword [esp + 0x90], edx
mov edx, dword [0x10207908]
mov dword [esp + 0x48], edx
mov edx, dword [0x1020790c]
mov dword [esp + 0x70], edx
mov dword [0x10207910], 0x3e1
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
jne 0x101f73ce
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp dword [eax], 0x4550
je 0x101f73ea
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x101f73a2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov dword [0x10207910], 0x18d2
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x88], edx
mov dword [0x10207914], 0x891
call fcn.101f752a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x101f7477
lea eax, [esp + 0x40]
mov dword [0x10207910], 0x87b
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101f6a83
mov dword [esp + 0xc], eax
mov dword [0x10207910], 0x168d
mov eax, esp
lea ecx, [esp + 0x40]
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
call eax
sub esp, 4
mov eax, 2
mov dword [0x10207910], 0x2b9
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x101f752a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x10207910]
add ecx, 0x1b54
mov dword [0x10207910], ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [0x10207914]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2414
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x101f75d4
xor eax, eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x2a], dx
mov ax, word [ebp - 0x2a]
cmp ax, 0x64
jne 0x101f7580
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x101f7659
jmp 0x101f7580
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
sete dl
mov byte [ebp - 0x2b], dl
mov al, byte [ebp - 0x2b]
test al, 1
jne 0x101f7637
jmp 0x101f7580
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, dword [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
je 0x101f7617
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x3c], eax
mov eax, 0x70a
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x104
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
jl 0x101f75d4
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [0x10207910], ecx
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
je 0x101f75b8
jmp 0x101f7580
mov dword [0x10207910], 0x20a6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101f758a
jmp 0x101f7580
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101f7580
mov eax, 0x1f12
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffffe957
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x3d], bl
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x101f76a3
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [0x10207910], eax
mov cl, byte [ebp - 0x3d]
and cl, 1
movzx eax, cl
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001113
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001080
call fcn.01001314
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001150
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001150
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001168
cmp eax, 0x20b
je 0x1001155
mov dword [ebp - 0x1c], ebx
jmp 0x100117c
cmp dword [ecx + 0x84], 0xe
jbe 0x1001150
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001176
cmp dword [ecx + 0x74], 0xe
jbe 0x1001150
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
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.0100130c
cmp dword [section..data], ebx
jne 0x10011d7
push fcn.0100130c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010012f5
push 0x1001058
push 0x1001054
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 - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1001050
push 0x100104c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100126d
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001241
cmp al, 0x22
jne 0x1001233
cmp byte [esi], 0x22
jne 0x100124a
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001254
cmp al, 0x20
jbe 0x1001246
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1001278
movzx eax, word [ebp - 0x50]
jmp 0x100127b
cmp byte [esi], 0x20
jbe 0x100124a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100126d
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1001298
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10012cd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100134f
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1017f3dd
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1018216a
push ebx
push esi
call fcn.10182096
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1018202a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10182117
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10182169
push edi
push eax
call fcn.1018006d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10182137
call fcn.101800bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10182168
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1018202a
add esp, 0x20
test eax, eax
jne 0x10182156
push edi
call fcn.101800bb
jmp 0x1018215e
push ebx
call fcn.101800bb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x101823d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10189968
push 0x10189960
push str.FlsAlloc
push 0x1f
call fcn.101822f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1018240b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10188120]
call esi
jmp 0x10182411
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10182455
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10189978
push 0x10189970
push str.FlsGetValue
push 0x21
call fcn.101822f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1018248c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10188120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10182494
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10189980
push 0x10189978
push str.FlsSetValue
push 0x22
call fcn.101822f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101824ce
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10188120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]