joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4566ff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x456721
mov esi, eax
and dword [ebp - 0x2dc], 0
xor eax, eax
mov ecx, 0xb6
lea edi, [ebp - 0x2d8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 0x274], 0x40
mov dword [ebp - 0x24c], edi
call fcn.00470580
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x49b5dc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x49ab6c
push 0x10000
lea eax, [ebp - 0x2dc]
push eax
push 0x455dec
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x4567e9
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x4567e0
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x4567c1
jmp 0x4567d8
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x4567d4
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x459b7c
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x84
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x78], bl
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
mov dword [ebp + 0x64], edi
mov word [ebp - 0x1c], bx
jne 0x459bea
push dword [ebp + 0x70]
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.0040ac4a
and dword [ebp + 0x4c], 0
xor eax, eax
mov dword [ebp + 0x48], 1
lea edi, [ebp + 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x74]
mov edi, dword [esi + 0x7c]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x70]
push 0x133d
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov edi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x70]
inc eax
push eax
lea eax, [ebp - 0x1c]
push 0x48c534
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x48b324
lea ecx, [ebp + 0x78]
call fcn.0043a4ba
push dword [edi + 8]
lea ecx, [ebp + 0x78]
call fcn.0042e232
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x78]
call fcn.0042e232
push dword [ebp + 0x74]
mov ecx, dword [edi + 0x30]
push dword [ebp + 0x78]
call fcn.0042cbf7
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x459c4a
mov ecx, dword [eax]
test ecx, ecx
je 0x459c4a
and dword [eax], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x459c5e
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call esi
push 5
push ebx
call esi
lea ecx, [ebp + 0x78]
call fcn.00428a48
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x469e66
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x7c]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x469f04
test edi, edi
jl 0x469f04
cmp edi, dword [esi + 0x78]
jge 0x469f04
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x469eb0
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x7c], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x469ec7
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x48b324
lea ecx, [ebp - 4]
call fcn.0043a4ba
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.0042e232
push str..Select
lea ecx, [ebp - 4]
call fcn.0042e232
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.00430102
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00428a48
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46abb2
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46abdd
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x18]
call edi
push 5
push dword [esi + 0x18]
call edi
pop edi
pop esi
ret

Function at 0x46fe45
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x46fe63
cmp ax, 0x42
je 0x46fe63
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x46ffe8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x473522
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x48de30
call fcn.00472ad8
mov edi, 0x94
mov eax, edi
call fcn.00470d80
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x49bb0c], ecx
mov eax, dword [esi + 4]
mov dword [0x49bb18], eax
mov edx, dword [esi + 8]
mov dword [0x49bb1c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49bb10], esi
cmp ecx, 2
je 0x473582
or esi, 0x8000
mov dword [0x49bb10], esi
shl eax, 8
add eax, edx
mov dword [0x49bb14], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4735bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4735bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4735d5
cmp eax, 0x20b
je 0x4735c2
mov dword [ebp - 0x1c], esi
jmp 0x4735e9
cmp dword [ecx + 0x84], 0xe
jbe 0x4735bd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4735e3
cmp dword [ecx + 0x74], 0xe
jbe 0x4735bd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0047bd50
pop ecx
test eax, eax
jne 0x4735fd
push 0x1c
call fcn.004734fe
pop ecx
call fcn.004760a3
test eax, eax
jne 0x47360e
push 0x10
call fcn.004734fe
pop ecx
call fcn.0047daf4
mov dword [ebp - 4], esi
call fcn.00474dea
test eax, eax
jge 0x473627
push 0x1b
call fcn.004734d9
pop ecx
call fcn.0047da55
mov dword [0x49c4b0], eax
call fcn.0047d8eb
mov dword [0x49bb00], eax
call fcn.0047d855
test eax, eax
jge 0x47364c
push 8
call fcn.004734d9
pop ecx
call fcn.0047d622
test eax, eax
jge 0x47365d
push 9
call fcn.004734d9
pop ecx
push 1
call fcn.004738fd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x473673
push eax
call fcn.004734d9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0047d5dc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x473694
movzx eax, word [ebp - 0x40]
jmp 0x473697
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040a464
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4736b5
push edi
call fcn.00473a2a
call fcn.00473a4c
jmp 0x4736e7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00472b13
ret
Function at 0x473967
Capabilities:
Terminate process

Disassembly:
push 8
push 0x48de68
call fcn.00472ad8
push 8
call fcn.004753fa
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x49bb4c], esi
jne 0x47399b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x49bb48], esi
mov al, byte [ebp + 0x10]
mov byte [0x49bb44], al
cmp dword [ebp + 0xc], edi
jne 0x4739e5
cmp dword [0x49c4a8], edi
je 0x4739d5
mov eax, dword [0x49c4a4]
sub eax, 4
mov dword [0x49c4a4], eax
cmp eax, dword [0x49c4a8]
jb 0x4739d5
mov eax, dword [eax]
cmp eax, edi
je 0x4739b6
call eax
jmp 0x4739b6
push 0x4990b0
mov eax, 0x4990a8
call fcn.004738e5
pop ecx
push 0x4990bc
mov eax, 0x4990b4
call fcn.004738e5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x473a16
cmp dword [ebp + 0x10], edi
jne 0x473a24
mov dword [0x49bb4c], esi
push dword [ebp + 8]
call fcn.004738a3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x473a23
push 8
call fcn.00475345
pop ecx
ret
call fcn.00472b13
ret
Function at 0x4757d2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x49a300]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x475803
xor eax, eax
jmp 0x47598c
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49c3a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x47583f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0047e184
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x47591a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x475958
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4758a3
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x475894
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x475874
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4758e3
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4758ec
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x475865
jmp 0x4758ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x475987
cmp dword [ebp - 0x6c], edi
je 0x475958
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x47594d
call fcn.0047574d
mov dword [eax], 9
call fcn.00475756
mov dword [eax], esi
jmp 0x475982
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x475942
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4758ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4758ee
push dword [ebp - 0x6c]
call fcn.0047575f
pop ecx
jmp 0x475982
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x475970
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x475970
xor eax, eax
jmp 0x47598a
call fcn.0047574d
mov dword [eax], 0x1c
call fcn.00475756
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x47598a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0047defb
add ebp, 0x3a0
leave
ret
Function at 0x47b770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x47b79e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x47b7a5
cmp ebx, dword [eax + 4]
jae 0x47b7a5
xor eax, eax
jmp 0x47b995
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x47b7b6
xor eax, eax
inc eax
jmp 0x47b994
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x47b7cc
cmp ecx, edx
jae 0x47b911
cmp dword [eax + 4], 0
je 0x47b7d5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x47b7bd
cmp dword [ebp + 8], 0
je 0x47b7f7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x47b911
cmp eax, esi
jae 0x47b911
mov eax, dword [0x49bda8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x47b81c
cmp dword [esi*4 + 0x49bdb0], edi
je 0x47b915
inc esi
cmp esi, eax
jl 0x47b80a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47b991
cmp dword [ebp - 8], 0x1000000
jne 0x47b991
test byte [ebp - 0xc], 0xcc
je 0x47b89a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x47b991
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x47b991
cmp word [eax + 0x18], 0x10b
jne 0x47b991
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x47b991
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x47b89a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x47b89a
test byte [ecx + 0x27], 0x80
jne 0x47b911
push 1
push 0x49bdf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x47b7ae
mov ecx, dword [0x49bda8]
test ecx, ecx
mov edx, ecx
jle 0x47b8ce
lea eax, [ecx*4 + 0x49bdac]
cmp dword [eax], edi
je 0x47b8ce
dec edx
sub eax, 4
test edx, edx
jg 0x47b8c2
test edx, edx
jne 0x47b8ff
push 0xf
pop ebx
cmp ecx, ebx
jg 0x47b8db
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x47b8f3
lea eax, [edx*4 + 0x49bdb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x47b8e1
cmp ecx, 0x10
jge 0x47b8ff
inc ecx
mov dword [0x49bda8], ecx
push 0
push 0x49bdf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x47b7ae
xor eax, eax
jmp 0x47b994
test esi, esi
jle 0x47b7ae
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x49bdf0
call ebx
test eax, eax
jne 0x47b7ae
cmp dword [esi*4 + 0x49bdb0], edi
je 0x47b96b
mov eax, dword [0x49bda8]
lea esi, [eax - 1]
test esi, esi
jl 0x47b959
cmp dword [esi*4 + 0x49bdb0], edi
je 0x47b955
dec esi
jns 0x47b949
test esi, esi
jge 0x47b969
cmp eax, 0x10
jge 0x47b964
inc eax
mov dword [0x49bda8], eax
lea esi, [eax - 1]
jmp 0x47b96b
je 0x47b983
xor ecx, ecx
test esi, esi
jl 0x47b983
lea eax, [ecx*4 + 0x49bdb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x47b971
push 0
push 0x49bdf0
call ebx
jmp 0x47b7ae
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47b9fa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00470d80
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47ba95
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x49bb0c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x47ba95
cmp eax, 1
je 0x47bab6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47ba95
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x47ba62
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x47ba91
xor eax, eax
inc eax
jmp 0x47bad5
cmp edi, eax
jae 0x47ba99
xor eax, eax
jmp 0x47bad5
cmp eax, esi
jae 0x47baa0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49bb0c]
jmp 0x47bab9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47d2c8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x49a300]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x49a310]
je 0x47d2fd
inc eax
cmp eax, 0x13
jb 0x47d2ee
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x49a310]
jne 0x47d423
mov eax, dword [0x49bb04]
cmp eax, 1
je 0x47d3fb
cmp eax, edx
jne 0x47d32d
cmp dword [0x499b4c], 1
je 0x47d3fb
cmp ecx, 0xfc
je 0x47d423
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47d363
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00470470
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00475540
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47d397
mov eax, edi
push eax
call fcn.00475540
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x494288
push edi
call fcn.0047f8c0
add esp, 0x10
push edi
call fcn.00475540
push dword [esi + 0x49a314]
mov ebx, eax
call fcn.00475540
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00470d80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00470470
push edi
push ebx
call fcn.00470480
push 0x494268
push ebx
call fcn.00470480
push dword [esi + 0x49a314]
push ebx
call fcn.00470480
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004810d4
add esp, 0x2c
jmp 0x47d423
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x49a314]
push dword [esi]
call fcn.00475540
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0047defb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x47d8eb
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x49c014]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x47d934
call ebp
mov esi, eax
cmp esi, ebx
je 0x47d91a
mov dword [0x49c014], 1
jmp 0x47d939
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x47d92f
push 2
pop eax
mov dword [0x49c014], eax
jmp 0x47d934
mov eax, dword [0x49c014]
cmp eax, 1
jne 0x47d991
cmp esi, ebx
jne 0x47d94c
call ebp
mov esi, eax
cmp esi, ebx
jne 0x47d94c
xor eax, eax
jmp 0x47da38
cmp word [esi], bx
mov eax, esi
je 0x47d961
inc eax
inc eax
cmp word [eax], bx
jne 0x47d953
inc eax
inc eax
cmp word [eax], bx
jne 0x47d953
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00472f79
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x47d984
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x47da38
push ebp
push esi
push edi
call fcn.00470580
add esp, 0xc
jmp 0x47d976
cmp eax, 2
je 0x47d99a
cmp eax, ebx
jne 0x47d945
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x47d945
cmp byte [ebp], bl
mov esi, ebp
je 0x47d9d0
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x47d945
push esi
add edi, eax
call fcn.00475540
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x47d9ad
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00472f79
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x47da49
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x47da2a
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x47da3f
push edi
call fcn.00475540
push esi
lea edi, [edi + eax + 1]
call fcn.00472e41
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x47d9f0
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00472e57
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x47d945
Function at 0x47da55
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x49c018]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x47da95
call esi
test eax, eax
je 0x47da7a
mov dword [0x49c018], 1
jmp 0x47da9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x47da91
mov dword [0x49c018], 2
jmp 0x47daa3
xor eax, eax
jmp 0x47daf1
cmp eax, 1
jne 0x47da9e
call esi
jmp 0x47daf1
cmp eax, 2
jne 0x47da91
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x47dae9
lea eax, [esi + esi]
push eax
call fcn.00472f79
mov ebp, eax
test ebp, ebp
pop ecx
je 0x47dae9
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x47daed
push ebp
call fcn.00472e57
pop ecx
xor eax, eax
jmp 0x47daef
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4810d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49c0a4], ebx
push esi
push edi
jne 0x481154
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48118f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x495d34
push edi
call esi
test eax, eax
mov dword [0x49c0a4], eax
je 0x48118f
push 0x495d24
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x49c0a8], eax
call esi
cmp dword [0x49bb0c], 2
mov dword [0x49c0ac], eax
jne 0x481154
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49c0b4], eax
je 0x481154
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49c0b0], eax
mov eax, dword [0x49c0b0]
test eax, eax
je 0x481199
call eax
test eax, eax
je 0x481180
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49c0b4]
test eax, eax
je 0x481180
test byte [ebp - 8], 1
jne 0x481199
cmp dword [0x49bb18], 4
jb 0x481193
or byte [ebp + 0x12], 0x20
jmp 0x4811b8
xor eax, eax
jmp 0x4811c8
or byte [ebp + 0x12], 4
jmp 0x4811b8
mov eax, dword [0x49c0a8]
test eax, eax
je 0x4811b8
call eax
mov ebx, eax
test ebx, ebx
je 0x4811b8
mov eax, dword [0x49c0ac]
test eax, eax
je 0x4811b8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49c0a4]
pop edi
pop esi
pop ebx
leave
ret