joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407d48
cmp edx, dword [eax]
je 0x403337
add eax, 8
inc ecx
cmp eax, 0x407dd8
jl 0x403328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407d48]
jne 0x403465
mov eax, dword [0x4082f4]
cmp eax, 1
je 0x40343f
test eax, eax
jne 0x403368
cmp dword [0x407a14], 1
je 0x40343f
cmp edx, 0xfc
je 0x403465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40339f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403a00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403610
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4033e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403610
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406434
push edi
call fcn.00404ae0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403a00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403a10
lea eax, [ebp - 0xa0]
push 0x406414
push eax
call fcn.00403a10
push dword [esi + 0x407d4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403a10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404a4e
add esp, 0x2c
pop edi
jmp 0x403465
lea eax, [ebp + 8]
lea esi, [esi + 0x407d4c]
push 0
push eax
push dword [esi]
call fcn.00403610
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]
pop esi
leave
ret
Function at 0x444160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2b000]
push edi
jmp 0x44417a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x444181
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x444170
mov eax, 1
add ebx, ebx
jne 0x444193
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4441a4
jne 0x4441c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4441c3
dec eax
add ebx, ebx
jne 0x4441b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x444188
add ebx, ebx
jne 0x4441bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x444215
xor ecx, ecx
sub eax, 3
jb 0x4441db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44424a
sar eax, 1
mov ebp, eax
jmp 0x4441e6
add ebx, ebx
jne 0x4441e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4441b4
inc ecx
add ebx, ebx
jne 0x4441f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4441b4
add ebx, ebx
jne 0x444201
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4441f6
jne 0x444212
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4441f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x444234
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x444226
jmp 0x444176
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x444234
add edi, ecx
jmp 0x444176
pop esi
mov edi, esi
mov ecx, 0x326
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x444252
cmp byte [edi], 1
jne 0x444252
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 0x444257
lea edi, [esi + 0x41000]
mov eax, dword [edi]
or eax, eax
je 0x4442cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a420]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x444284
mov ecx, edi
jns 0x4442b3
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 + 0x4a564]
or eax, eax
je 0x4442c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4442a1
call dword [esi + 0x4a574]
mov ebp, dword [esi + 0x4a568]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x444303
sub esp, 0xffffff80
jmp 0x4112b4
Function at 0x4edeb0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
call fcn.004eec10
mov eax, dword [0x4ea9b8]
xor edi, edi
cmp eax, edi
je 0x4edf22
mov esi, dword [0x4e0784]
mov edx, dword [0x4ebb78]
push 4
push edi
push 0x4ea98c
push 0x4ea988
inc esi
push edi
push 0x4ea9cc
mov dword [0x4eae64], edi
mov dword [0x4e0784], esi
mov dword [0x4ea988], edx
mov dword [0x4ea98c], edi
call fcn.004eff40
cmp ax, di
jne 0x4edf19
mov ecx, dword [0x4ea98c]
mov edx, dword [0x4ebb78]
xor ecx, edx
je 0x4ee03b
pop edi
pop esi
mov eax, 3
pop ebx
ret
mov eax, dword [0x4e0788]
mov ebx, 1
cmp eax, ebx
mov dword [0x4eae64], ebx
je 0x4edf9a
mov eax, dword [0x4e0784]
mov ecx, dword [0x4e0780]
cmp eax, ecx
je 0x4edf9a
mov ecx, dword [0x4ebb78]
push 4
push edi
mov esi, eax
push 0x4ea98c
push 0x4ea988
inc esi
push edi
push 0x4ea9cc
mov dword [0x4e0784], esi
mov dword [0x4ea988], ecx
mov dword [0x4ea98c], edi
call fcn.004eff40
cmp ax, di
jne 0x4edf91
mov edx, dword [0x4ea98c]
mov ecx, dword [0x4ebb78]
xor edx, ecx
je 0x4ee03b
pop edi
pop esi
mov eax, 3
pop ebx
ret
push edi
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
push 4
idiv ecx
mov eax, dword [0x4ebb78]
push edi
and eax, 0x1f3
push 0x4ea98c
mov dword [0x4ea998], eax
push 0x4ea988
mov dword [0x4e0784], ebx
mov dword [0x4ea98c], edi
inc edx
mov dword [0x4e0780], edx
mov edx, dword [eax*4 + 0x4dd010]
movzx ax, byte [0x4dd00d]
xor edx, 0xfd0699d6
push eax
push 0x4ea9cc
mov dword [0x4ea988], edx
call fcn.004eff40
mov esi, eax
cmp si, di
jne 0x4ee03f
mov ecx, dword [0x4ea998]
mov edx, dword [ecx*4 + 0x4dd7e0]
mov ecx, dword [0x4ea98c]
xor edx, ecx
xor edx, 0x7b2309a7
jne 0x4ee03f
mov dword [0x4e0788], edi
mov ax, si
pop edi
pop esi
pop ebx
ret
mov al, byte [0x4dfb96]
cmp al, 0x31
jne 0x4ee04f
mov esi, 3
jmp 0x4ee059
cmp al, 0x32
je 0x4ee057
cmp al, 0x33
jne 0x4ee059
xor esi, esi
mov ecx, dword [0x4ea794]
mov dword [0x4e0788], ebx
cmp ecx, edi
jne 0x4ee038
cmp al, 0x32
je 0x4ee071
cmp al, 0x33
jne 0x4ee038
mov eax, dword [0x4ea9bc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2010
mov dword [0x4ea994], 0xc
call fcn.004ed060
push eax
call fcn.004eeb20
mov ecx, dword [0x4ea9bc]
add esp, 8
mov dword [0x4ea994], edi
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ax, si
pop edi
mov dword [0x4ea794], ebx
pop esi
pop ebx
ret
Function at 0x4ee440
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x4ebb60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esi*4 + 0x4ebba0]
test eax, eax
je 0x4ee493
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
je 0x4ee493
cmp dword [esp + 0xc], 0x103
je 0x4ee493
mov edx, dword [esi*4 + 0x4ebba0]
push edx
call edi
mov dword [esi*4 + 0x4ebba0], 0
push esi
call fcn.004ee630
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x4ee45d
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
xor esi, esi
mov eax, dword [esi*4 + 0x4ebba0]
test eax, eax
je 0x4ee4b9
push eax
call edi
push esi
call fcn.004ee630
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x4ee4ab
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ee4d0
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
xor esi, esi
mov eax, dword [esi*4 + 0x4ebba0]
test eax, eax
je 0x4ee4e8
push eax
call edi
push esi
call fcn.004ee630
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x4ee4da
push 0x4ebb60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret

Function at 0x4ef830
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
xor eax, eax
mov ecx, 0x25
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x94
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4ef88e
cmp dword [esp + 0x14], 2
jne 0x4ef874
cmp dword [esp + 8], 5
jne 0x4ef874
cmp dword [esp + 0xc], 1
mov ax, 1
jae 0x4ef878
mov ax, 2
mov word [0x4e84e0], ax
cmp ax, 1
jne 0x4ef88e
call fcn.004ef560
call fcn.004ef700
pop edi
add esp, 0x94
ret

Function at 0x4efe00
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4efe13
mov ax, 0x10
pop edi
pop esi
ret 0xc
push esi
call fcn.004f1d60
mov edi, eax
mov ax, word [edi]
cmp ax, 0x7243
jne 0x4efe55
mov word [edi], 0x7242
push edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004f30b0
push eax
call fcn.004ef8a0
mov word [edi + 6], ax
add esp, 8
mov word [edi], 0x7243
mov ax, word [edi + 6]
pop edi
pop esi
ret 0xc
cmp ax, 0x7242
jne 0x4efe7a
mov eax, dword [esp + 0x14]
push edi
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004f30b0
push eax
call fcn.004ef8a0
add esp, 8
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.004f3a90
pop edi
pop esi
ret 0xc
Function at 0x4efe90
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x4efea3
mov ax, 0x10
pop edi
pop esi
ret 0x14
push edi
call fcn.004f1d60
mov esi, eax
mov ax, word [esi]
cmp ax, 0x7243
jne 0x4efeef
mov word [esi], 0x7242
push esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push edi
call fcn.004f30d0
push eax
call fcn.004ef8a0
mov word [esi + 6], ax
add esp, 8
mov word [esi], 0x7243
pop edi
mov ax, word [esi + 6]
pop esi
ret 0x14
cmp ax, 0x7242
jne 0x4eff1e
mov eax, dword [esp + 0x1c]
push esi
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [esp + 0x1c]
push ecx
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
call fcn.004f30d0
push eax
call fcn.004ef8a0
add esp, 8
pop edi
pop esi
ret 0x14
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
call fcn.004f3e40
pop edi
pop esi
ret 0x14

Function at 0x4f0000
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4f0013
mov ax, 0x10
pop edi
pop esi
ret 0xc
push esi
call fcn.004f1d60
mov edi, eax
mov ax, word [edi]
cmp ax, 0x7243
jne 0x4f0055
mov word [edi], 0x7242
push edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004f3130
push eax
call fcn.004ef8a0
mov word [edi + 6], ax
add esp, 8
mov word [edi], 0x7243
mov ax, word [edi + 6]
pop edi
pop esi
ret 0xc
cmp ax, 0x7242
jne 0x4f007a
mov eax, dword [esp + 0x14]
push edi
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004f3130
push eax
call fcn.004ef8a0
add esp, 8
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.004f4240
pop edi
pop esi
ret 0xc

Function at 0x4f0220
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4f0233
mov ax, 0x10
pop edi
pop esi
ret 0xc
push esi
call fcn.004f1d60
mov edi, eax
mov ax, word [edi]
cmp ax, 0x7243
jne 0x4f0272
mov word [edi], 0x7242
push 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004f2fb0
mov word [edi + 6], ax
test ax, ax
je 0x4f0269
mov word [edi], 0x7243
mov ax, word [edi + 6]
pop edi
pop esi
ret 0xc
cmp ax, 0x7242
jne 0x4f028f
mov eax, dword [esp + 0x14]
push 1
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004f2fb0
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.004f4ed0
pop edi
pop esi
ret 0xc
Function at 0x4f02d0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push ebp
call fcn.004f8510
test eax, eax
mov eax, dword [esp + 0x14]
push eax
jne 0x4f0300
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
mov ebx, eax
jne 0x4f031a
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x4f031a
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push ebx
call edi
test eax, eax
je 0x4f034d
cmp eax, 0x102
jne 0x4f035a
inc esi
cmp esi, dword [esp + 0x24]
jle 0x4f0324
push ebx
call fcn.004f03d0
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
ret
mov eax, 0x73
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4f0370
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.004f8510
test eax, eax
mov eax, dword [esp + 8]
push eax
push 0
jne 0x4f0399
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4f03ae
mov eax, 1
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4f03ae
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4f03c5
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x4f1830
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x58
push ebx
push esi
mov esi, dword [esp + 0x64]
push edi
push ebp
test esi, esi
jne 0x4f184d
mov ax, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret 4
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4f1881
mov ecx, dword [0x4ebd38]
push ecx
push eax
call fcn.004f2b60
add esp, 8
test eax, eax
je 0x4f1876
mov ax, 0x4b
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret 4
push 0x404
push esi
call fcn.004f1800
call fcn.004f2230
mov bx, ax
push 0x1a4
movzx eax, bx
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
mov dword [esi + 0x54], eax
call ebp
add esp, 4
mov ebp, eax
test ebp, ebp
jne 0x4f18b3
mov ax, 0x40
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret 4
mov edi, ebp
xor eax, eax
mov ecx, 0x69
rep stosd dword es:[edi], eax
lea edi, [esp + 0x28]
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
xor esi, esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov word [eax + 0x14], si
mov word [ebp + 0x5a], 0xffff
mov word [ebp], bx
call sub.MSVCRT.dll__getpid
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], 0x78
mov word [ebp + 0x74], 1
call fcn.004f5740
push 0x4e0860
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov edi, eax
test edi, edi
jne 0x4f1926
mov al, byte [0x4e8ca0]
mov byte [ebp + 2], al
jmp 0x4f19e7
push 0x4e086c
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4f1946
mov al, byte [0x4e8ca0]
mov byte [ebp + 2], al
jmp 0x4f19e7
lea eax, [esp + 0x28]
push 0x40
push eax
push edi
call fcn.004f9c90
add esp, 0xc
test eax, eax
jge 0x4f196f
push ebp
push 0x4a
call fcn.004f2a00
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret 4
lea edi, [esp + 0x28]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp + 2]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x11
ja 0x4f19e7
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push 0x4e9204
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x1c]
add esp, 0xc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp + 0x18d]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp bx, 1
jne 0x4f19fa
push 0x4ebd38
call fcn.004f2060
add esp, 4
push ebp
push 0x4ebd38
call fcn.004f2070
add esp, 8
push ebp
push 0
call fcn.004f2a00
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret 4
Function at 0x4f2740
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x200
push ebx
push esi
mov ebx, dword [esp + 0x214]
push edi
push ebp
mov ebp, 4
cmp byte [ebx], 0
je 0x4f277e
mov edi, ebx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x4e926c
mov byte [ebx], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4f27a6
jbe 0x4f27a6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov word [esp + 0x14], ax
add esp, 4
jmp 0x4f27ad
mov word [esp + 0x10], 0xa
mov eax, dword [esp + 0x214]
cmp word [eax + 0x74], 4
jne 0x4f27c0
mov ebp, 2
lea eax, [esp + 0x10]
lea ecx, [esp + 0xbc]
mov edx, dword [esp + 0x218]
push eax
push ecx
push edx
push ebp
call fcn.004f02b0
mov word [esp + 0x12], ax
test ax, ax
jne 0x4f291d
mov dword [esp + 0x14], 0
mov word [esp + 0x12], 0x46
cmp word [esp + 0x10], 0
jbe 0x4f291d
lea ebp, [esp + 0xbc]
cmp word [ebp + 0x20], 0
jbe 0x4f2903
mov edi, ebx
xor eax, eax
mov ecx, 0x10
push 0x4e924c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
mov edi, ebp
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x21c]
add esp, 8
push ebp
push eax
call fcn.004f2140
add esp, 8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
push 0x4e924c
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x60]
add esp, 8
push 0x4e924c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x20]
add esp, 8
push 0x4e0824
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x4f28ba
lea eax, [esp + 0x18]
push 0x4e84fc
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4f28cd
push 0x4e920c
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x4f2903
mov eax, dword [esp + 0x218]
push ebx
mov ecx, dword [esp + 0x218]
push eax
push ecx
call fcn.004f2240
mov word [esp + 0x1e], ax
add esp, 0xc
test ax, ax
je 0x4f291d
lea eax, [esp + 0x58]
push 0x4e924c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
add ebp, 0x22
mov eax, dword [esp + 0x10]
and eax, 0xffff
inc dword [esp + 0x14]
cmp eax, dword [esp + 0x14]
jg 0x4f280b
cmp word [esp + 0x12], 0x45
mov ax, 3
je 0x4f292d
mov eax, dword [esp + 0x12]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x200
ret
Function at 0x4f2c20
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
test esi, esi
je 0x4f2dab
mov bx, word [esp + 0x24]
test bx, bx
je 0x4f2dab
cmp bx, 0xffff
jne 0x4f2c54
mov ax, 3
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
push esi
call fcn.004f1d60
cmp word [eax], 0x7242
mov edi, eax
jne 0x4f2d9e
test byte [edi + 0x12], 4
jne 0x4f2c80
mov word [edi + 6], 2
mov ax, 2
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
push ebx
push esi
call fcn.004fa8d0
mov bx, ax
test bx, bx
jne 0x4f2daf
test bx, bx
jne 0x4f2d92
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4f2cbe
mov word [edi + 6], 0x46
mov ax, 0x46
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
cmp word [esp + 0x28], 1
jne 0x4f2d92
cmp word [0x4e92a8], 0
jne 0x4f2d4c
lea eax, [esp + 0x10]
push eax
call fcn.004f8530
add esp, 4
test eax, eax
je 0x4f2cf8
mov word [edi + 6], 0x4a
mov ax, 0x4a
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
lea eax, [esp + 0x10]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4e92b0], eax
test eax, eax
jne 0x4f2d23
mov word [edi + 6], 0x4a
mov ax, 0x4a
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4f0e20
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov word [0x4e92a8], 1
add esp, 0x18
mov dword [0x4e92b4], eax
mov ax, word [edi + 0x36]
push 1
mov cx, word [edi + 0x34]
push 1
push eax
push ecx
push edi
call fcn.004f3180
add esp, 0x14
test ax, ax
je 0x4f2d86
push 0x404
push esi
call fcn.004fa6d0
push esi
call fcn.004fa730
mov ax, 0x46
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
mov ax, 2
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
mov ax, 0x10
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4f3180
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push esi
mov ebx, dword [esp + 0x20]
push edi
mov di, word [esp + 0x20]
push ebp
mov si, word [esp + 0x20]
push 0
mov ebp, dword [esp + 0x30]
push ebp
push ebx
push edi
push esi
call fcn.004f07a0
add esp, 0x14
test eax, eax
jne 0x4f31c1
mov eax, dword [esp + 0x1c]
pop ebp
mov word [eax + 6], 0x48
mov ax, 0x48
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp word [0x4e92a4], 0
jne 0x4f32b3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x12]
push eax
push 0
push ecx
push 0x4f06c0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x4eb070], eax
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4f32a1
cmp word [esp + 0x12], 2
jne 0x4f3247
cmp ebx, 0xffffffff
jne 0x4f3220
cmp ebp, 0xffffffff
jne 0x4f3220
push 2
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x4f3226
push 2
push 1
push 1
push edi
push esi
call fcn.004f07a0
add esp, 0x14
mov eax, dword [0x4eb070]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp word [esp + 0x12], 0
jne 0x4f3266
mov eax, dword [0x4eb070]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp ebx, 1
jne 0x4f326e
cmp ebp, 1
push 1
push 1
push 1
push edi
push esi
call fcn.004f07a0
mov eax, dword [esp + 0x30]
add esp, 0x14
mov word [eax + 6], 0x46
mov ecx, dword [0x4eb070]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x46
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp eax, 0x102
jne 0x4f32b3
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret