joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov edx, 2
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [eax]
mov dword [ebp - 0x24], eax
movzx eax, word [esi]
test ax, 0xffdf
je 0x4010a7
cmp ax, 9
je 0x4010a7
xor ecx, ecx
cmp ax, 0x5c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], ecx
je 0x401097
cmp ax, 0x22
je 0x4011a0
mov dword [ebp - 0x20], 0
movzx eax, word [esi + edx*2 - 2]
test ax, ax
je 0x4010a5
cmp ax, 9
lea edi, [edx + 1]
sete byte [ebp - 0x1c]
movzx ecx, byte [ebp - 0x1c]
cmp ax, 0x20
sete bl
or cl, bl
je 0x40108f
test byte [ebp - 0x28], 1
je 0x4010a5
cmp ax, 0x5c
mov edx, edi
jne 0x401054
movzx eax, word [esi + edx*2 - 2]
add dword [ebp - 0x20], 1
test ax, ax
jne 0x40106f
add edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
test eax, eax
mov ecx, eax
mov dword [ebp - 0x28], eax
je 0x401177
mov eax, dword [ebp - 0x24]
xor edi, edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax]
nop
lea esi, [esi]
movzx edx, word [eax]
test dx, dx
je 0x40113d
cmp dx, 9
sete bl
cmp dx, 0x20
mov esi, ebx
sete bl
mov ecx, esi
or cl, bl
je 0x401114
test byte [ebp - 0x20], 1
je 0x40113d
add eax, 2
cmp dx, 0x5c
je 0x401182
cmp dx, 0x22
je 0x4011b3
mov edi, dword [ebp - 0x1c]
mov word [edi], dx
movzx edx, word [eax]
add edi, 2
mov dword [ebp - 0x1c], edi
xor edi, edi
test dx, dx
jne 0x4010f8
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
xor edx, edx
mov word [ecx], dx
mov dword [edi], eax
movzx edx, word [eax]
cmp dx, 9
je 0x401159
cmp dx, 0x20
jne 0x401177
add eax, 2
lea esi, [esi]
mov esi, dword [ebp - 0x24]
mov dword [esi], eax
movzx edx, word [eax]
add eax, 2
cmp dx, 9
je 0x401160
cmp dx, 0x20
je 0x401160
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov ebx, 0x5c
add edi, 1
mov word [esi], bx
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x4010f0
and dword [ebp - 0x20], 1
jne 0x40105e
xor dword [ebp - 0x28], 1
jmp 0x401065
mov edx, edi
sar edx, 1
and edi, 1
jne 0x4011d0
add edx, edx
xor dword [ebp - 0x20], 1
sub dword [ebp - 0x1c], edx
xor edi, edi
jmp 0x4010f0
mov ecx, dword [ebp - 0x1c]
not edx
lea edx, [ecx + edx*2]
mov ecx, 0x22
lea edi, [edx + 2]
mov word [edx], cx
mov dword [ebp - 0x1c], edi
xor edi, edi
jmp 0x4010f0
Function at 0x403140
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov ebx, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov esi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call 0x4031b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403236
cmp ax, 9
je 0x403224
cmp ax, 0x20
je 0x403224
xor edi, edi
mov dword [ebp - 0x6c], 0
lea esi, [esi]
cmp ax, 0x5c
je 0x403290
cmp ax, 0x22
je 0x4032a0
mov dword [ebp - 0x6c], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x403236
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4031e0
test edi, 1
jne 0x4031e0
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403224
cmp ax, 0x20
je 0x403224
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoW
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x4032b2
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleW
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004012e0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x6c], 1
jmp 0x4031fb
and dword [ebp - 0x6c], 1
jne 0x4031f4
xor edi, 1
jmp 0x4031fb
movzx esi, word [ebp - 0x2c]
jmp 0x403258
Function at 0x4031b0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov ebx, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov esi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call 0x4031b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403236
cmp ax, 9
je 0x403224
cmp ax, 0x20
je 0x403224
xor edi, edi
mov dword [ebp - 0x6c], 0
lea esi, [esi]
cmp ax, 0x5c
je 0x403290
cmp ax, 0x22
je 0x4032a0
mov dword [ebp - 0x6c], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x403236
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4031e0
test edi, 1
jne 0x4031e0
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403224
cmp ax, 0x20
je 0x403224
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoW
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x4032b2
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleW
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004012e0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x6c], 1
jmp 0x4031fb
and dword [ebp - 0x6c], 1
jne 0x4031f4
xor edi, 1
jmp 0x4031fb
movzx esi, word [ebp - 0x2c]
jmp 0x403258
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6ac92e68
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x590235e6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401fea
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
sub cx, 0x1f9
mul edi
dec cx
mul di
mul ebx
sub ax, 0x22b
or edi, ebx
shr cx, 2
rcl eax, 0x6e
rol ax, 0x19
rcl cx, 0xcb
mul si
mov si, 0x1b0
rcr esi, 0xed
inc si
dec dx
movsx ebx, dh
movsx ecx, si
rcl cx, 0x33
mov edx, esi
shr ax, 0xb9
dec cx
ja 0x402046
test edx, 0x43
ja 0x402067
dec bx
imul eax
jmp 0x402056
rol bx, 0x64
sub di, cx
ror esi, 0x18
ror ecx, 0xef
movsx ebx, bx
rcl eax, 0x5b
mul esi
jae 0x402067
inc ax
movsx ecx, si
rcr ebx, 0x8e
jmp 0x402082
and ecx, 0x33b
ror edx, 0x56
rcr di, 0xc6
or esi, 0x389
movzx edi, al
movsx edi, si
imul edx
mul cx
ror ax, 0x4e
sub ebx, 0xb9
rcl cx, 0x60
jb 0x4020a1
imul si
mul eax
inc esi
xor bx, dx
inc ebx
jmp 0x4020b3
mul eax
add eax, edi
mov ax, 0x2a4
mul ebx
ror edi, 0xfc
xor di, 0xdb
movsx ecx, bh
dec bx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [section..bss], eax
push 0x27
mov esi, 0x47f540
mov edx, 0x547
push 0x42bb10
mov ecx, esi
call fcn.00401ac2
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00401eda
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402182
push 4
call fcn.00405212
pop ecx
lea ecx, [ebp - 8]
xor esi, esi
push ecx
push esi
push eax
push 0x402c5b
push esi
push esi
mov dword [eax], 0x401f88
call fcn.00409ebb
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40217b
cmp dword [ebp - 8], esi
je 0x40218b
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebp - 8], eax
jne 0x402146
push 5
jmp 0x40218d
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00404c78
add esp, 0xc
test eax, eax
je 0x40215d
push 2
jmp 0x40218d
xorps xmm0, xmm0
push 1
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 8], esi
jne 0x402192
jmp 0x402182
mov dword [ebp - 8], esi
push 6
jmp 0x40218d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push 1
call fcn.00403002
call fcn.0040bd02
int3

Function at 0x4060de
Capabilities:
Parse pe header

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

Function at 0x411e51
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4249f4
push 0x4249ec
push str.FlsAlloc
push 0x1e
call fcn.00411cfa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e85
push dword [ebp + 8]
mov ecx, esi
call dword [0x421158]
call esi
jmp 0x411e8b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x415fd6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406250
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413af0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416018
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416174
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420020
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x480c08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004163fc
mov ecx, dword [esi*4 + 0x480c08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41616d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41616d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41616d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004163fc
add esp, 0x14
test edx, edx
jl 0x41616d
jg 0x4160e3
test eax, eax
jb 0x41616d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41616d
jl 0x4160fd
cmp dword [ebp - 0x1008], eax
ja 0x41616d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41611b
test ebx, ebx
je 0x416154
cmp ecx, edi
jae 0x416154
mov al, byte [ecx]
cmp al, 0xd
jne 0x416135
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416141
cmp byte [ecx + 1], 0xa
jne 0x416141
inc ecx
jmp 0x416141
movzx eax, al
movsx eax, byte [eax + 0x42ba00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41611b
cmp edx, ebx
jne 0x41611b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416172
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405204
leave
ret
Function at 0x41ce13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x480c08]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ce53
cmp byte [ebx], 0xa
jne 0x41ce53
or byte [eax + edi + 0x28], 4
jmp 0x41ce58
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cf56
mov al, byte [edx]
cmp al, 0x1a
je 0x41cf38
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ce87
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ceac
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ceb6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ce69
jmp 0x41cf56
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cf33
cmp dword [ebp - 0xc], 0
je 0x41cf33
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x480c08]
test byte [eax + edi + 0x28], 0x48
je 0x41cf0d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cef8
mov byte [esi], dl
jmp 0x41cf09
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x480c08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cf56
cmp byte [ebp - 1], 0xa
jne 0x41cf1c
cmp esi, ebx
jne 0x41cf1c
mov byte [esi], 0xa
jmp 0x41cf55
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041641a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cf56
mov byte [esi], 0xd
jmp 0x41cf55
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x480c08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cf52
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cf56
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cf5f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x480c08]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cfa2
cmp word [esi], dx
jne 0x41cfa2
or byte [edi + eax + 0x28], 4
jmp 0x41cfa7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d0fa
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d0da
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cfe9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d01f
cmp eax, edx
jae 0x41d02b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cfc1
jmp 0x41d0fa
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d0d6
cmp dword [ebp - 0x14], 0
je 0x41d0d6
mov eax, dword [ebx*4 + 0x480c08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d0ae
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d077
mov word [esi], cx
jmp 0x41d0aa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x480c08]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x480c08]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x480c08]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d0fa
pop ebx
cmp word [ebp - 4], bx
jne 0x41d0bf
cmp esi, dword [ebp + 0xc]
jne 0x41d0bf
mov word [esi], bx
jmp 0x41d0f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041641a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d0fa
push 0xd
jmp 0x41d0f3
mov ecx, dword [ebx*4 + 0x480c08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d0f1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d0fa
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4010db
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x4076b4
mov ecx, dword [eax]
sub ecx, ebx
push edi
mov dword [ebp - 8], ebx
je 0x4011af
dec ecx
je 0x40118c
dec ecx
dec ecx
je 0x401161
sub ecx, 3
jne 0x4012a1
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmp dword [ecx], ebx
jne 0x40125f
mov ecx, dword [esi]
cmp ecx, ebx
je 0x401141
mov eax, dword [eax + 4]
push ebx
push ebx
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4012a1
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov eax, dword [esi + 4]
push dword [edi]
mov eax, dword [eax + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
jmp 0x4012a1
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmp dword [ecx], ebx
jne 0x40125f
push dword [ebp + 0x10]
push dword [edi]
xor edi, edi
push 0x22c187
mov eax, dword [eax + 4]
push dword [eax]
mov eax, esi
call section..text
add esp, 0x10
jmp 0x401159
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmp dword [ecx], ebx
jne 0x40125f
mov eax, dword [eax + 4]
push ebx
push dword [ebp + 0x10]
push dword [edi]
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x401159
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
sub ecx, ebx
je 0x401247
dec ecx
je 0x40122f
dec ecx
je 0x401216
dec ecx
je 0x401206
sub ecx, 3
jne 0x4012a1
mov eax, dword [eax + 4]
push ebx
push ebx
push dword [edi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4012a1
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi + 4]
push dword [esi]
mov eax, dword [eax + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x401159
push ebx
push dword [edi]
lea edi, [ebp + 0x10]
push 0x22c183
jmp 0x40117b
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
push dword [edi]
mov eax, dword [eax]
push dword [esi]
call fcn.0040142c
add esp, 0xc
jmp 0x401159
mov eax, dword [eax + 4]
push ebx
push dword [ebp + 0x10]
push dword [esi]
push dword [edi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x401159
push dword [ebp + 0x10]
push dword [edi]
push dword [esi]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x4012a1
push dword [ebp + 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4012a1
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004010db
add esp, 0xc
test eax, eax
je 0x401298
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004010db
add esp, 0xc
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017d3
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esi]
push edi
mov edi, 0xc0000004
test eax, eax
je 0x4017f1
push 0
push 0
push eax
push dword [esp + 0x14]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, eax
jmp 0x40182c
push ebx
mov ebx, 0x1000
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
test eax, eax
je 0x40182b
push 0
push ebx
push eax
push dword [esp + 0x18]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, eax
test edi, edi
jge 0x401821
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, ebx
cmp edi, 0xc0000004
je 0x4017f7
pop ebx
mov eax, edi
pop edi
ret

Function at 0x40209c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
push edi
push str._n__..___mimilove_1.0_built_on_Jul_31_2016_01:58:13_n_.__.___A_La_Vie__A_LAmour__n___________n________Benjamin_DELPY__gentilkiwi____benjamin_gentilkiwi.com___n__v____http:__blog.gentilkiwi.com_mimikatz______________oe.eo__n______Windows_2000_only____________________________________n_n
call fcn.00401788
pop ecx
mov esi, 0x114
push esi
lea eax, [esp + 0x14]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40215a
cmp dword [esp + 0x14], 5
jne 0x40214e
cmp dword [esp + 0x18], 0
jne 0x40214e
lea eax, [esp + 0xc]
push eax
call fcn.00401866
pop ecx
test eax, eax
je 0x40216d
push dword [esp + 0xc]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402140
push edi
lea esi, [esp + 0xc]
call fcn.00401060
pop ecx
test eax, eax
je 0x402137
mov esi, dword [esp + 8]
push esi
call fcn.004021e8
pop ecx
push esi
call fcn.004026d7
pop ecx
call fcn.004010a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40216d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_wmain___OpenProcess__0x_08x__n
jmp 0x402166
push str.ERROR_wmain___Only_for_Windows_2000_n
call fcn.00401788
jmp 0x40216c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_wmain___GetVersionEx__0x_08x__n
call fcn.00401788
pop ecx
pop ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret