joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401443
pop dword [ebp - 0x24]
mov eax, 0xe1fd1dad
add eax, 0x1e42f696
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x4b104d18
add dword [ebp - 0x34], 0x341f833
mov dword [ebp - 0x30], 0x125e813e
add dword [ebp - 0x30], 0x1fd4cb07
mov dword [ebp - 0x2c], 0xdd20c536
sub dword [ebp - 0x2c], 0x90d48108
mov dword [ebp - 0x28], 0x5fcad7aa
sub dword [ebp - 0x28], 0x5fcad7aa
lea eax, [ebp - 0x34]
push eax
mov eax, 0x2b0481e1
add eax, 0xd53bfe97
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1f944c04
sub dword [ebp - 0x34], 0xab21e2ae
mov dword [ebp - 0x30], 0x5a6cfa19
sub dword [ebp - 0x30], 0x190098a4
mov dword [ebp - 0x2c], 0xa4b90f8d
sub dword [ebp - 0x2c], 0x4149a321
mov dword [ebp - 0x28], 0xa40056aa
add dword [ebp - 0x28], 0x5bffa956
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xb4fc3212
add eax, 0x4b444e6a
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x35a79
push 0
call eax
mov ecx, 0x3d1d
xor edi, edi
add edi, eax
mov esi, 0xf1b88f67
sub esi, 0xf1737b67
add esi, dword [ebp - 0x24]
mov ebx, 0xe419742
sub ebx, 0xf4798a74
add dword [ebp - 0x18], 0x15586658
mov edx, dword [esi]
sub dword [ebp - 0xc], esi
xor edx, ebx
xor dword [ebp - 0x14], ecx
mov dword [edi], edx
sub dword [ebp - 8], eax
add edi, 4
add esi, 4
loop 0x401561
add eax, 0xe747
xor ebx, ebx
add ebx, eax
add eax, 0x46ed17c8
sub eax, 0x46ed17c3
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc

Function at 0x414b40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x414b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b58
mov eax, 1
add ebx, ebx
jne 0x414b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b70
jne 0x414b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b70
xor ecx, ecx
sub eax, 3
jb 0x414ba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c12
mov ebp, eax
add ebx, ebx
jne 0x414bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414bdc
inc ecx
add ebx, ebx
jne 0x414bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414bbd
jne 0x414bd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414bbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414bfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414bed
jmp 0x414b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414bfc
add edi, ecx
jmp 0x414b5e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c1a
cmp byte [edi], 0
jne 0x414c1a
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 0x414c1f
lea edi, [esi + 0x12000]
Function at 0x4297d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
jmp 0x4297ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4297f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4297e0
mov eax, 1
add ebx, ebx
jne 0x429803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4297f8
jne 0x429814
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4297f8
xor ecx, ecx
sub eax, 3
jb 0x429828
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42989a
mov ebp, eax
add ebx, ebx
jne 0x429833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x429864
inc ecx
add ebx, ebx
jne 0x429850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429845
jne 0x429861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429845
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x429884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x429875
jmp 0x4297e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x429884
add edi, ecx
jmp 0x4297e6
pop esi
mov edi, esi
mov ecx, 0x41c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4298a2
cmp byte [edi], 0xa
jne 0x4298a2
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 0x4298a7
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429916
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29320]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29378]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4298d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x29380]
or eax, eax
je 0x429910
mov dword [ebx], eax
add ebx, 4
jmp 0x4298f1
call dword [esi + 0x2937c]
mov ebp, dword [esi + 0x29384]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x42994a
sub esp, 0xffffff80
jmp 0x405faf
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232f4], 0
push esi
jne 0x405f0d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ee7
mov dword [ecx*4 + 0x4232f0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232f0]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

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 0x419282
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x419291
pop dword [ebp - 0x4c]
mov eax, 0x419291
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3bc90
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x401d
xor ebx, ebx
add ebx, eax
mov esi, 0x432eee61
sub esi, 0x42eb9a61
add esi, dword [ebp - 0x4c]
mov edi, 0x98ba4578
xor dword [ebp - 0x40], 0x154bd230
mov edx, dword [esi]
add dword [ebp - 0x18], 0x1b302506
add edx, edi
add dword [ebp - 0x2c], 0xe92ae4e
mov dword [ebx], edx
add dword [ebp - 0x24], eax
add ebx, 0x94309beb
sub ebx, 0x94309be7
add esi, 4
loop 0x4192dc
add eax, 0xf347
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb55f81b6
add ecx, 0x4ae07e4a
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10548000
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov al, byte [0x10533158]
test eax, eax
je 0x1054801d
mov cl, byte [0x10533608]
or cl, 1
mov byte [0x10533608], cl
cmp dword [0x10533130], 0
je 0x10548035
mov dl, byte [0x10533608]
or dl, 8
mov byte [0x10533608], dl
xor eax, eax
mov al, byte [0x10533608]
test eax, eax
je 0x1054809f
cmp dword [0x1053313c], 0
je 0x10548059
push 0x10535dfc
push 0x10535e00
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x10542454]
push ecx
mov dl, byte [0x10533608]
push edx
push 0x105333b0
push 0x10533158
mov eax, dword [0x10533140]
push eax
mov ecx, dword [0x1053313c]
push ecx
mov edx, dword [0x10533138]
push edx
mov eax, dword [0x10533134]
push eax
mov ecx, dword [0x10533130]
push ecx
push 0x10533128
call fcn.1054b498
add esp, 0x28
pop ebp
ret
Function at 0x1054975f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [ebp - 8], 0
call fcn.1054aa78
mov word [ebp - 4], ax
cmp dword [0x10542570], 0
je 0x10549789
mov dword [0x10542b44], 0
jmp 0x10549793
mov dword [0x10542b44], 1
cmp dword [0x10542b44], 0
je 0x10549993
cmp dword [0x10535df8], 1
je 0x105497ba
mov eax, dword [0x10535df4]
cmp eax, dword [0x10535df0]
jne 0x1054992c
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 [0x10535df0], edx
mov dword [0x10535df4], 1
mov edx, dword [0x10544818]
and edx, 0x1f3
mov dword [0x10542550], edx
mov eax, dword [0x10542550]
mov ecx, dword [eax*4 + 0x10532010]
xor ecx, 0xfd0699d6
mov dword [0x10542540], ecx
mov dword [0x10542544], 0
push 4
push 0
push 0x10542544
push 0x10542540
movzx dx, byte [0x1053200d]
push edx
push 0x105426ac
call fcn.1054c480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x10549876
mov ecx, dword [0x10542544]
xor ecx, 0x7b2309a7
mov edx, dword [0x10542550]
xor ecx, dword [edx*4 + 0x105327e0]
test ecx, ecx
je 0x10549920
xor eax, eax
mov al, byte [0x10534f6a]
cmp eax, 0x31
jne 0x10549888
mov word [ebp - 4], 3
xor ecx, ecx
mov cl, byte [0x10534f6a]
cmp ecx, 0x32
je 0x105498a2
xor edx, edx
mov dl, byte [0x10534f6a]
cmp edx, 0x33
jne 0x105498a8
mov word [ebp - 4], 0
mov dword [0x10535df8], 1
cmp dword [0x10542594], 0
jne 0x1054991e
xor eax, eax
mov al, byte [0x10534f6a]
cmp eax, 0x32
je 0x105498d4
xor ecx, ecx
mov cl, byte [0x10534f6a]
cmp ecx, 0x33
jne 0x1054991e
mov edx, dword [0x1054269c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [0x1054254c], 0xc
push 0x2010
call fcn.105480a1
push eax
call fcn.1054a8db
add esp, 8
mov dword [0x1054254c], 0
mov eax, dword [0x1054269c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [0x10542594], 1
jmp 0x1054992a
mov dword [0x10535df8], 0
jmp 0x10549991
mov ecx, dword [0x10535df4]
add ecx, 1
mov dword [0x10535df4], ecx
mov edx, dword [0x10544818]
mov dword [0x10542540], edx
mov dword [0x10542544], 0
push 4
push 0
push 0x10542544
push 0x10542540
push 0
push 0x105426ac
call fcn.1054c480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x1054998b
mov ecx, dword [0x10542544]
xor ecx, dword [0x10544818]
test ecx, ecx
je 0x10549991
mov word [ebp - 4], 3
jmp 0x105499f7
mov edx, dword [0x10535df4]
add edx, 1
mov dword [0x10535df4], edx
mov eax, dword [0x10544818]
mov dword [0x10542540], eax
mov dword [0x10542544], 0
push 4
push 0
push 0x10542544
push 0x10542540
push 0
push 0x105426ac
call fcn.1054c480
mov word [ebp - 4], ax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
test ecx, ecx
jne 0x105499f1
mov edx, dword [0x10542544]
xor edx, dword [0x10544818]
test edx, edx
je 0x105499f7
mov word [ebp - 4], 3
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10549ec1
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10544800
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x10549f3e
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x10544820], 0
je 0x10549f2d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10544820]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10549f2d
cmp dword [ebp - 4], 0x103
je 0x10549f2d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x10544820]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x10544820], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.1054a116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x10549ed9
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x10549f7a
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x10544820], 0
je 0x10549f69
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x10544820]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 8]
push edx
call fcn.1054a116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x10549f45
mov esp, ebp
pop ebp
ret

Function at 0x10549f7e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x64
jge 0x10549fbe
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x10544820], 0
je 0x10549fad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x10544820]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call fcn.1054a116
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10549f89
push 0x10544800
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x1054bcf0
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 0x1054bd65
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x1054bd3c
mov word [0x10542b50], cx
call fcn.1054e1a0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x1054bd29
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x1054bd29
mov word [0x10542b50], ax
call fcn.1054ba40
call fcn.1054bbd0
call fcn.1054e1a0
add esp, 0x94
ret
Function at 0x1054ca40
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.10558160
test eax, eax
jne 0x1054ca70
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 0x1054ca85
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 0x1054cac9
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x1054caa9
cmp eax, 0x102
jne 0x1054cab6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x1054cac0
jmp 0x1054ca8f
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.1054cb40
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1054cae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.10558160
test eax, eax
jne 0x1054caf8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x1054cb01
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 0x1054cb14
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1054cb2b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x10550380
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 0x105503ce
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 0x10541504
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x105503f6
jbe 0x105503f6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x105503fe
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x10550411
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.10554c20
test ax, ax
jne 0x10550586
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x1055059b
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x10550560
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push 0x105414e4
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.1054f850
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x105414e4
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 0x105414e4
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x40]
push 0x105406d0
push edx
call esi
add esp, 0x28
test eax, eax
je 0x1055050c
lea eax, [esp + 0x20]
push 0x10540704
push eax
call esi
add esp, 8
test eax, eax
jne 0x1055051b
push 0x105406c0
push ebp
call esi
add esp, 8
test eax, eax
je 0x1055055c
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.1054fcd0
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x10550582
lea edx, [esp + 0x60]
push 0x105414e4
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 0x10550479
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x1055059f
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 0x105505b0
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 0x10550641
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.10559560
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10550637
mov eax, dword [0x105414dc]
mov cx, word [0x105414e0]
mov dl, byte [0x105414e2]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x10550688
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x1055066b
mov dx, word [0x105414e0]
mov ecx, dword [0x105414dc]
mov al, byte [0x105414e2]
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.10557fd0
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.10559560
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x10550720
mov edx, dword [0x10541558]
mov eax, dword [0x1054155c]
mov ecx, dword [0x10541560]
mov dword [esp + 0xd0], edx
mov dx, word [0x10541564]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x1055074b
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.10557ef0
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x10542ba8], eax
add esp, 0x4c8
ret