joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002813e
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 + 0x1008e6e0]
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 0x1002817e
cmp byte [ebx], 0xa
jne 0x1002817e
or byte [edi + eax + 0x28], 4
jmp 0x10028183
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 0x10028282
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10028265
inc eax
cmp dl, 0xd
je 0x100281af
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100281d5
cmp eax, ecx
jae 0x100281e3
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 0x10028197
jmp 0x10028282
push 0
lea eax, [ebp - 0x10]
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 0x10028260
cmp dword [ebp - 0x10], 0
je 0x10028260
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1008e6e0]
test byte [eax + edi + 0x28], 0x48
je 0x1002823a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10028225
mov byte [esi], dl
jmp 0x10028236
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008e6e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10028282
cmp byte [ebp - 1], 0xa
jne 0x10028249
cmp esi, ebx
jne 0x10028249
mov byte [esi], 0xa
jmp 0x10028281
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10028cc4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10028282
mov byte [esi], 0xd
jmp 0x10028281
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1008e6e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002827f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10028282
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002828b
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 + 0x1008e6e0]
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 0x100282d1
cmp word [ebx], dx
jne 0x100282d1
or byte [eax + edi + 0x28], 4
jmp 0x100282d6
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 0x10028439
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 0x10028419
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10028317
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002834d
cmp eax, edx
jae 0x1002835b
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 0x100282f2
jmp 0x10028439
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028414
cmp dword [ebp - 0x18], 0
je 0x10028414
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1008e6e0]
test byte [eax + edi + 0x28], 0x48
je 0x100283ea
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 0x100283ae
mov word [esi], cx
jmp 0x100283e5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1008e6e0]
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 + 0x1008e6e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1008e6e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10028439
pop eax
cmp word [ebp - 4], ax
jne 0x100283fa
cmp esi, ebx
jne 0x100283fa
mov word [esi], ax
jmp 0x10028436
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10028cc4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10028439
push 0xd
pop eax
jmp 0x100283f5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1008e6e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10028433
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10028439
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 0x1002c596
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 0x1002c633
push ebx
push esi
call fcn.1002c55f
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.1002b3bf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002c5e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c632
push edi
push eax
call fcn.10025dc7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002c600
call fcn.10025b49
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c631
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002b3bf
add esp, 0x20
test eax, eax
jne 0x1002c61f
push edi
call fcn.10025b49
jmp 0x1002c627
push ebx
call fcn.10025b49
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 0x1002ece4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10022df1
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002ed53
cmp esi, dword [ebp - 4]
je 0x1002ed4e
cmp dword [ebp + 0xc], 0
je 0x1002ed4e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002ed2b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002e836
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002ed55
xor eax, eax
inc eax
jmp 0x1002ed55
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002edba
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10048434]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10022df1
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10022df1
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1002ee31
cmp word [ecx], dx
je 0x1002ee31
mov eax, dword [0x1003ac14]
push edi
dec eax
push eax
push 0x1003ab00
call fcn.1002ed59
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002eea4
cmp word [eax], dx
je 0x1002eea4
mov eax, dword [edi]
test eax, eax
je 0x1002ee55
cmp word [eax], dx
je 0x1002ee55
lea eax, [ebp - 0x10]
push eax
call fcn.1002e73c
jmp 0x1002ee5e
lea eax, [ebp - 0x10]
push eax
call fcn.1002e7d7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1002eece
mov eax, dword [0x1003aafc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1003a7f0
call fcn.1002ed59
add esp, 0xc
test al, al
je 0x1002eece
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002ee99
cmp word [eax], di
je 0x1002ee99
lea eax, [ebp - 0x10]
push eax
call fcn.1002e73c
pop ecx
jmp 0x1002eed0
lea eax, [ebp - 0x10]
push eax
call fcn.1002e7d7
jmp 0x1002ee96
mov eax, dword [edi]
test eax, eax
je 0x1002eebb
cmp word [eax], dx
je 0x1002eebb
lea eax, [ebp - 0x10]
push eax
call fcn.1002e6f1
pop ecx
jmp 0x1002eece
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002ef99
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002ebde
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002ef99
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002ef99
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002ef99
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002ef26
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100275b7
test ebx, ebx
je 0x1002ef94
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100275b7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002ef99
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002ef99
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001f44e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002ef9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001401b
leave
ret
Function at 0x10032ac1
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.10032a3d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10032c30
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10032c30
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10032be5
jg 0x10032b1d
test eax, eax
je 0x10032bdb
push 1
push 0x1000
call fcn.10024993
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10032b40
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10032bd2
push 0x8000
push ebx
call fcn.1003296e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10032b69
jg 0x10032b64
cmp ecx, 0x1000
jb 0x10032b69
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1002592d
add esp, 0x10
cmp eax, 0xffffffff
je 0x10032bae
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 0x10032b64
jl 0x10032b95
test ecx, ecx
jne 0x10032b56
push dword [ebp - 0xc]
push ebx
call fcn.1003296e
push esi
call fcn.10025b49
add esp, 0xc
xor ebx, ebx
jmp 0x10032c3e
cmp byte [edi + 0x24], 0
je 0x10032bc5
cmp dword [edi + 0x20], 5
jne 0x10032bc5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10032bd0
mov ebx, dword [edi + 0x18]
jmp 0x10032bd2
xor ebx, ebx
push esi
call fcn.10025b49
pop ecx
jmp 0x10032c3e
test ecx, ecx
jg 0x10032ba7
jl 0x10032be5
test eax, eax
jae 0x10032ba7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10028cc4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10032c05
cmp byte [edi + 0x1c], 0
je 0x10032ba7
jmp 0x10032c36
push ebx
call fcn.1002cb83
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10032ba7
call dword [sym.imp.KERNEL32.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 0x10032c3e
cmp byte [edi + 0x1c], 0
je 0x10032c3b
mov ebx, dword [edi + 0x18]
jmp 0x10032c3e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10028cc4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x341f1427
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x341f14f4
push 0x341f14d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x341f145c
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x34234fcc
push ebx
call edi
mov dword [0x34234fcc], esi
test esi, esi
je 0x342d7627
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x343e47f0], 0x44bf19b1
pop ebx
leave
ret
mov dword [0x34234fcc], 0xbb40e64e
jmp 0x341f14ba

Function at 0x341f1bce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x34234fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x341f1cb0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x20a
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x341f1c9d
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x341f1d04
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x341f1c54
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x341f1c9d
mov eax, dword [ebp - 0x218]
cmp eax, 2
jb 0x341f1c9d
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x212], cx
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x341f1d28
call fcn.341f1d6e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x342d75f8
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.341f1dd1
leave
ret
push 0x34234cd8
call fcn.34399198
mov ebx, eax
jmp 0x341f1c9d
Function at 0x341f1dd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x34234fcc]
jne 0x34399e43
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x343f92e8], eax
mov dword [0x343f92e4], ecx
mov dword [0x343f92e0], edx
mov dword [0x343f92dc], ebx
mov dword [0x343f92d8], esi
mov dword [0x343f92d4], edi
mov word [0x343f9300], ss
mov word [0x343f92f4], cs
mov word [0x343f92d0], ds
mov word [0x343f92cc], es
mov word [0x343f92c8], fs
mov word [0x343f92c4], gs
pushfd
pop dword [0x343f92f8]
mov eax, dword [ebp]
mov dword [0x343f92ec], eax
mov eax, dword [ebp + 4]
mov dword [0x343f92f0], eax
lea eax, [ebp + 8]
mov dword [0x343f92fc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x343f9238], 0x10001
mov eax, dword [0x343f92f0]
mov dword [0x343f91ec], eax
mov dword [0x343f91e0], 0xc0000409
mov dword [0x343f91e4], 1
mov eax, dword [0x34234fcc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x343e47f0]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x343f9230], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x34399f44
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x343f9230], 0
jne 0x34399f2f
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x341f3372
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x342d75dd
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x342d75dd
mov esi, dword [ebp]
test esi, esi
je 0x342d75dd
push ebx
mov ebx, dword [esp + 0x20]
cmp ebx, 1
jne 0x341f33ab
cmp esi, 2
jb 0x342d7511
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push edi
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x341f3400
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jne 0x342d751b
cmp ebx, 1
jne 0x341f3400
mov eax, dword [ebp]
cmp eax, esi
jae 0x342d753c
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov ecx, dword [esp + 0x28]
cmp ecx, 2
je 0x342d754c
mov eax, dword [esp + 0x24]
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
lea eax, [ebx + 0x56]
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
cmp ebx, 1
jne 0x342d7529
cmp ecx, 2
je 0x341f33e0
pop ebx
pop edi
mov dword [esp + 0x1c], 0x65d
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
ret 0x18
mov edx, esi
shr edx, 1
xor eax, eax
mov word [edi + edx*2 - 2], ax
jmp 0x341f33f7
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x342d7566
lea eax, [ebx + 0xe]
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
shr esi, 1
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x342d75be
lea ecx, [eax + eax]
mov dword [ebp], ecx
cmp esi, eax
jae 0x342d75a1
xor edx, edx
push ebx
mov word [edi], dx
mov dword [esp + 0x28], 0xea
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
push esi
push edi
push ebx
call fcn.341f73a4
push ebx
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
xor eax, eax
mov word [edi], ax
push ebx
mov dword [ebp], eax
mov dword [esp + 0x28], 0x57
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x341f3400
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18
Function at 0x341f423e
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x343a6f06
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x34234fcc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, 0xff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 8
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
lea ecx, [esi + 0x58]
mov dword [ecx + 8], edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x24], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 8], edi
lea eax, [esi + 0x64]
mov dword [ecx], eax
lea eax, [esp + 0x10]
push eax
mov dword [ecx + 4], 4
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
add eax, eax
add eax, eax
add eax, eax
push eax
mov byte [esp + 0x38], 2
call fcn.341f2518
test dword [esp + 0x10], 0xfffffffe
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov byte [esp + 0x30], 1
jne 0x342b4cad
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0x10]
call fcn.341ffba8
jmp 0x341f4301

Function at 0x341f46ac
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x34234fcc]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push esi
mov esi, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x228]
lea eax, [esp + 0xc]
push eax
push 0x104
mov ebp, ecx
call sub.KERNEL32.dll_GetTempPathW
test eax, eax
je 0x342b6384
push ebx
push 0x20a
call fcn.341f21e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x342b6391
mov dword [esi], ebx
test byte [edi], 8
jne 0x341f472e
mov ecx, dword [esp + 0x228]
push 0x105
push ebx
push ecx
push 0x341f474c
lea edx, [esp + 0x20]
push edx
call fcn.341f475a
test eax, eax
je 0x342b63a4
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.341f1dd1
add esp, 0x210
ret 0xc
push edi
mov ecx, ebp
call fcn.341f8c56
jmp 0x341f472f
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.341f8dac
jmp 0x341f4702
mov eax, dword [esi]
test eax, eax
je 0x342b63b3
push eax
call fcn.341f5892
add esp, 4
push edi
mov ecx, ebp
mov dword [esi], 0
call fcn.341f8c56
jmp 0x341f472e
Function at 0x341f475a
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x34234fcc]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
mov ecx, dword [esp + 0x214]
push ebx
mov ebx, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x224]
cmp ebx, 0x104
jb 0x342d74bb
mov edx, dword [esp + 0x220]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
call fcn.341f1dd1
add esp, 0x20c
ret 0x14
test ebx, ebx
jne 0x342d74c6
xor eax, eax
jmp 0x341f47a9
push edi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x228]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
mov edi, eax
push esi
lea eax, [esp + 0x14]
push eax
call fcn.341f73a4
mov eax, edi
pop edi
jmp 0x341f47a9