joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456348
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46dc2c]
cmp dword [eax + 0x30], 0
je 0x4563f2
cmp dword [ebx + 0x94], 0
jne 0x4563ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4562d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4563ec
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4563b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4563ec
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00416724
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4563c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456ed0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456f05
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004049e0
jmp 0x456f12
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404944
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457f48
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457f89
mov eax, esi
call fcn.0043e524
test al, al
je 0x457f89
mov eax, dword [ebx + 0x84]
call fcn.0043e220
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457f89
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e220
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45a5ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d90
xor eax, eax
push ebp
push 0x45a672
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
lea eax, [ebp - 0x4c]
mov edx, 0x44
call fcn.004077c8
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404da0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x45a658
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x45a65c
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a679
lea eax, [ebp - 4]
call fcn.004048f0
ret
Function at 0x464bb0
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.004048f0
test ebx, ebx
je 0x464c51
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x464bec
mov eax, ebx
call fcn.00404da0
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x464c5d
mov eax, esi
mov edx, ebx
call fcn.00404944
jmp 0x464c5d
mov eax, ebx
call fcn.00404da0
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x464c5d
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x464c6c
call fcn.004099bc
jmp 0x464c5d
mov eax, esi
mov edx, 0x464c80
call fcn.00404944
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x466fd4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004090bc
test al, al
je 0x467114
lea eax, [ebp - 0x6c]
call fcn.00466130
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404da0
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4670fd
xor eax, eax
push ebp
push 0x4670f6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4670df
xor eax, eax
push ebp
push 0x4670d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4670c1
xor eax, eax
push ebp
push 0x4670ba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x6c]
call fcn.00466164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4670c1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4670df
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4670fd
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0x6c]
call fcn.00466248
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x7c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46769c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4676d2
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x1c]
mov ecx, 0x10
call fcn.00404b58
jmp 0x4676da
mov eax, dword [ebp - 8]
call fcn.004048f0
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x471ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
jmp 0x471eba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x471ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471eb0
mov eax, 1
add ebx, ebx
jne 0x471ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x471ee4
jne 0x471f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471f03
dec eax
add ebx, ebx
jne 0x471ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x471ec8
add ebx, ebx
jne 0x471eff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x471f55
xor ecx, ecx
sub eax, 3
jb 0x471f1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x471f8a
sar eax, 1
mov ebp, eax
jmp 0x471f26
add ebx, ebx
jne 0x471f26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471ef4
inc ecx
add ebx, ebx
jne 0x471f34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471ef4
add ebx, ebx
jne 0x471f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x471f36
jne 0x471f52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471f36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x471f74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x471f66
jmp 0x471eb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x471f74
add edi, ecx
jmp 0x471eb6
pop esi
mov edi, esi
mov ecx, 0xe02
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x471f92
cmp byte [edi], 0x12
jne 0x471f92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x471f97
lea edi, [esi + 0x6f000]
mov eax, dword [edi]
or eax, eax
je 0x47200f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7f114]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7f288]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x471fc4
mov ecx, edi
jns 0x471ff3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7f290]
or eax, eax
je 0x472009
mov dword [ebx], eax
add ebx, 4
jmp 0x471fe1
call dword [esi + 0x7f28c]
mov ebp, dword [esi + 0x7f294]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x472043
sub esp, 0xffffff80
jmp 0x413816
Function at 0x10346000
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov al, byte [0x10331158]
test eax, eax
je 0x1034601d
mov cl, byte [0x10331608]
or cl, 1
mov byte [0x10331608], cl
cmp dword [0x10331130], 0
je 0x10346035
mov dl, byte [0x10331608]
or dl, 8
mov byte [0x10331608], dl
xor eax, eax
mov al, byte [0x10331608]
test eax, eax
je 0x1034609f
cmp dword [0x1033113c], 0
je 0x10346059
push 0x10333dfc
push 0x10333e00
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x10340454]
push ecx
mov dl, byte [0x10331608]
push edx
push 0x103313b0
push 0x10331158
mov eax, dword [0x10331140]
push eax
mov ecx, dword [0x1033113c]
push ecx
mov edx, dword [0x10331138]
push edx
mov eax, dword [0x10331134]
push eax
mov ecx, dword [0x10331130]
push ecx
push 0x10331128
call fcn.10349498
add esp, 0x28
pop ebp
ret
Function at 0x1034775f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [ebp - 8], 0
call fcn.10348a78
mov word [ebp - 4], ax
cmp dword [0x10340570], 0
je 0x10347789
mov dword [0x10340b44], 0
jmp 0x10347793
mov dword [0x10340b44], 1
cmp dword [0x10340b44], 0
je 0x10347993
cmp dword [0x10333df8], 1
je 0x103477ba
mov eax, dword [0x10333df4]
cmp eax, dword [0x10333df0]
jne 0x1034792c
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
add edx, 1
mov dword [0x10333df0], edx
mov dword [0x10333df4], 1
mov edx, dword [0x10342818]
and edx, 0x1f3
mov dword [0x10340550], edx
mov eax, dword [0x10340550]
mov ecx, dword [eax*4 + 0x10330010]
xor ecx, 0xfd0699d6
mov dword [0x10340540], ecx
mov dword [0x10340544], 0
push 4
push 0
push 0x10340544
push 0x10340540
movzx dx, byte [0x1033000d]
push edx
push 0x103406ac
call fcn.1034a480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x10347876
mov ecx, dword [0x10340544]
xor ecx, 0x7b2309a7
mov edx, dword [0x10340550]
xor ecx, dword [edx*4 + 0x103307e0]
test ecx, ecx
je 0x10347920
xor eax, eax
mov al, byte [0x10332f6a]
cmp eax, 0x31
jne 0x10347888
mov word [ebp - 4], 3
xor ecx, ecx
mov cl, byte [0x10332f6a]
cmp ecx, 0x32
je 0x103478a2
xor edx, edx
mov dl, byte [0x10332f6a]
cmp edx, 0x33
jne 0x103478a8
mov word [ebp - 4], 0
mov dword [0x10333df8], 1
cmp dword [0x10340594], 0
jne 0x1034791e
xor eax, eax
mov al, byte [0x10332f6a]
cmp eax, 0x32
je 0x103478d4
xor ecx, ecx
mov cl, byte [0x10332f6a]
cmp ecx, 0x33
jne 0x1034791e
mov edx, dword [0x1034069c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [0x1034054c], 0xc
push 0x2010
call fcn.103460a1
push eax
call fcn.103488db
add esp, 8
mov dword [0x1034054c], 0
mov eax, dword [0x1034069c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [0x10340594], 1
jmp 0x1034792a
mov dword [0x10333df8], 0
jmp 0x10347991
mov ecx, dword [0x10333df4]
add ecx, 1
mov dword [0x10333df4], ecx
mov edx, dword [0x10342818]
mov dword [0x10340540], edx
mov dword [0x10340544], 0
push 4
push 0
push 0x10340544
push 0x10340540
push 0
push 0x103406ac
call fcn.1034a480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x1034798b
mov ecx, dword [0x10340544]
xor ecx, dword [0x10342818]
test ecx, ecx
je 0x10347991
mov word [ebp - 4], 3
jmp 0x103479f7
mov edx, dword [0x10333df4]
add edx, 1
mov dword [0x10333df4], edx
mov eax, dword [0x10342818]
mov dword [0x10340540], eax
mov dword [0x10340544], 0
push 4
push 0
push 0x10340544
push 0x10340540
push 0
push 0x103406ac
call fcn.1034a480
mov word [ebp - 4], ax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
test ecx, ecx
jne 0x103479f1
mov edx, dword [0x10340544]
xor edx, dword [0x10342818]
test edx, edx
je 0x103479f7
mov word [ebp - 4], 3
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10347ec1
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10342800
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x10347f3e
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x10342820], 0
je 0x10347f2d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10342820]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10347f2d
cmp dword [ebp - 4], 0x103
je 0x10347f2d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x10342820]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x10342820], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10348116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x10347ed9
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x10347f7a
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x10342820], 0
je 0x10347f69
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x10342820]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 8]
push edx
call fcn.10348116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x10347f45
mov esp, ebp
pop ebp
ret

Function at 0x10347f7e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x64
jge 0x10347fbe
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x10342820], 0
je 0x10347fad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x10342820]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call fcn.10348116
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10347f89
push 0x10342800
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x10349cf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x10349d65
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x10349d3c
mov word [0x10340b50], cx
call fcn.1034c1a0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x10349d29
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x10349d29
mov word [0x10340b50], ax
call fcn.10349a40
call fcn.10349bd0
call fcn.1034c1a0
add esp, 0x94
ret
Function at 0x1034aa40
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.10356160
test eax, eax
jne 0x1034aa70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x1034aa85
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x1034aac9
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x1034aaa9
cmp eax, 0x102
jne 0x1034aab6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x1034aac0
jmp 0x1034aa8f
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.1034ab40
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1034aae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.10356160
test eax, eax
jne 0x1034aaf8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x1034ab01
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x1034ab14
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1034ab2b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x1034e380
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
mov bx, word [esp + 0x220]
neg bx
push ebp
mov ebp, dword [esp + 0x21c]
sbb ebx, ebx
push esi
mov al, byte [ebp]
and ebx, 0xfffffffe
add ebx, 4
push edi
test al, al
je 0x1034e3ce
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x1033f504
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x1034e3f6
jbe 0x1034e3f6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1034e3fe
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x1034e411
mov ebx, 2
mov edx, dword [esp + 0x228]
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0xc8]
push eax
push ecx
push edx
push ebx
call fcn.10352c20
test ax, ax
jne 0x1034e586
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x1034e59b
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x1034e560
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push 0x1033f4e4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
call ebx
mov ecx, dword [esp + 0x224]
push esi
push ecx
call fcn.1034d850
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x1033f4e4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x74]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x78]
push 0x1033f4e4
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x40]
push 0x1033e6d0
push edx
call esi
add esp, 0x28
test eax, eax
je 0x1034e50c
lea eax, [esp + 0x20]
push 0x1033e704
push eax
call esi
add esp, 8
test eax, eax
jne 0x1034e51b
push 0x1033e6c0
push ebp
call esi
add esp, 8
test eax, eax
je 0x1034e55c
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x220]
push ecx
mov ecx, dword [esp + 0x220]
push edx
push ebp
push eax
push ecx
call fcn.1034dcd0
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x1034e582
lea edx, [esp + 0x60]
push 0x1033f4e4
push edx
call ebx
add esp, 8
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
and ecx, 0xffff
add esi, 0x22
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jl 0x1034e479
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x1034e59f
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x1034e5b0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x1034e641
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.10357560
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1034e637
mov eax, dword [0x1033f4dc]
mov cx, word [0x1033f4e0]
mov dl, byte [0x1033f4e2]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x1034e688
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x1034e66b
mov dx, word [0x1033f4e0]
mov ecx, dword [0x1033f4dc]
mov al, byte [0x1033f4e2]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.10355fd0
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2dc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.10357560
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x1034e720
mov edx, dword [0x1033f558]
mov eax, dword [0x1033f55c]
mov ecx, dword [0x1033f560]
mov dword [esp + 0xd0], edx
mov dx, word [0x1033f564]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x1034e74b
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.10355ef0
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x10340ba8], eax
add esp, 0x4c8
ret