joyce8/EMBER2024-capa huggingface dataset:
Function at 0x598324
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407430
xor eax, eax
push ebp
push 0x5983c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x598365
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x598365
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004069ac
test eax, eax
je 0x59836e
sub eax, 4
mov eax, dword [eax]
test al, al
jbe 0x5983a0
mov byte [ebp - 5], al
mov bl, 1
lea eax, [ebp - 4]
call fcn.00407f5c
movzx esi, bl
mov edx, dword [ebp - 4]
movzx edx, word [edx + esi*2 - 2]
mov ecx, ebx
or cl, 0x75
movzx ecx, cl
xor dx, cx
mov word [eax + esi*2 - 2], dx
inc ebx
dec byte [ebp - 5]
jne 0x598377
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5983c7
lea eax, [ebp - 4]
call fcn.00407438
ret

Function at 0x598b70
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x598b79
mov eax, dword [ebp - 4]
add esp, 0xffffffe4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10020], edx
mov dword [ebp - 0x1001c], edx
mov dword [ebp - 0x10018], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x598dcc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40
mov eax, dword [0x5b2d88]
call fcn.00414a98
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x598d64
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, 2
mov edx, 0xfffffc88
mov eax, dword [ebp - 0x10]
call fcn.00414b8c
mov edx, 0x5b2a10
mov ecx, 0x378
mov eax, dword [ebp - 0x10]
call fcn.00414b34
xor ecx, ecx
mov edx, dword [0x5b2d84]
mov eax, dword [ebp - 0x10]
call fcn.00414b8c
lea edx, [ebp - 0x10018]
mov eax, dword [0x5b2d88]
call fcn.00414e10
mov edx, dword [ebp - 0x10018]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3b0]
lea eax, [ebp - 8]
call fcn.0040792c
xor ecx, ecx
mov edx, 0x10
mov eax, dword [ebp - 8]
call fcn.00414af0
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x598cb0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x10014]
mov ecx, 0x10000
mov eax, dword [ebp - 0x10]
call fcn.00414b34
mov ebx, eax
lea edx, [ebp - 0x10014]
mov ecx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00414b60
test ebx, ebx
je 0x598c7e
cmp ebx, eax
je 0x598c51
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598cb7
mov ecx, 2
mov edx, 0xfffffc88
mov eax, dword [ebp - 0x14]
call fcn.00414b8c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetEndOfFile_1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4016e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x404328]
push eax
mov ecx, dword [str.Usage:__s___f_____l_l____c_l____o_outfile___files__n___o__file____put_output_in__file__n___f__________adjust_immediate_fanout_chains_n___l__len_____stagger_length_of_leaf_edges_between__1_l__n___c__len_____put_disconnected_nodes_in_chains_of_length_l_n______________print_usage_n]
push ecx
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret

Function at 0x401710
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401779
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0x72
jne 0x401744
mov dword [ebp - 4], str.reading
jmp 0x40174b
mov dword [ebp - 4], str.writing
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x404328]
push eax
push str._s:_could_not_open_file__s_for__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x401f4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40430c]
jne 0x401f55
repz ret
jmp fcn.0040220c
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100f2373
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x101126e4], 0x40e
mov dword [ebp - 4], 0
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 [0x101126e4], 0x12e5
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 0x100f23fb
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x104
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
jl 0x100f23b1
jmp 0x100f23fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x100f2475
jmp 0x100f24a6
mov eax, dword [ebp - 0x18]
mov dword [0x101126e0], 0x1e8e
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100f24a6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100f24a6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100f24a6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100f24a6
mov dword [0x101126e0], 0x2d6d
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x64
je 0x100f23e7
jmp 0x100f24a6
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp word [eax], 0x6c
jne 0x100f24a6
mov eax, 1
mov dword [0x101126e4], 0x273
mov dword [ebp - 0x2c], eax
jmp 0x100f24b5
xor eax, eax
mov dword [0x101126e0], 0x1ce9
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x100f24de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.100f1f95
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov esi, ecx
add esi, edx
cmp dword [eax + edx], 0x4550
sete bl
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x19], bl
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x19]
test dl, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x100f2527
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov dword [0x101126e4], 0x18f9
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov dword [0x101126e0], 0x163f
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x100f25d8
jmp 0x100f2584
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
jmp 0x100f25a6
mov eax, dword [ebp - 0x28]
add eax, 0x24
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x50], ecx
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x50]
add ecx, dword [edx]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0x100f2568
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x18]
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 - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x56], cl
jne 0x100f25e3
mov al, byte [ebp - 0x56]
test al, 1
jne 0x100f2638
jmp 0x100f260e
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ebp - 0x55]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x54]
add edx, 1
mov ah, byte [ebp - 0x56]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0x100f25a6
jmp 0x100f25cf
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov edx, dword [ebp - 0x44]
add edx, 2
mov esi, dword [ebp - 0x30]
cmp ecx, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], eax
jb 0x100f2568
jmp 0x100f25d8
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov dword [0x101126e0], 0x1c5f
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov dword [0x101126e4], 0xfffffd31
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x34], edi
jmp 0x100f25d8
Function at 0x100f274b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov ecx, dword [0x101126e4]
add ecx, 0xffffdc36
mov dword [0x101126e0], ecx
cmp eax, 0
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x100f27a2
lea eax, [0x100f22fa]
mov dword [0x101126e4], 0x794
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x100f27bf
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [ebp - 0x18], eax
je 0x100f27f6
jmp 0x100f27d2
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], eax
call fcn.100f1978
mov dword [ebp - 0x18], eax
jmp 0x100f27f6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
je 0x100f278e
mov eax, dword [ebp - 0x20]
add eax, 0x1abe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [0x101126e0], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jmp 0x100f27bf
mov eax, dword [ebp - 0x18]
add esp, 0x28
pop ebp
ret

Function at 0x100f29db
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 [0x101126ec], 0
mov byte [0x101126f0], 0
mov dword [0x101126e4], 0x1f36
mov dword [0x101126e8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101126e4]
add eax, 0xffffee4c
mov dword [0x101126e4], eax
mov eax, dword [0x101126e8]
add eax, 1
mov dword [0x101126e8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100f2a20
xor eax, eax
mov dword [0x101126e8], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101126f4], 0
mov edx, dword [0x101126ec]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], 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 [0x101126f4], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x101126ec], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101126f0], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x101126e4], 0x13be
mov cl, byte [0x101126f0]
mov edx, dword [0x101126ec]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x101126e0], 0x1950
mov edx, dword [0x101126e8]
add edx, 1
mov dword [0x101126e8], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x100f2a64
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100f2d25
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101126e0], 0x2670
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
jmp 0x100f2d83
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x28]
mov dword [0x101126e0], 0x3070
mov dword [ebp - 0x38], eax
call fcn.100f2ba2
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.100f211d
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x100f2d4a
jmp 0x100f2daf
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x100f4277]
mov dh, byte [eax + 0x100f4248]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
je 0x100f2d53
jmp 0x100f2d83
mov dword [0x101126e4], 0x143e
mov eax, dword [ebp - 0x3c]
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 - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.100f2e61
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov edx, dword [ebp - 0x40]
add edx, 0x2684
mov esi, dword [ebp - 0x40]
mov dword [esi + 0x3c], 0xc0
mov dword [esi + 0xc0], 0x4550
add esi, 0xffc00000
mov dword [0x101126e4], 0xffffea5e
mov edi, dword [ebp - 0x30]
mov dword [edi + 0x4c], esi
mov esi, dword [ebp - 0x40]
mov dword [edi + 0x54], esi
mov dword [0x101126e0], 0x9c6
cmp esi, 0
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
je 0x100f2e57
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x100f304a
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 [0x101126e0], 0x82b
mov dword [0x101126e8], 0
mov dword [0x101126ec], 0
mov dword [0x101126f8], 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 0x100f31a6
jmp 0x100f30c6
mov eax, dword [0x101126e8]
mov ecx, dword [0x101126ec]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101126e8], edx
mov dword [0x101126e0], 0x2616
mov ecx, dword [ebp - 0x20]
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 [0x101126ec], edx
mov dword [0x101126e0], 0x10e9
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101126f0], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101126f0]
mov edx, dword [0x101126ec]
mov byte [edi + edx], cl
mov dword [0x101126e0], 0x16fa
mov edx, dword [0x101126e8]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101126ec]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x101126e0], 0x205d
and ebx, 0xff
mov dword [0x101126f8], ebx
mov dword [0x101126e4], 0x8a6
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x2c], edx
jne 0x100f30af
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406e37
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
and dword [ebp + 8], 0
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x406e7f
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x406e71
mov ecx, dword [ebx]
push dword [ebp + 0xc]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.0040f211
test eax, eax
je 0x406e88
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x406e58
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x406e81

Function at 0x406ea2
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, dword fs:[0x18]
mov ebx, dword [ebx + 0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x1c]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 8]
cmp ebx, 0
je 0x406edf
push dword [0x4011ac]
push ebx
call fcn.00406e37
mov dword [0x416d9c], eax
push dword [0x401d88]
push ebx
call fcn.00406e37
mov dword [0x416d98], eax
pop ebx
ret

Function at 0x407101
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x40714c
push 4
push edi
call dword [0x416f84]
test eax, eax
jne 0x407176
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x407176
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x407176
lea esi, [eax + 0x80]
push 8
push esi
call dword [0x416f84]
test eax, eax
jne 0x407176
cmp dword [esi + 4], eax
je 0x407176
mov esi, dword [esi]
test esi, esi
je 0x407176
add esi, edi
push ebx
push 0x14
push esi
xor bl, bl
call dword [0x416f84]
test eax, eax
jne 0x4071a4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4071a0
push 2
add eax, edi
push eax
call dword [0x416f84]
test eax, eax
je 0x40717a
mov bl, 1
jmp 0x407190
xor eax, eax
jmp 0x4071bd
mov eax, dword [esi + 0xc]
push dword [esp + 0xc]
add eax, edi
push eax
xor bl, bl
call dword [0x416e8c]
test eax, eax
je 0x4071a4
push 0x14
add esi, 0x14
push esi
call dword [0x416f84]
test eax, eax
je 0x40715c
test bl, bl
jne 0x4071ba
push 0x14
push esi
call dword [0x416f84]
test eax, eax
jne 0x4071ba
cmp dword [esi + 0xc], eax
je 0x4071ba
mov eax, esi
jmp 0x4071bc
xor eax, eax
pop ebx
pop esi
ret 4
Function at 0x40b2fc
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and dword [0x416c80], 0
sub esp, 0x210
call fcn.0040a86d
test al, al
jne 0x40b317
leave
ret
or dword [0x416b74], 0xffffffff
push ebx
mov ebx, fcn.0040b258
call fcn.0040b781
xor ebx, ebx
push ebx
push 0x80000
push ebx
mov dword [0x416d34], eax
call dword [0x416ec8]
mov dword [0x418024], eax
cmp eax, ebx
jne 0x40b359
call dword [0x416e30]
mov dword [0x418024], eax
mov byte [0x41675f], bl
jmp 0x40b360
mov byte [0x41675f], 1
call fcn.00414573
mov eax, 0x188
mov dword [0x417024], ebx
mov byte [0x416786], bl
call fcn.0040ed72
mov dword [0x416bec], eax
cmp eax, ebx
jne 0x40b38b
xor al, al
jmp 0x40b4e4
push esi
mov dword [ebp - 8], ebx
push edi
movzx esi, word [ebp - 8]
shl esi, 2
mov eax, dword [esi + 0x416020]
movzx eax, byte [eax]
inc eax
call fcn.0040ed72
mov edi, eax
cmp edi, ebx
je 0x40b411
mov ecx, dword [esi + 0x416020]
cmp byte [ecx], bl
mov byte [ebp - 1], bl
jle 0x40b3d9
xor eax, eax
mov dl, 0xba
mov bl, byte [eax + ecx + 1]
add bl, dl
inc byte [ebp - 1]
mov byte [eax + edi], bl
movzx eax, byte [ebp - 1]
movsx ebx, byte [ecx]
add dl, 2
cmp eax, ebx
jl 0x40b3bd
xor ebx, ebx
movzx eax, byte [ebp - 1]
mov byte [eax + edi], bl
cmp byte [edi], 0x57
jne 0x40b418
mov eax, dword [esi + 0x416020]
movzx eax, byte [eax]
lea ecx, [edi + 1]
dec eax
push ecx
call fcn.0040f1a6
mov ecx, dword [0x416bec]
push edi
mov dword [esi + ecx], eax
call fcn.0040ed8a
mov eax, dword [0x416bec]
cmp dword [esi + eax], ebx
jne 0x40b421
xor al, al
jmp 0x40b4e2
mov eax, dword [0x416bec]
inc edi
mov dword [esi + eax], edi
inc dword [ebp - 8]
cmp word [ebp - 8], 0x62
jb 0x40b390
call dword [0x416f54]
mov ecx, dword [0x416d34]
mov dword [0x416d28], eax
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx edx, word [eax + 6]
xor esi, esi
cmp dx, bx
jbe 0x40b478
push 3
pop edi
cmp di, dx
jae 0x40b478
movzx edx, word [eax + 0x14]
lea eax, [edx + eax + 0x90]
mov esi, dword [eax + 0xc]
push dword [eax + 8]
add esi, ecx
push esi
call dword [0x416f84]
test eax, eax
je 0x40b478
xor esi, esi
mov dword [0x416c14], esi
call dword [0x416e5c]
push 0x403dc8
mov word [0x416c00], ax
call fcn.0041110b
test al, al
jne 0x40b49f
or dword [0x416c80], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 8], 0x103
call dword [0x416c1c]
test eax, eax
je 0x40b4d6
mov eax, dword [ebp - 8]
add eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040eddd
mov dword [0x416b68], eax
cmp eax, ebx
jne 0x40b4e0
mov dword [0x416b68], 0x403dec
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b781
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ebx
and esi, 0xffff0000
push edi
je 0x40b7d7
push 0x40
push esi
call dword [0x416f84]
test eax, eax
jne 0x40b7cf
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40b7cf
mov eax, dword [esi + 0x3c]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x40b7cf
push 0xf8
push edi
call dword [0x416f84]
test eax, eax
jne 0x40b7cf
cmp dword [edi], 0x4550
jne 0x40b7cf
mov eax, dword [edi + 0x50]
add eax, esi
cmp eax, ebx
ja 0x40b7dc
sub esi, 0x10000
jne 0x40b78d
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
jmp 0x40b7d9