joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005b778
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 0x1005b815
push ebx
push esi
call fcn.1005b734
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.100511d0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005b7c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b814
push edi
push eax
call fcn.1004c436
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005b7e2
call fcn.1004c3fc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b813
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100511d0
add esp, 0x20
test eax, eax
jne 0x1005b801
push edi
call fcn.1004c3fc
jmp 0x1005b809
push ebx
call fcn.1004c3fc
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 0x1005b818
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005b829
pop esi
ret
push ebx
push edi
push esi
call fcn.1005b734
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004c436
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005b851
push ebx
push esi
push edi
call fcn.1001ff30
add esp, 0xc
push 0
call fcn.1004c3fc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005c0f5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005bac6

Function at 0x1005f69e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004cf93
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 0x1005f70d
cmp esi, dword [ebp - 4]
je 0x1005f708
cmp dword [ebp + 0xc], 0
je 0x1005f708
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005f6e5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005f1f0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005f70f
xor eax, eax
inc eax
jmp 0x1005f70f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005f774
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007c008]
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.1004cf93
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.1004cf93
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 0x1005f7eb
cmp word [ecx], dx
je 0x1005f7eb
mov eax, dword [0x100741c4]
push edi
dec eax
push eax
push 0x100740b0
call fcn.1005f713
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005f85e
cmp word [eax], dx
je 0x1005f85e
mov eax, dword [edi]
test eax, eax
je 0x1005f80f
cmp word [eax], dx
je 0x1005f80f
lea eax, [ebp - 0x10]
push eax
call fcn.1005f0f6
jmp 0x1005f818
lea eax, [ebp - 0x10]
push eax
call fcn.1005f191
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005f888
mov eax, dword [0x100740ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10073da0
call fcn.1005f713
add esp, 0xc
test al, al
je 0x1005f888
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005f853
cmp word [eax], di
je 0x1005f853
lea eax, [ebp - 0x10]
push eax
call fcn.1005f0f6
pop ecx
jmp 0x1005f88a
lea eax, [ebp - 0x10]
push eax
call fcn.1005f191
jmp 0x1005f850
mov eax, dword [edi]
test eax, eax
je 0x1005f875
cmp word [eax], dx
je 0x1005f875
lea eax, [ebp - 0x10]
push eax
call fcn.1005f08d
pop ecx
jmp 0x1005f888
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 0x1005f953
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005f598
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005f953
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005f953
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005f953
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005f8e0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004df87
test ebx, ebx
je 0x1005f94e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004df87
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f953
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 0x1005f953
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10055d6d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005f955
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016085
leave
ret
Function at 0x1005fdbf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1005fe02
call fcn.10042618
mov dword [eax], 0xf
call fcn.1004262b
mov dword [eax], 0xd
call fcn.1004ba63
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016085
leave
ret
test eax, eax
jne 0x1005fe09
inc eax
jmp 0x1005fdf6
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1005fdf4
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1005fdf6
Function at 0x43f092
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x43f0a1
pop dword [ebp - 0x28]
mov eax, 0x2aa5da34
add eax, 0xd59e166d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x53b9c
push 0
mov eax, 0xc4721982
add eax, 0x3bd2992e
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x1e99ed65
sub ecx, 0x1e9996f7
mov ebx, eax
mov esi, 0x475e00
add esi, dword [ebp - 0x28]
mov edi, 0x6b2c525e
add edi, 0x4117d9fa
sub dword [ebp - 0x18], 0xfc06dc8a
mov edx, dword [esi]
add dword [ebp - 0x18], 0x402cf855
xor edx, edi
mov dword [ebx], edx
xor dword [ebp - 0x14], esi
add ebx, 4
add esi, 0xc697c3c4
add esi, 0x39683c40
loop 0x43f0fa
add eax, 0x14c8b
xor ebx, ebx
add ebx, eax
add eax, 0xbe3f0bd9
add eax, 0x41c0f42c
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10036d70
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
lea ebx, [esi + 0x79b]
cmp esi, ebx
ja 0x10036e37
cmp esi, 0x23b7
ja 0x10036df9
je 0x10036de8
cmp esi, 0x492
ja 0x10036dd5
je 0x10036dc5
mov eax, esi
sub eax, 0x450
je 0x10036db9
add byte [esi + edx - 0x7d], dh
call 0x90887cca
add byte [eax], al
add byte [ebx + 0x88b0c45], cl
sub eax, 0x21
jne 0x10036e2c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
jmp 0x10036e2c
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
jmp 0x10036e2c
xchg dx, ax
push edi
loop 0x10036da0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
jmp 0x10036e2c
cmp esi, 0x2396
jne 0x10036e2c
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 4], eax
jmp 0x10036e2c
aam 0xa5
xchg ebx, eax
mov dword [0x8bfc458b], eax
iretd
mov eax, esi
sub eax, 0x4e70
je 0x10036e1e
sub eax, 0x21
je 0x10036e15
sub eax, 0x21
jne 0x10036e2c
mov dword [edi + 0x58], 5
jmp 0x10036e2c
mov dword [edi + 0x50], 0x10068b00
jmp 0x10036e2c
mov dword [edi + 0x4c], 0x10068300
mov dword [edi + 0x54], 9
add esi, 0x21
cmp esi, ebx
jbe 0x10036d86
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10037920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea edx, [eax + 0x7f8]
push ebx
mov ebx, dword [ebp - 4]
mov ecx, eax
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
cmp eax, edx
ja 0x10037a9b
cmp ecx, 0x335d
ja 0x100379a0
je 0x1003797c
cmp ecx, 0x612
je 0x10037960
cmp ecx, 0x3345
je 0x10037993
jmp 0x10037b08
mov eax, 0x55eb
cmp eax, eax
je 0x10037b22
add eax, 0x53
cmp eax, 0x55eb
jbe 0x10037967
jmp 0x10037b08
mov eax, 0x236
cmp eax, eax
je 0x10037b3d
add eax, 0x12
cmp eax, 0x236
jbe 0x10037983
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x10037b08
cmp ecx, 0x516e
jne 0x10037b08
mov eax, dword [ebp + 8]
mov eax, dword [eax]
inc eax
cmp eax, 0x3f
ja case.0x100379c2.0
movzx ecx, byte [eax + 0x10037b5c]
jmp dword [ecx*4 + 0x10037b4c]
mov ecx, 0x2bda
mov edi, edi
mov eax, ecx
sub eax, 0x2bda
je 0x100379e4
sub eax, 3
je 0x10037a9b
jmp 0x100379ec
mov ebx, 2
mov dword [ebp - 4], ebx
add ecx, 3
cmp ecx, 0x2bdd
jbe 0x100379d0
mov esi, 0x49af
mov eax, esi
sub eax, 0x49af
je 0x10037a29
sub eax, 0x45
je 0x10037a15
sub eax, 0x45
je 0x10037a9b
jmp 0x10037a35
mov eax, dword [ebp + 0x10]
mov ecx, edi
call fcn.10031800
mov ebx, 1
mov dword [ebp - 4], ebx
jmp 0x10037a35
push 0
mov eax, edi
call fcn.1002b7a0
add esp, 4
add esi, 0x45
cmp esi, 0x4a39
jbe 0x100379fc
mov esi, 0x27e2
cmp esi, 0x287c
ja 0x10037a88
je 0x10037a77
mov eax, esi
sub eax, 0x27e2
je 0x10037a6a
sub eax, 0x4d
jne 0x10037ab2
push eax
mov eax, edi
call fcn.1002b7a0
add esp, 4
jmp 0x10037ab2
push 0x22
push edi
call fcn.1003afd0
add esp, 8
jmp 0x10037ab2
sbb al, 0x59
insb byte es:[edi], dx
mov ecx, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x80], 1
jmp 0x10037ab2
mov eax, esi
sub eax, 0x28c9
je 0x10037aa3
sub eax, 0x4d
jne 0x10037ab2
invalid
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, edi
call fcn.10031800
xor ebx, ebx
mov dword [ebp - 4], ebx
add esi, 0x4d
cmp esi, 0x2916
jbe 0x10037a45
mov esi, 0x2a17
mov eax, esi
sub eax, 0x2a17
je 0x10037aed
sub eax, 5
je 0x10037ad7
sub eax, 5
je 0x10037a9b
jmp 0x10037afd
push 0x42
mov eax, edi
call fcn.1002b7a0
mov ebx, 2
add esp, 4
mov dword [ebp - 4], ebx
jmp 0x10037afd
lcall 0x236a, 0xa208ec20
push edi
call fcn.1003afd0
add esp, 8
add esi, 5
cmp esi, 0x2a21
jbe 0x10037ac2
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0xc]
jbe 0x10037941
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.10022b20
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
setb dl
mov byte [ebp - 4], dl
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003cb00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10053c78
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x1003cc8f
cmp byte [esi + 0x49], 0
je 0x1003cc8f
push edi
call fcn.10004630
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push edi
mov ecx, esi
call edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], edi
call fcn.100045f0
add esp, 8
test al, al
je 0x1003cb70
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.1003c510
mov dword [ebp - 4], 0
lea ebx, [esi + 0x4c]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1003c610
mov ecx, eax
call fcn.1003cf30
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.1003c630
add edi, eax
push edi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1003c610
mov ecx, eax
call fcn.1003cf30
mov ecx, dword [esi + 0x44]
push eax
push ebx
call fcn.10004ae0
sub eax, 0
je 0x1003cbfb
dec eax
je 0x1003cbff
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
je 0x1003cc77
call fcn.1003b0c0
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x49], 0
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.1003c610
mov ecx, eax
call fcn.1003cf30
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x1003cc40
mov eax, dword [esi + 0x54]
push eax
push edi
push 1
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1003c610
mov ecx, eax
call fcn.1003cf30
push eax
call fcn.1003fd2e
add esp, 0x10
cmp edi, eax
jne 0x1003cc5e
cmp byte [esi + 0x49], 0
je 0x1003cc6d
test edi, edi
jne 0x1003cb87
push edi
push 8
lea ecx, [ebp - 0x3c]
call fcn.1003c550
jmp 0x1003cb87
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
jmp 0x1003cbe3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1003b0c0
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10047524
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006cd10]
jne 0x1004752e
repz ret
jmp fcn.1004cd8f
Function at 0x1004ba1e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006cd10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1004289b
and dword [ebp - 0x14], 0
cmp dword [0x1006e638], 0
mov dword [ebp - 0x18], eax
jne 0x1004bad1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1004bb79
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1004bb79
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1006e638], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1006e63c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1006e640], eax
call edi
push eax
call esi
mov dword [0x1006e648], eax
test eax, eax
je 0x1004bad1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1006e644], eax
mov eax, dword [0x1006e644]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1004bb2a
cmp dword [0x1006e648], ecx
je 0x1004bb2a
push eax
call esi
push dword [0x1006e648]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1004bb2a
test ebx, ebx
je 0x1004bb2a
call edi
test eax, eax
je 0x1004bb21
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1004bb21
test byte [ebp - 8], 1
jne 0x1004bb2a
or dword [ebp + 0x10], 0x200000
jmp 0x1004bb5d
mov eax, dword [0x1006e63c]
cmp eax, dword [ebp - 0x18]
je 0x1004bb5d
push eax
call esi
test eax, eax
je 0x1004bb5d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004bb5d
mov eax, dword [0x1006e640]
cmp eax, dword [ebp - 0x18]
je 0x1004bb5d
push eax
call esi
test eax, eax
je 0x1004bb5d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1006e638]
call esi
test eax, eax
je 0x1004bb79
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1004bb7b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10047524
leave
ret
Function at 0x417c10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc0
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x12]
mov esi, dword [esp + 0xcc]
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
mov dword [esi], edx
mov edx, dword [esp + 0xe]
mov dword [esi + 4], eax
lea eax, [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
push eax
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 0xa]
mov ecx, eax
mov eax, dword [esp + 8]
and edx, 0xffff
and eax, 0xffff
mov edi, dword [esi + 0x20]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0xc4]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
add eax, edx
xor edx, edx
test eax, eax
setl dl
shl edx, 1
and edi, 0xfffffffd
or edx, edi
mov dword [esi + 0x20], edx
cdq
mov edi, eax
mov eax, 0x88888889
xor edi, edx
cli
sub edi, edx
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
test ecx, ecx
mov dword [esi + 0x18], edx
je 0x417cea
mov ecx, dword [0x4c6a7c]
push 0x4c676c
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esi + 0x18]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x20]
shl edx, 2
sub edi, edx
or al, 1
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov eax, esi
pop edi
pop esi
add esp, 0xc0
ret

Function at 0x4a1cc0
Capabilities:
Encode data using xor

Disassembly:
out 0x80, al
or eax, 0x4a91d1bc
and eax, dword [ecx + 0x54]
out dx, al
popfd
xor byte [esi - 0x22afd783], cl
sub byte [eax - 0x23], dl
cli
inc esp
salc
sbb byte [edi], bl
pop esp
mov ebx, 0xd1950471
push esp
dec eax
fist dword [esi]
inc esp
mov dl, 0x19
loopne fcn.004a1cc0
push 0x8d92678b
dec edx
out dx, al
cmp esi, ecx
cmp eax, 0xbbc27ada
test eax, 0xf03b1f70
outsd dx, dword [esi]
jno 0x4a1ca9
mov dl, byte es:[esi]
mov esp, 0x3449df41
ljmp 0xbef7
Function at 0x4ba771
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3338
cmp edx, dword [eax]
je 0x4ba793
add eax, 8
inc ecx
cmp eax, 0x4c33c8
jl 0x4ba784
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3338]
jne 0x4ba8c1
mov eax, dword [0x4c7cbc]
cmp eax, 1
je 0x4ba89b
test eax, eax
jne 0x4ba7c4
cmp dword [0x4c3264], 1
je 0x4ba89b
cmp edx, 0xfc
je 0x4ba8c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba7fb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bb150
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb5e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba83e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb5e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfa94
push edi
call fcn.004bd4b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bb150
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb160
lea eax, [ebp - 0xa0]
push 0x4bfa74
push eax
call fcn.004bb160
push dword [esi + 0x4c333c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb160
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd424
add esp, 0x2c
pop edi
jmp 0x4ba8c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c333c]
push 0
push eax
push dword [esi]
call fcn.004bb5e0
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 0x4122f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412313
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004138a0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x412336
test byte [esp + 8], 2
je 0x412336
mov dword [0x4230f8], 0xd
mov dword [0x4230fc], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x412790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4127c9
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x4127c9
and eax, 0xff
push eax
call fcn.004152b0
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x4132c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00412ba0
mov eax, dword [0x427420]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x413422
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x427320]
test byte [edx + ecx*8 + 4], 1
je 0x413422
push 1
push ebp
push ebx
call fcn.00411d90
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41342c
push 2
push ebp
push ebx
call fcn.00411d90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41342c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4133c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00416c30
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41336f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00411a90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41338b
sub esi, eax
test esi, esi
jle 0x4133a1
jmp 0x413360
cmp dword [0x4230fc], 5
jne 0x41339e
mov dword [0x4230f8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00416c30
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00411d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x413409
push 0
push ecx
push ebx
call fcn.00411d90
add esp, 0xc
push ebx
call fcn.00413850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x413409
mov dword [0x4230f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4230fc], eax
push 0
push edi
push ebx
call fcn.00411d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4230f8], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret