joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468708
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00458370
mov eax, dword [0x4983c0]
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.0046eee6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46874a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4688a6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004583a0
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 + 0x499790]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046b866
mov ecx, dword [esi*4 + 0x499790]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x46889f
cmp eax, dword [ecx + edi + 0x24]
jne 0x46889f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x46889f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b866
add esp, 0x14
test edx, edx
jl 0x46889f
jg 0x468815
test eax, eax
jb 0x46889f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46889f
jl 0x46882f
cmp dword [ebp - 0x1008], eax
ja 0x46889f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46884d
test ebx, ebx
je 0x468886
cmp ecx, edi
jae 0x468886
mov al, byte [ecx]
cmp al, 0xd
jne 0x468867
lea eax, [edi - 1]
cmp ecx, eax
jae 0x468873
cmp byte [ecx + 1], 0xa
jne 0x468873
inc ecx
jmp 0x468873
movzx eax, al
movsx eax, byte [eax + 0x498520]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46884d
cmp edx, ebx
jne 0x46884d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4688a4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00457f0e
leave
ret
Function at 0x46b0de
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4983c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x48dd28
push esi
call fcn.00473b68
pop ecx
pop ecx
test eax, eax
jne 0x46b10c
xor al, al
jmp 0x46b189
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0046ae13
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x46b146
push dword [ebp - 0x210]
call fcn.004668fd
xor al, al
jmp 0x46b187
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x46b14c
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x46b16c
push edx
call fcn.0046b015
pop ecx
test al, al
je 0x46b137
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46b17a
mov bl, 1
push dword [ebp - 0x210]
call fcn.004668fd
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00457f0e
leave
ret
Function at 0x46d618
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x499790]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46d658
cmp byte [ebx], 0xa
jne 0x46d658
or byte [edi + eax + 0x28], 4
jmp 0x46d65d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46d75c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46d73f
inc eax
cmp dl, 0xd
je 0x46d689
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46d6af
cmp eax, ecx
jae 0x46d6bd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46d671
jmp 0x46d75c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x46d73a
cmp dword [ebp - 0x10], 0
je 0x46d73a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x499790]
test byte [eax + edi + 0x28], 0x48
je 0x46d714
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46d6ff
mov byte [esi], dl
jmp 0x46d710
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x499790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46d75c
cmp byte [ebp - 1], 0xa
jne 0x46d723
cmp esi, ebx
jne 0x46d723
mov byte [esi], 0xa
jmp 0x46d75b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046b884
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46d75c
mov byte [esi], 0xd
jmp 0x46d75b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x499790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46d759
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46d75c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d765
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x499790]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46d7ab
cmp word [ebx], dx
jne 0x46d7ab
or byte [eax + edi + 0x28], 4
jmp 0x46d7b0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x46d913
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x46d8f3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46d7f1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46d827
cmp eax, edx
jae 0x46d835
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x46d7cc
jmp 0x46d913
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x46d8ee
cmp dword [ebp - 0x18], 0
je 0x46d8ee
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x499790]
test byte [eax + edi + 0x28], 0x48
je 0x46d8c4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46d888
mov word [esi], cx
jmp 0x46d8bf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x499790]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x499790]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x499790]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46d913
pop eax
cmp word [ebp - 4], ax
jne 0x46d8d4
cmp esi, ebx
jne 0x46d8d4
mov word [esi], ax
jmp 0x46d910
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046b884
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46d913
push 0xd
pop eax
jmp 0x46d8cf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x499790]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46d90d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46d913
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x470147
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48e64c
push 0x48e644
push str.FlsAlloc
push 0x1f
call fcn.0046ffc6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47017b
push dword [ebp + 8]
mov ecx, esi
call dword [0x47e370]
call esi
jmp 0x470181
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4701c5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48e65c
push 0x48e654
push str.FlsGetValue
push 0x21
call fcn.0046ffc6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4701fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x47e370]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]

Function at 0x470204
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48e664
push 0x48e65c
push str.FlsSetValue
push 0x22
call fcn.0046ffc6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47023e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47e370]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
Function at 0x473686
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00473602
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4737f5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4737f5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4737aa
jg 0x4736e2
test eax, eax
je 0x4737a0
push 1
push 0x1000
call fcn.0046fdc8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x473705
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x473797
push 0x8000
push ebx
call fcn.0046c6f0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47372e
jg 0x473729
cmp ecx, 0x1000
jb 0x47372e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046e885
add esp, 0x10
cmp eax, 0xffffffff
je 0x473773
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x473729
jl 0x47375a
test ecx, ecx
jne 0x47371b
push dword [ebp - 0xc]
push ebx
call fcn.0046c6f0
push esi
call fcn.0046fe25
add esp, 0xc
xor ebx, ebx
jmp 0x473803
cmp byte [edi + 0x24], 0
je 0x47378a
cmp dword [edi + 0x20], 5
jne 0x47378a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x473795
mov ebx, dword [edi + 0x18]
jmp 0x473797
xor ebx, ebx
push esi
call fcn.0046fe25
pop ecx
jmp 0x473803
test ecx, ecx
jg 0x47376c
jl 0x4737aa
test eax, eax
jae 0x47376c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b884
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4737ca
cmp byte [edi + 0x1c], 0
je 0x47376c
jmp 0x4737fb
push ebx
call fcn.00473598
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x47376c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x473803
cmp byte [edi + 0x1c], 0
je 0x473800
mov ebx, dword [edi + 0x18]
jmp 0x473803
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046b884
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4761a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x476244
push ebx
push esi
call fcn.00476170
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.00472c1a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4761f1
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476243
push edi
push eax
call fcn.0047074b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x476211
call fcn.0046fe25
pop ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476242
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00472c1a
add esp, 0x20
test eax, eax
jne 0x476230
push edi
call fcn.0046fe25
jmp 0x476238
push ebx
call fcn.0046fe25
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x476247
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x476258
pop esi
ret
push ebx
push edi
push esi
call fcn.00476170
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0047074b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x476280
push ebx
push esi
push edi
call fcn.00459340
add esp, 0xc
push 0
call fcn.0046fe25
pop ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4769da
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004764f5
Function at 0x47ab0d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4983c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x47ab50
call fcn.00467544
mov dword [eax], 0xf
call fcn.00467557
mov dword [eax], 0xd
call fcn.0046fb90
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457f0e
leave
ret
test eax, eax
jne 0x47ab57
inc eax
jmp 0x47ab44
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x47ab42
xor eax, eax
cmp ecx, 1
setne al
jmp 0x47ab44

Function at 0x47d190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47d1bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47d1bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001170
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x10001180
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001180
mov ecx, dword [ecx + 4]
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x10001290
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
pop ecx
ret 8

Function at 0x10001550
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x1000a040]
push ebx
push ebp
xor ebp, ebp
push ebp
push 2
mov dword [esp + 0x138], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100015c5
push esi
mov esi, dword [esp + 0x13c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringA]
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
push 1
push 0x400
call edi
sub eax, 2
je 0x100015bf
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001596
jmp 0x100015c3
mov ebp, dword [esp + 0x18]
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov eax, ebp
pop ebp
pop ebx
call fcn.10001e01
add esp, 0x12c
ret
Function at 0x100015f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x33c
mov eax, dword [0x1000a040]
push 0
push 2
mov dword [esp + 0x340], eax
mov dword [esp + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100016cb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea edx, [esp + 0x3c]
push edx
call edi
mov esi, eax
push 0x104
lea eax, [esp + 0x144]
push eax
push 0
call ebx
push 0x104
lea ecx, [esp + 0x144]
push ecx
call edi
lea edx, [esp + 0x144]
sub edx, esi
add eax, edx
push eax
lea eax, [esp + 0x24c]
push eax
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x248]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push edx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
je 0x100016bf
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001648
jmp 0x100016c7
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
pop esi
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x338]
mov eax, dword [esp]
call fcn.10001e01
add esp, 0x33c
ret
Function at 0x10001d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
jne 0x10001d69
je 0x10001d69
call 0x580c62f8
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10001da8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0x10001ad0
push 0
push 0
mov dword [ebp + 0xc], 1
call esi
lea edx, [ebp - 4]
push edx
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10001cc0
push 0
push 0
call esi
pop esi
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002366
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10002456
mov eax, 0x94
call fcn.100040e0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100024cb
mov ecx, dword [esi + 0x10]
mov dword [0x1000a954], ecx
mov eax, dword [esi + 4]
mov dword [0x1000a960], eax
mov edx, dword [esi + 8]
mov dword [0x1000a964], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000a958], esi
je 0x100023d1
or esi, 0x8000
mov dword [0x1000a958], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000a95c], eax
call fcn.10004003
test eax, eax
pop ecx
je 0x100024cb
call fcn.1000344b
test eax, eax
jne 0x100023fe
call fcn.10004054
jmp 0x100024cb
call fcn.10003f61
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000b174], eax
call fcn.10003e3f
mov dword [0x1000a92c], eax
call fcn.10003920
test eax, eax
jl 0x1000244f
call fcn.10003d9d
test eax, eax
jl 0x1000244a
call fcn.10003b6a
test eax, eax
jl 0x1000244a
push 0
call fcn.10003718
test eax, eax
pop ecx
jne 0x1000244a
inc dword [0x1000a928]
jmp 0x100024dc
call fcn.10003b1e
call fcn.10003234
jmp 0x100023f4
test eax, eax
jne 0x10002486
cmp dword [0x1000a928], eax
jle 0x100024cb
dec dword [0x1000a928]
cmp dword [0x1000a990], eax
jne 0x10002475
call fcn.10003856
call fcn.10003b1e
call fcn.10003234
call fcn.10004054
jmp 0x100024dc
cmp eax, 2
jne 0x100024cf
push 0x8c
push 1
call fcn.10003865
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100024cb
push esi
push dword [0x1000a068]
call dword [0x1000a948]
test eax, eax
push esi
je 0x100024c5
call fcn.10003251
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100024dc
call fcn.100025fe
pop ecx
xor eax, eax
jmp 0x100024df
cmp eax, 3
jne 0x100024dc
push 0
call fcn.1000341c
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10003782
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10008640
call fcn.1000282c
push 8
call fcn.1000459f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1000a994], esi
jne 0x100037b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000a990], esi
mov al, byte [ebp + 0x10]
mov byte [0x1000a98c], al
cmp dword [ebp + 0xc], edi
jne 0x10003800
cmp dword [0x1000b168], edi
je 0x100037f0
mov eax, dword [0x1000b164]
sub eax, 4
mov dword [0x1000b164], eax
cmp eax, dword [0x1000b168]
jb 0x100037f0
mov eax, dword [eax]
cmp eax, edi
je 0x100037d1
call eax
jmp 0x100037d1
push 0x1000a024
mov eax, 0x1000a020
call fcn.10003700
pop ecx
push 0x1000a030
mov eax, 0x1000a028
call fcn.10003700
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10003831
cmp dword [ebp + 0x10], edi
jne 0x1000383f
mov dword [0x1000a994], esi
push dword [ebp + 8]
call fcn.100036be
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000383e
push 8
call fcn.100044ea
pop ecx
ret
call fcn.10002867
ret

Function at 0x1000429c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1000a040]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1000a128]
je 0x100042d1
inc eax
cmp eax, 0x13
jb 0x100042c2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000a128]
jne 0x100043f7
mov eax, dword [0x1000a934]
cmp eax, 1
je 0x100043cf
cmp eax, edx
jne 0x10004301
cmp dword [0x1000a938], 1
je 0x100043cf
cmp ecx, 0xfc
je 0x100043f7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10004337
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100052b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100054e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000436b
mov eax, edi
push eax
call fcn.100054e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000839c
push edi
call fcn.100053b0
add esp, 0x10
push edi
call fcn.100054e0
push dword [esi + 0x1000a12c]
mov ebx, eax
call fcn.100054e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100040e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100052b0
push edi
push ebx
call fcn.100052c0
push 0x10008398
push ebx
call fcn.100052c0
push dword [esi + 0x1000a12c]
push ebx
call fcn.100052c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100051ac
add esp, 0x2c
jmp 0x100043f7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000a12c]
push dword [esi]
call fcn.100054e0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10001e01
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret