joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d179
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0045bd83
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42d1b8
sub eax, 1
je 0x42d1b3
sub eax, 1
je 0x42d1af
xor eax, eax
leave
ret
push 3
jmp 0x42d1ba
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42ecd3
Capabilities:
Parse pe header

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

Function at 0x46b1a3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48e9dc
push 0x48e9d4
push str.FlsAlloc
push 0x1e
call fcn.0046ae73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46b1d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x489218]
call esi
jmp 0x46b1dd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46b221
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48e9ec
push 0x48e9e4
push str.FlsGetValue
push 0x20
call fcn.0046ae73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46b258
push dword [ebp + 8]
mov ecx, esi
call dword [0x489218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46f6d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046f2bc

Function at 0x46fc03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042ef80
mov eax, dword [0x49c100]
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.0046da71
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46fc45
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46fda1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00483f60
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 + 0x4ea458]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00471196
mov ecx, dword [esi*4 + 0x4ea458]
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 0x46fd9a
cmp eax, dword [edi + ecx + 0x24]
jne 0x46fd9a
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 0x46fd9a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00471196
add esp, 0x14
test edx, edx
jl 0x46fd9a
jg 0x46fd10
test eax, eax
jb 0x46fd9a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46fd9a
jl 0x46fd2a
cmp dword [ebp - 0x1008], eax
ja 0x46fd9a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46fd48
test ebx, ebx
je 0x46fd81
cmp ecx, edi
jae 0x46fd81
mov al, byte [ecx]
cmp al, 0xd
jne 0x46fd62
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46fd6e
cmp byte [ecx + 1], 0xa
jne 0x46fd6e
inc ecx
jmp 0x46fd6e
movzx eax, al
movsx eax, byte [eax + 0x49c3c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46fd48
cmp edx, ebx
jne 0x46fd48
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46fd9f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042da10
leave
ret
Function at 0x47031f
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 + 0x4ea458]
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 0x47035f
cmp byte [ebx], 0xa
jne 0x47035f
or byte [eax + edi + 0x28], 4
jmp 0x470364
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x470462
mov al, byte [edx]
cmp al, 0x1a
je 0x470444
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x470393
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4703b8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4703c2
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 0x470375
jmp 0x470462
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 0x47043f
cmp dword [ebp - 0xc], 0
je 0x47043f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ea458]
test byte [eax + edi + 0x28], 0x48
je 0x470419
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x470404
mov byte [esi], dl
jmp 0x470415
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ea458]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x470462
cmp byte [ebp - 1], 0xa
jne 0x470428
cmp esi, ebx
jne 0x470428
mov byte [esi], 0xa
jmp 0x470461
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004711b4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x470462
mov byte [esi], 0xd
jmp 0x470461
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ea458]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47045e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470462
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47046b
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 + 0x4ea458]
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 0x4704ae
cmp word [esi], dx
jne 0x4704ae
or byte [edi + eax + 0x28], 4
jmp 0x4704b3
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 0x470606
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 0x4705e6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4704f5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47052b
cmp eax, edx
jae 0x470537
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 0x4704cd
jmp 0x470606
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 0x4705e2
cmp dword [ebp - 0x14], 0
je 0x4705e2
mov eax, dword [ebx*4 + 0x4ea458]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4705ba
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x470583
mov word [esi], cx
jmp 0x4705b6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ea458]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ea458]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ea458]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x470606
pop ebx
cmp word [ebp - 4], bx
jne 0x4705cb
cmp esi, dword [ebp + 0xc]
jne 0x4705cb
mov word [esi], bx
jmp 0x470603
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004711b4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x470606
push 0xd
jmp 0x4705ff
mov ecx, dword [ebx*4 + 0x4ea458]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4705fd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470606
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 0x474980
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49c100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4749cb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00474d5a
test al, al
jne 0x4749c5
sub edx, 2
cmp edx, edi
jne 0x4749ab
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4749ed
lea eax, [edi + 2]
cmp edx, eax
je 0x4749ed
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00474647
add esp, 0x10
jmp 0x474ae7
push esi
lea ecx, [ebp - 0x255]
call fcn.00474d5a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x474a30
push dword [ebp - 0x25c]
jmp 0x4749dd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x474a6d
cmp word [ebp - 0x226], 0
je 0x474a8e
cmp word [ebp - 0x226], ax
jne 0x474a6d
cmp word [ebp - 0x224], 0
je 0x474a8e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00474647
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x474ada
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x474a47
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x474ac2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x474ae7
push 0x474166
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00480750
add esp, 0x10
jmp 0x474ab7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042da10
leave
ret
Function at 0x475ed4
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 0x475f71
push ebx
push esi
call fcn.00475e90
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.004732c6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x475f1e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x475f70
push edi
push eax
call fcn.0046c99a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x475f3e
call fcn.0046a824
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x475f6f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004732c6
add esp, 0x20
test eax, eax
jne 0x475f5d
push edi
call fcn.0046a824
jmp 0x475f65
push ebx
call fcn.0046a824
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 0x475f74
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x475f85
pop esi
ret
push ebx
push edi
push esi
call fcn.00475e90
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046c99a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x475fad
push ebx
push esi
push edi
call fcn.0042f7c0
add esp, 0xc
push 0
call fcn.0046a824
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x47688e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476220

Function at 0x476d15
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476be9

Function at 0x483d20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x483d4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x483d4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002f2dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x414
mov eax, 0x100a0e05
call fcn.10002f71
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x410]
xor ebx, ebx
mov dword [ebp - 0x420], ecx
xor ecx, ecx
mov dword [ebp - 0x41c], 0x200
mov byte [ebp - 0x418], bl
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], ebx
mov word [ebp - 0x40c], cx
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.1002daaa
lea eax, [ebp - 0x420]
push eax
call fcn.10027c7b
cmp eax, 0x104
jbe 0x1002f366
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov word [eax + 0x208], cx
mov eax, dword [ebp - 0x420]
mov dword [eax - 4], 0x208
mov byte [ebp - 0x418], bl
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x420]
push eax
mov ecx, eax
setne bl
call fcn.100073a8
mov al, bl
call fcn.10003491
ret 4

Function at 0x1002fdc0
Capabilities:
Get file attributes

Disassembly:
push 0x414
mov eax, 0x100a0e05
call fcn.10002f71
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x410]
mov edi, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x420], ecx
xor ecx, ecx
mov dword [ebp - 0x41c], 0x200
mov byte [ebp - 0x418], dl
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov word [ebp - 0x40c], cx
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], edx
push ecx
push eax
call fcn.1002daaa
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
test edi, edi
je 0x1002fe34
mov ecx, esi
shr ecx, 4
and cl, 1
mov byte [edi], cl
lea eax, [ebp - 0x420]
push eax
mov ecx, eax
call fcn.100073a8
cmp esi, 0xffffffff
setne al
call fcn.10003491
ret 8

Function at 0x100317ca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [0x2ff845c6]
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
xor dh, al
test dword [ebp + 0x36fffffc], esp
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.100308ba
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1003086f
add esp, 0xc
invalid
invalid
Function at 0x1003c1c2
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x100a35f9
call fcn.10002f71
mov esi, ecx
or ebx, 0xffffffff
xor edi, edi
cmp dword [esi], ebx
je 0x1003c1fe
push 0x80004005
push 0x2e68367a
lea eax, [ebp - 0x20]
push eax
call fcn.10041233
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.1003caac
lea ecx, [ebp - 0x20]
call fcn.1002b193
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x10041738
push edi
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
cmove eax, ebx
mov dword [esi], eax
call fcn.10003491
ret 0xc

Function at 0x1003c235
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100a342b
call fcn.10001360
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call fcn.10002483
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1003c274
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.1002a5e2
jmp 0x1003c276
mov eax, ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.1002b709
push esi
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 2
jne 0x1003c2a3
cmp dword [esi + 0x1c], ebx
jne 0x1003c2a3
mov ecx, dword [esi + 0x24]
call fcn.1001b5a6
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
push eax
push ebx
push 0x1003be29
mov dword [ebp - 0x10], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1003c2d2
push 0x2e6b6832
call fcn.1003cf47
call fcn.100013a0
ret 0x10

Function at 0x1003c2da
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100a3460
call fcn.10001360
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call fcn.10002483
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1003c31c
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.1002a940
jmp 0x1003c31e
mov eax, ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.1002b709
push esi
mov dword [ebp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 2
jne 0x1003c34b
cmp dword [esi + 0x1c], ebx
jne 0x1003c34b
mov ecx, dword [esi + 0x24]
call fcn.1001b5a6
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
push eax
push ebx
push 0x1003ca7c
mov dword [ebp - 0x10], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1003c37a
push 0x2e6b6831
call fcn.1003cf47
call fcn.100013a0
ret 0x14
Function at 0x1003fae5
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x20
mov eax, 0x100a3b3e
call fcn.10002f71
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x1003fc20
test ebx, ebx
je 0x1003fc20
xor esi, esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push 0x8003
call 0x100322de
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1003fc09
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fb39
push esi
sub ecx, edx
push ecx
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1003fc09
push esi
xor edi, edi
inc edi
push edi
push 0x100c5478
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1003fc09
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fb76
push esi
sub ecx, edx
push ecx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1003fc09
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1003fc09
mov ebx, dword [ebp - 0x1c]
push esi
push 0x3c9
push ebx
push dword [ebp - 0x20]
call fcn.1000a297
movzx ecx, word [eax*2 + 0x100c2a10]
test cx, cx
je 0x1003fc09
mov edx, dword [ebp - 0x20]
movzx eax, cx
imul eax, eax, 0xc
cmp dword [eax + 0x100c31a8], edx
jne 0x1003fbe6
cmp dword [eax + 0x100c31ac], ebx
je 0x1003fbf4
movzx ecx, word [eax + 0x100c31b2]
test cx, cx
je 0x1003fc0d
jmp 0x1003fbd0
movzx eax, cx
mov ecx, dword [ebp - 0x2c]
imul eax, eax, 0xc
mov ax, word [eax + 0x100c31b0]
mov word [ecx], ax
jmp 0x1003fc0b
mov edi, esi
mov esi, edi
cmp dword [ebp - 0x24], 0
je 0x1003fc1c
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
jmp 0x1003fc22
xor eax, eax
call fcn.10003491
ret 0xc
Function at 0x100edaa2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b9ef8]
jne 0x100edaac
repz ret
jmp fcn.100f708b

Function at 0x100f87ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100eb3e6
and dword [ebp - 4], 0
cmp dword [0x101bb9e4], 0
mov ebx, eax
jne 0x100f88b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100f8961
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100f8961
push eax
call fcn.100eb374
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101bb9e4], eax
call esi
push eax
call fcn.100eb374
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101bb9e8], eax
call esi
push eax
call fcn.100eb374
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101bb9ec], eax
call esi
push eax
call fcn.100eb374
pop ecx
mov dword [0x101bb9f4], eax
test eax, eax
je 0x100f88b0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100eb374
pop ecx
mov dword [0x101bb9f0], eax
mov eax, dword [0x101bb9f0]
cmp eax, ebx
je 0x100f8908
cmp dword [0x101bb9f4], ebx
je 0x100f8908
push eax
call fcn.100eb3ef
push dword [0x101bb9f4]
mov esi, eax
call fcn.100eb3ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100f8908
test edi, edi
je 0x100f8908
call esi
test eax, eax
je 0x100f88ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100f88ff
test byte [ebp - 0xc], 1
jne 0x100f8908
or dword [ebp + 0x10], 0x200000
jmp 0x100f8941
mov eax, dword [0x101bb9e8]
cmp eax, ebx
je 0x100f8941
push eax
call fcn.100eb3ef
pop ecx
test eax, eax
je 0x100f8941
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100f8941
mov eax, dword [0x101bb9ec]
cmp eax, ebx
je 0x100f8941
push eax
call fcn.100eb3ef
pop ecx
test eax, eax
je 0x100f8941
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101bb9e4]
call fcn.100eb3ef
pop ecx
test eax, eax
je 0x100f8961
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100f8963
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret