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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101647c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
inc ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x12], 0
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x11]
push eax
push edi
call esi
test eax, eax
je 0x100d398
cmp dword [ebp - 0x18], ebx
jne 0x100d398
cmp byte [ebp - 0x11], 0x15
je 0x100d3a5
lea eax, [ebp - 0x24]
push eax
call fcn.0100b44d
test eax, eax
je 0x100d37b
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
call fcn.0100b44d
test eax, eax
jne 0x100d471
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x20], 0
jne 0x100d405
inc byte [ebp - 0x12]
jne 0x100d3ce
mov dword [ebp - 0x28], ebx
mov al, byte [ebp - 0x12]
or cl, 0xff
sub cl, al
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0xe], cl
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 9], eax
mov dword [ebp - 0xd], ecx
xor al, al
mov byte [ebp - 0x10], bl
mov byte [ebp - 5], 0
xor ecx, ecx
add al, byte [ebp + ecx - 0x10]
inc ecx
cmp ecx, 0xb
jb 0x100d3f5
mov byte [ebp - 0x11], al
mov byte [ebp - 5], al
push 0
lea eax, [ebp - 0x2c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x100d426
cmp dword [ebp - 0x2c], 0xc
jne 0x100d426
and dword [ebp - 0x20], 0
jmp 0x100d429
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0100b44d
test eax, eax
jne 0x100d471
cmp dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x1c]
je 0x100d44c
call esi
jmp 0x100d460
call esi
test eax, eax
je 0x100d45d
cmp dword [ebp - 0x18], ebx
jne 0x100d45d
cmp byte [ebp - 0x11], 0x16
je 0x100d482
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0100b44d
test eax, eax
je 0x100d3c0
and dword [ebp - 0x28], 0
jmp 0x100d4aa
cmp dword [ebp - 0x18], ebx
jne 0x100d4aa
cmp byte [ebp - 0x11], 0x15
jne 0x100d496
push 0
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 0x11], 4
call edi
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x100d477
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
call fcn.01011c2a
leave
ret 0xc
Function at 0x100d4c1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101647c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x28], edi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ebx
call fcn.0100b44d
test eax, eax
jne 0x100d5a3
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
cmp dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x12]
push eax
push esi
mov byte [ebp - 0x12], 0x15
jne 0x100d524
mov byte [ebp - 0x12], 0x16
call edi
lea eax, [ebp - 0x1c]
push eax
call fcn.0100b44d
test eax, eax
jne 0x100d5a3
push eax
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d592
cmp dword [ebp - 0x20], ebx
jne 0x100d557
cmp byte [ebp - 0x10], 4
je 0x100d5a7
cmp dword [ebp - 0x20], 0xc
jne 0x100d592
xor al, al
xor ecx, ecx
add al, byte [ebp + ecx - 0x10]
inc ecx
cmp ecx, 0xb
jb 0x100d561
cmp byte [ebp - 5], al
mov byte [ebp - 0x12], al
jne 0x100d592
mov al, byte [ebp - 0xf]
and dword [ebp - 0x18], 0
cmp byte [ebp - 0x11], al
jb 0x100d5a3
jne 0x100d592
mov ecx, dword [ebp - 0xd]
mov eax, dword [ebp - 0x28]
inc byte [ebp - 0x11]
mov dword [eax], ecx
mov ecx, dword [ebp - 9]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0100b44d
test eax, eax
je 0x100d50a
xor eax, eax
jmp 0x100d5aa
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01011c2a
leave
ret 0xc
Function at 0x101116f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x101647c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x80c]
push eax
push 2
lea eax, [ebp - 0x804]
push eax
push ebx
mov dword [ebp - 0x808], ebx
mov byte [ebp - 0x804], 0xff
mov byte [ebp - 0x803], 0xfe
call esi
push 0x123
push ebx
call fcn.0100b942
lea eax, [ebp - 0x804]
push 0x10028d4
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call esi
mov ebx, dword [0x1019390]
jmp 0x1011266
cmp dword [ebx], 0
je 0x1011263
lea eax, [ebp - 0x804]
push 0x10028c8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call esi
push 0
lea eax, [ebp - 0x80c]
push eax
push dword [ebx]
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebx]
push dword [ebp - 0x808]
call esi
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x1011206
lea eax, [ebp - 0x804]
push 0x10028b8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call esi
push 0x124
push dword [ebp - 0x808]
call fcn.0100b942
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01011c2a
leave
ret 4
Function at 0x1011d42
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10029f8
call fcn.01011fec
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1011d7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1011d7f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1011d97
cmp eax, 0x20b
je 0x1011d84
mov dword [ebp - 0x1c], ebx
jmp 0x1011dab
cmp dword [ecx + 0x84], 0xe
jbe 0x1011d7f
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1011da5
cmp dword [ecx + 0x74], 0xe
jbe 0x1011d7f
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101d8f4], 0xffffffff
or dword [0x101d8f8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101d8a8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101d8a4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101d8fc], eax
call fcn.010120c4
cmp dword [0x1016480], ebx
jne 0x1011e06
push fcn.010120c4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010120ad
push 0x1016014
push 0x101600c
call sub.msvcrt.dll__initterm
mov eax, dword [0x101d8a0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101d89c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1016008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1011e9c
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1011e70
cmp al, 0x22
jne 0x1011e62
cmp byte [esi], 0x22
jne 0x1011e79
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1011e83
cmp al, 0x20
jbe 0x1011e75
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1011ea7
movzx eax, word [ebp - 0x50]
jmp 0x1011eaa
cmp byte [esi], 0x20
jbe 0x1011e79
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1011e9c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1011ec7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1011efc
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01012027
ret
Function at 0x1013a71
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x101647c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], eax
jne 0x1013aab
test esi, esi
jne 0x1013a98
xor eax, eax
jmp 0x1013b04
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1013b04
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call ebx
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x1013ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1013aed
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x50
pop ecx
lea esi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push dword [ebp - 0x148]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 8

Function at 0x1013b49
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 1
call fcn.010126ab
mov edi, eax
mov al, byte [edi + 1]
cmp al, 0x3a
jne 0x1013b7a
cmp byte [edi + 2], 0x5c
jne 0x1013b7a
push 0x5c
lea eax, [edi + 3]
push eax
jmp 0x1013bb0
cmp byte [edi], 0x5c
jne 0x1013bad
cmp al, 0x5c
jne 0x1013bad
mov esi, dword [sym.imp.msvcrt.dll__mbschr]
lea eax, [edi + 2]
push 0x5c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1013c23
inc eax
push 0x5c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1013c23
push 0x5c
inc eax
push eax
jmp 0x1013bb6
push 0x5c
push edi
mov esi, dword [sym.imp.msvcrt.dll__mbschr]
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x1013c23
push 0
push edi
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1013be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1013bfa
mov dword [ebp - 4], 1
mov byte [ebx], 0x5c
push 0x5c
inc ebx
push ebx
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x1013bc0
jmp 0x1013c1d
push dword [0x101deb8]
call sub.LOG.dll_LogBegin
push edi
push 0x1002b9c
push 0x1002b94
call sub.LOG.dll_LogA
add esp, 0xc
call sub.LOG.dll_LogEnd
cmp dword [ebp - 4], 0
je 0x1013c4d
cmp dword [ebp + 0xc], 0
je 0x1013c4d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1013c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1013c4d
mov dword [ebp - 4], 1
push edi
push 0
call fcn.0101240f
cmp dword [ebp - 4], 0
jne 0x1013c85
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1013c5e
sub edi, ecx
cmp edi, 0xf8
jb 0x1013c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1013c85
push 0xce
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1013c94
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x101647c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1013d7c
push ebx
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll__mbsrchr]
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
je 0x1013ce8
cmp byte [eax + 1], bl
jne 0x1013ce8
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.01013a71
test eax, eax
jne 0x1013d07
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01013b49
cmp dword [ebp + 0xc], 0x104
jb 0x1013d28
push edi
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1013d78
xor eax, eax
jmp 0x1013d7b
lea eax, [ebp - 0x41c]
push eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1013d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1013d24
lea eax, [ebp - 0x41c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1013d53
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, dword [ebp + 0xc]
ja 0x1013d24
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 0xc
Function at 0x40ceb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43d054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x439b88
call fcn.0040f94f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040ee06
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420983
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004207f9

Function at 0x414ddd
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor dword [eax], esi
and edx, edx
add eax, 4
sub esp, 4
mov dword [esp], edx
pop ebx
cmp eax, edi
jne fcn.00414ddd
or edx, ebx
dec edx
dec ebx
ret
Function at 0x4122be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d0a4]
jne 0x4122c8
repz ret
jmp fcn.00415226

Function at 0x41d806
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004174e1
xor ebx, ebx
cmp dword [0x42fbe8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d8db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41d846
xor eax, eax
jmp 0x41d99f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41d83f
push eax
call fcn.0041747e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42fbe8], eax
call esi
push eax
call fcn.0041747e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42fbec], eax
call esi
push eax
call fcn.0041747e
mov dword [0x42fbf0], eax
lea eax, [ebp - 8]
push eax
call fcn.00414843
test eax, eax
pop ecx
pop ecx
je 0x41d8a9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004166c5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d8db
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041747e
cmp eax, ebx
pop ecx
mov dword [0x42fbf8], eax
je 0x41d8db
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041747e
pop ecx
mov dword [0x42fbf4], eax
mov eax, dword [0x42fbf4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41d954
cmp dword [0x42fbf8], esi
je 0x41d954
push eax
call fcn.004174ea
pop ecx
call eax
cmp eax, ebx
je 0x41d921
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42fbf8]
call fcn.004174ea
pop ecx
call eax
test eax, eax
je 0x41d921
test byte [ebp - 0x18], 1
jne 0x41d954
lea eax, [ebp - 0xc]
push eax
call fcn.0041487a
test eax, eax
pop ecx
je 0x41d93c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004166c5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41d94b
or dword [ebp + 0x10], 0x200000
jmp 0x41d985
or dword [ebp + 0x10], 0x40000
jmp 0x41d985
mov eax, dword [0x42fbec]
cmp eax, esi
je 0x41d985
push eax
call fcn.004174ea
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d985
mov eax, dword [0x42fbf0]
cmp eax, esi
je 0x41d985
push dword [ebp - 4]
push eax
call fcn.004174ea
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42fbe8]
call fcn.004174ea
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffb8
sar dword [esi - 0x2aa371e7], cl
invalid
dec ebp
jae 0x415398
nop
sbb eax, 0x1817311a
sti
cmp byte [esi + 0x3c50b90a], al
out dx, al
adc cl, byte [edx]
ljmp 0x479c
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
push edx
pop esi
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
or eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
push eax
pop esi
call sub.KERNEL32.dll_GetLastError
or eax, eax
jne 0x4020e4
test esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x401810
Capabilities:
Hash data with md5

Disassembly:
imul eax, dword [0x45a61c], 0x3b099ac4
push esi
mov esi, ecx
cmp eax, 0xa18230a4
je 0x401836
movzx eax, word [0x47747a]
sub eax, 0x2045520
mov word [0x47747a], ax
mov dword [esi], 0
movzx eax, word [0x473046]
and eax, 0x41220c1
mov word [0x473046], ax
mov dword [esi + 4], 0
mov eax, dword [0x46919c]
add eax, 0x734e13d0
cmp eax, 0xf42a3680
jg 0x401879
mov eax, dword [0x45b364]
or eax, 0x799186b4
sar eax, 2
add dword [0x46c51c], eax
mov dword [esi + 8], 0x67452301
or dword [0x466d5c], 0x931ba342
mov dword [esi + 0xc], 0xefcdab89
imul eax, dword [0x46bd54], 0x74babe7c
mov ecx, dword [0x4652b0]
add eax, 0x2660cb9
imul ecx, eax
mov dword [0x4652b0], ecx
mov dword [esi + 0x10], 0x98badcfe
inc dword [0x45b378]
mov eax, dword [0x45b378]
inc dword [0x4635bc]
mov edx, dword [0x4635bc]
mov ecx, dword [0x469af8]
and edx, 0x68630d79
sub ecx, eax
or ecx, 0x1439ceb7
cmp ecx, edx
jge 0x4018fd
mov eax, dword [0x45d6bc]
add eax, dword [0x45b814]
mov dword [0x45d6bc], eax
dec dword [0x45b814]
jmp 0x401907
add dword [0x4603a8], 0xb2cee9c6
mov dword [esi + 0x14], 0x10325476
mov eax, dword [0x463254]
or eax, 0x5468be72
pop esi
cmp eax, 0xfa3f69a7
je 0x401933
mov eax, dword [0x46ab9c]
shl eax, 5
xor eax, 0x865c097b
and dword [0x46ba10], eax
ret

Function at 0x40181a
Capabilities:
Hash data with md5

Disassembly:
imul eax, dword [0x45a61c], 0x3b099ac4
push esi
mov esi, ecx
cmp eax, 0xa18230a4
je 0x401836
movzx eax, word [0x47747a]
sub eax, 0x2045520
mov word [0x47747a], ax
mov dword [esi], 0
movzx eax, word [0x473046]
and eax, 0x41220c1
mov word [0x473046], ax
mov dword [esi + 4], 0
mov eax, dword [0x46919c]
add eax, 0x734e13d0
cmp eax, 0xf42a3680
jg 0x401879
mov eax, dword [0x45b364]
or eax, 0x799186b4
sar eax, 2
add dword [0x46c51c], eax
mov dword [esi + 8], 0x67452301
or dword [0x466d5c], 0x931ba342
mov dword [esi + 0xc], 0xefcdab89
imul eax, dword [0x46bd54], 0x74babe7c
mov ecx, dword [0x4652b0]
add eax, 0x2660cb9
imul ecx, eax
mov dword [0x4652b0], ecx
mov dword [esi + 0x10], 0x98badcfe
inc dword [0x45b378]
mov eax, dword [0x45b378]
inc dword [0x4635bc]
mov edx, dword [0x4635bc]
mov ecx, dword [0x469af8]
and edx, 0x68630d79
sub ecx, eax
or ecx, 0x1439ceb7
cmp ecx, edx
jge 0x4018fd
mov eax, dword [0x45d6bc]
add eax, dword [0x45b814]
mov dword [0x45d6bc], eax
dec dword [0x45b814]
jmp 0x401907
add dword [0x4603a8], 0xb2cee9c6
mov dword [esi + 0x14], 0x10325476
mov eax, dword [0x463254]
or eax, 0x5468be72
pop esi
cmp eax, 0xfa3f69a7
je 0x401933
mov eax, dword [0x46ab9c]
shl eax, 5
xor eax, 0x865c097b
and dword [0x46ba10], eax
ret