joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d8c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x43ba08]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d90a
cmp word [ebx], dx
jne 0x41d90a
or byte [eax + edi + 0x28], 4
jmp 0x41d90f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41da72
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41da52
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41d950
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d986
cmp eax, edx
jae 0x41d994
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41d92b
jmp 0x41da72
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41da4d
cmp dword [ebp - 0x18], 0
je 0x41da4d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43ba08]
test byte [eax + edi + 0x28], 0x48
je 0x41da23
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41d9e7
mov word [esi], cx
jmp 0x41da1e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43ba08]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43ba08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43ba08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41da72
pop eax
cmp word [ebp - 4], ax
jne 0x41da33
cmp esi, ebx
jne 0x41da33
mov word [esi], ax
jmp 0x41da6f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e2fd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41da72
push 0xd
pop eax
jmp 0x41da2e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43ba08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41da6c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41da72
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42211f
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 0x4221bc
push ebx
push esi
call fcn.004220e8
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.00420dc1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422169
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4221bb
push edi
push eax
call fcn.0041b510
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422189
call fcn.00419d29
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4221ba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00420dc1
add esp, 0x20
test eax, eax
jne 0x4221a8
push edi
call fcn.00419d29
jmp 0x4221b0
push ebx
call fcn.00419d29
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 0x424604
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004197ef
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 0x424673
cmp esi, dword [ebp - 4]
je 0x42466e
cmp dword [ebp + 0xc], 0
je 0x42466e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42464b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00424156
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x424675
xor eax, eax
inc eax
jmp 0x424675
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4246da
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43a074]
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.004197ef
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.004197ef
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 0x424751
cmp word [ecx], dx
je 0x424751
mov eax, dword [0x42f914]
push edi
dec eax
push eax
push 0x42f800
call fcn.00424679
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4247c4
cmp word [eax], dx
je 0x4247c4
mov eax, dword [edi]
test eax, eax
je 0x424775
cmp word [eax], dx
je 0x424775
lea eax, [ebp - 0x10]
push eax
call fcn.0042405c
jmp 0x42477e
lea eax, [ebp - 0x10]
push eax
call fcn.004240f7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4247ee
mov eax, dword [0x42f7fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42f4f0
call fcn.00424679
add esp, 0xc
test al, al
je 0x4247ee
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4247b9
cmp word [eax], di
je 0x4247b9
lea eax, [ebp - 0x10]
push eax
call fcn.0042405c
pop ecx
jmp 0x4247f0
lea eax, [ebp - 0x10]
push eax
call fcn.004240f7
jmp 0x4247b6
mov eax, dword [edi]
test eax, eax
je 0x4247db
cmp word [eax], dx
je 0x4247db
lea eax, [ebp - 0x10]
push eax
call fcn.00424011
pop ecx
jmp 0x4247ee
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 0x4248b9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004244fe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4248b9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4248b9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4248b9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x424846
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041a33d
test ebx, ebx
je 0x4248b4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041a33d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4248b9
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 0x4248b9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00428931
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4248bb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c381
leave
ret
Function at 0x4290a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00429021
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x429214
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x429214
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4291c9
jg 0x429101
test eax, eax
je 0x4291bf
push 1
push 0x1000
call fcn.00419ccc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429124
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4291b6
push 0x8000
push ebx
call fcn.00416c6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42914d
jg 0x429148
cmp ecx, 0x1000
jb 0x42914d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041af8a
add esp, 0x10
cmp eax, 0xffffffff
je 0x429192
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x429148
jl 0x429179
test ecx, ecx
jne 0x42913a
push dword [ebp - 0xc]
push ebx
call fcn.00416c6e
push esi
call fcn.00419d29
add esp, 0xc
xor ebx, ebx
jmp 0x429222
cmp byte [edi + 0x24], 0
je 0x4291a9
cmp dword [edi + 0x20], 5
jne 0x4291a9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4291b4
mov ebx, dword [edi + 0x18]
jmp 0x4291b6
xor ebx, ebx
push esi
call fcn.00419d29
pop ecx
jmp 0x429222
test ecx, ecx
jg 0x42918b
jl 0x4291c9
test eax, eax
jae 0x42918b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e2fd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4291e9
cmp byte [edi + 0x1c], 0
je 0x42918b
jmp 0x42921a
push ebx
call fcn.004225d5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42918b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x429222
cmp byte [edi + 0x1c], 0
je 0x42921f
mov ebx, dword [edi + 0x18]
jmp 0x429222
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041e2fd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80f004]
jne 0x4010b2
repz ret
jmp fcn.00401495

Function at 0x4072a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401a27
and dword [ebp - 4], 0
cmp dword [0x817df0], 0
mov ebx, eax
jne 0x407358
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407409
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407409
push eax
call fcn.004019b5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x817df0], eax
call esi
push eax
call fcn.004019b5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x817df4], eax
call esi
push eax
call fcn.004019b5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x817df8], eax
call esi
push eax
call fcn.004019b5
pop ecx
mov dword [0x817e00], eax
test eax, eax
je 0x407358
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004019b5
pop ecx
mov dword [0x817dfc], eax
mov eax, dword [0x817dfc]
cmp eax, ebx
je 0x4073b0
cmp dword [0x817e00], ebx
je 0x4073b0
push eax
call fcn.00401a30
push dword [0x817e00]
mov esi, eax
call fcn.00401a30
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4073b0
test edi, edi
je 0x4073b0
call esi
test eax, eax
je 0x4073a7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4073a7
test byte [ebp - 0xc], 1
jne 0x4073b0
or dword [ebp + 0x10], 0x200000
jmp 0x4073e9
mov eax, dword [0x817df4]
cmp eax, ebx
je 0x4073e9
push eax
call fcn.00401a30
pop ecx
test eax, eax
je 0x4073e9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4073e9
mov eax, dword [0x817df8]
cmp eax, ebx
je 0x4073e9
push eax
call fcn.00401a30
pop ecx
test eax, eax
je 0x4073e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x817df0]
call fcn.00401a30
pop ecx
test eax, eax
je 0x407409
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40740b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x80b2a0
Capabilities:
Check for software breakpoints
Get geographical location
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [0x80f004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x80b2c5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x365ea9e0
jge 0x80b312
cmp dword [0x818c04], 0xc31
jne 0x80b2e2
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
cmp dword [ebp - 4], 0x176afc
jle 0x80b310
cmp dword [0x818c04], 0xa
jne 0x80b30e
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x80b312
jmp 0x80b2bc
mov dword [ebp - 0x64], 0
jmp 0x80b324
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x5f6c74
jge 0x80b344
cmp dword [ebp - 0x64], 0x562d05
jne 0x80b342
mov edx, dword [0x80fc58]
mov dword [0x818f8c], edx
jmp 0x80b31b
cmp dword [0x818c04], 0x7c
jne 0x80b378
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [0x818c04], 0x2d
jne 0x80b378
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [0x818c04], 0x110a
jne 0x80b451
mov dword [0x818bf0], 0
mov dword [0x818bf4], 0
cmp dword [0x818c04], 0xcc
jne 0x80b3ba
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x8183d0], 0x14
push 0
lea ecx, [ebp - 0x480]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push 0
push 0
call fcn.0040111f
add esp, 8
push 0
push 0
call fcn.0040111f
add esp, 8
mov edx, dword [0x80dcf4]
mov dword [ebp - 0xc88], edx
push 0x7fc
push 0
lea eax, [ebp - 0xc84]
push eax
call fcn.00403540
add esp, 0xc
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x484], ecx
push 0
push 0
call fcn.0040111f
add esp, 8
push 0
call fcn.00401286
add esp, 4
push 0
call fcn.004010b7
add esp, 4
call fcn.0080a6f0
mov dword [ebp - 0xc90], 0
jmp 0x80b471
mov edx, dword [ebp - 0xc90]
add edx, 1
mov dword [ebp - 0xc90], edx
mov eax, dword [ebp - 0xc90]
cmp eax, dword [0x818c04]
jae 0x80b4cc
mov ecx, dword [0x818f8c]
mov dword [ebp - 0xc94], ecx
mov eax, 0xa231
add dword [ebp - 0xc94], eax
mov edx, dword [0x81865c]
add edx, dword [ebp - 0xc90]
mov eax, dword [ebp - 0xc94]
add eax, dword [ebp - 0xc90]
mov cl, byte [eax]
mov byte [edx], cl
cmp dword [0x818c04], 0x5ab
jne 0x80b4ca
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x80b462
call fcn.0080b020
call fcn.0080a720
mov eax, 0x80fc60
call fcn.0080b260
mov dword [ebp - 0xc98], 0
jmp 0x80b4fb
mov edx, dword [ebp - 0xc98]
add edx, 1
mov dword [ebp - 0xc98], edx
cmp dword [ebp - 0xc98], 0x15a63d
jge 0x80b524
cmp dword [ebp - 0xc98], 0xbd9cb
jne 0x80b522
mov eax, dword [0x81865c]
add eax, 0
mov dword [0x81865c], eax
jmp 0x80b4ec
jmp dword [0x81865c]
Function at 0x40717f
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 0x40721c
push ebx
push esi
call fcn.00407148
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.00407091
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4071c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40721b
push edi
push eax
call fcn.004079f7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4071e9
call fcn.00405ca1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40721a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407091
add esp, 0x20
test eax, eax
jne 0x407208
push edi
call fcn.00405ca1
jmp 0x407210
push ebx
call fcn.00405ca1
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 0x408103
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff58
push 0x40ff50
push str.FlsAlloc
push 0x1e
call fcn.00408021
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408137
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
jmp 0x40813d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408181
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff68
push 0x40ff60
push str.FlsGetValue
push 0x20
call fcn.00408021
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4081b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4010d0
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x84476c], 0x594
mov dword [ebp - 8], eax
jne 0x4010f9
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov ecx, dword [0x424f68]
mov edx, dword [0x424f6c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
call fcn.004010c0
mov eax, dword [0x424f70]
mov ecx, dword [0x424f74]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x84476c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401196
push ebx
lea edx, [ebp - 0x38]
push edx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
push str.lanosiyonegu
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x84476c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x4011b0
mov dword [0x844768], 0xedeb2e40
jmp 0x4011cc
cmp ecx, 0x3eb
jne 0x4011cc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x84411c], ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add edx, edi
mov dword [ebp - 0x14], edx
mov edx, edi
shr edx, cl
mov dword [0x844764], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
shr esi, cl
mov ecx, dword [ebp - 0x14]
push ecx
push edx
add esi, dword [ebp - 0x34]
call fcn.004010a0
cmp dword [0x84476c], 0xb03
mov dword [ebp - 4], eax
jne 0x401255
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
lea eax, [ebp - 0x18]
call fcn.00401090
sub dword [ebp - 0x20], 1
jne 0x401135
cmp dword [0x84476c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x40129b
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404220
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424538]
jne 0x40422a
repz ret
jmp fcn.00407b40

Function at 0x407863
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c87
and dword [ebp - 4], 0
cmp dword [0x426b64], 0
mov ebx, eax
jne 0x407914
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4079c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4079c5
push eax
call fcn.00404c15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x426b64], eax
call esi
push eax
call fcn.00404c15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426b68], eax
call esi
push eax
call fcn.00404c15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426b6c], eax
call esi
push eax
call fcn.00404c15
pop ecx
mov dword [0x426b74], eax
test eax, eax
je 0x407914
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404c15
pop ecx
mov dword [0x426b70], eax
mov eax, dword [0x426b70]
cmp eax, ebx
je 0x40796c
cmp dword [0x426b74], ebx
je 0x40796c
push eax
call fcn.00404c90
push dword [0x426b74]
mov esi, eax
call fcn.00404c90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40796c
test edi, edi
je 0x40796c
call esi
test eax, eax
je 0x407963
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407963
test byte [ebp - 0xc], 1
jne 0x40796c
or dword [ebp + 0x10], 0x200000
jmp 0x4079a5
mov eax, dword [0x426b68]
cmp eax, ebx
je 0x4079a5
push eax
call fcn.00404c90
pop ecx
test eax, eax
je 0x4079a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4079a5
mov eax, dword [0x426b6c]
cmp eax, ebx
je 0x4079a5
push eax
call fcn.00404c90
pop ecx
test eax, eax
je 0x4079a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426b64]
call fcn.00404c90
pop ecx
test eax, eax
je 0x4079c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4079c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret