joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479168
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov edx, 0x104
xor ecx, ecx
mov eax, dword [edi + 4]
cmp eax, edx
ja 0x479311
je 0x47933b
cmp eax, 0xa1
jb 0x47937e
cmp eax, 0xa2
jbe 0x47933b
cmp eax, 0xa3
jbe 0x47937e
cmp eax, 0xa5
jbe 0x47933b
cmp eax, 0xa6
jbe 0x47937e
cmp eax, 0xa8
jbe 0x47933b
cmp eax, 0x100
jne 0x47937e
cmp dword [esi + 0xc0], 0xffffffff
je 0x47933b
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x479339
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x479299
sub eax, 1
jne 0x479339
mov ecx, dword [esi + 0xc0]
mov eax, dword [esi + 0xbc]
add eax, ecx
lea edi, [ecx + 1]
jmp 0x47924c
mov eax, edi
cdq
idiv dword [esi + 0xbc]
mov eax, dword [esi]
mov ecx, edx
mov dword [ebp + 8], ecx
push ecx
mov ecx, esi
call dword [eax + 0x27c]
test eax, eax
jne 0x479252
mov eax, dword [esi + 0xbc]
inc edi
add eax, dword [esi + 0xc0]
cmp edi, eax
jl 0x479222
jmp 0x479291
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x24c], 1
call dword [eax + 0x214]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x210]
mov ecx, eax
call fcn.00417241
mov edx, dword [esi]
mov ecx, esi
push dword [esi + 0xc0]
call dword [edx + 0x270]
and dword [esi + 0x24c], 0
xor eax, eax
inc eax
jmp 0x4793a4
mov ecx, dword [esi + 0xc0]
lea edi, [ecx - 1]
add edi, dword [esi + 0xbc]
cmp edi, ecx
jle 0x479291
mov eax, edi
cdq
idiv dword [esi + 0xbc]
mov eax, dword [esi]
mov ecx, edx
mov dword [ebp + 8], ecx
push ecx
mov ecx, esi
call dword [eax + 0x27c]
test eax, eax
jne 0x4792d4
dec edi
cmp edi, dword [esi + 0xc0]
jg 0x4792ac
jmp 0x479291
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x24c], 1
call dword [eax + 0x214]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x210]
mov ecx, eax
call fcn.00417241
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0xc0]
call dword [eax + 0x270]
jmp 0x47928a
cmp eax, 0x200
jb 0x47937e
cmp eax, 0x202
jbe 0x47933b
cmp eax, 0x203
jbe 0x47937e
cmp eax, 0x205
jbe 0x47933b
add eax, 0xfffffdf9
cmp eax, 1
ja 0x47937e
jmp 0x47933b
xor ecx, ecx
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x47935b
cmp dword [eax + 0x20], 0
je 0x47935b
push edi
push ecx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x47937c
cmp dword [eax + 0x20], 0
je 0x47937c
push edi
push 0
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
cmp dword [edi + 4], 0x203
jne 0x47939c
lea eax, [esi + 0x2250]
test eax, eax
je 0x479394
mov ecx, dword [eax + 0x20]
cmp dword [edi], ecx
je 0x479291
push edi
mov ecx, esi
call fcn.00471c1b
pop edi
pop esi
pop ebp
ret 4
Function at 0x48b08b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5b6e64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00416e04
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x21
call esi
push 0x20
mov ebx, eax
call esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.004111ac
mov edi, dword [ebp - 0x18]
mov esi, eax
test edi, 0x1000
je 0x48b103
cmp esi, 3
jne 0x48b0f2
push 2
pop esi
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x48b103
xor eax, eax
jmp 0x48b158
cmp esi, 0xa
jl 0x48b10d
cmp esi, 0x11
jle 0x48b112
cmp esi, 4
jne 0x48b156
test edi, 0x800
je 0x48b11f
push 2
pop eax
jmp 0x48b158
mov eax, dword [ebp - 0x1c]
neg ebx
push ebx
neg eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test edi, 0x200
je 0x48b156
mov eax, esi
sub eax, 4
je 0x48b1a3
sub eax, 9
je 0x48b18f
sub eax, 1
je 0x48b17f
dec eax
sub eax, 1
je 0x48b16b
sub eax, 1
je 0x48b1a3
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00537a6f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setle al
dec eax
and eax, 5
add eax, 0xa
jmp 0x48b158
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
add eax, 0xb
jmp 0x48b158
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
lea eax, [eax*2 + 0xa]
jmp 0x48b158
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setg al
lea eax, [eax*4 + 0xb]
jmp 0x48b158
Function at 0x493c0f
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x55c4c3
call fcn.00538597
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
call fcn.0046761b
test eax, eax
je 0x493db0
lea ecx, [ebp - 0x1c]
xor edi, edi
push ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], edi
push ecx
lea ecx, [ebx + 4]
call fcn.004688f9
test eax, eax
je 0x493c52
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004176b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00403130
mov esi, 0x104
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00402da0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00404880
call fcn.004176b0
push eax
lea ecx, [ebp - 0x14]
call fcn.00403130
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402da0
mov esi, dword [ebp - 0x18]
push eax
push edi
push 0x574f54
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00404880
push edi
push 0x4000100
push 2
push edi
push edi
mov edi, dword [ebp - 0x14]
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x493cea
lea ecx, [edi - 0x10]
call fcn.00403160
lea ecx, [esi - 0x10]
jmp 0x493dab
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004346a6
push 0
push 0x1000
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.0042f23a
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
mov dword [ebx + 0x20], 1
push edx
mov byte [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x88]
call fcn.0042f667
and dword [ebx + 0x20], 0
lea ecx, [ebp - 0x88]
call fcn.0042f34a
lea ecx, [ebp - 0x40]
call fcn.0043475b
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebx + 4]
call fcn.0049390a
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
lea ecx, [edi - 0x10]
call fcn.00403160
lea ecx, [esi - 0x10]
call fcn.00403160
xor eax, eax
inc eax
jmp 0x493db2
call fcn.00403160
xor eax, eax
call fcn.005384f5
ret 8
Function at 0x4e01ae
Capabilities:
Get file system object information

Disassembly:
push 0x270
mov eax, 0x55fff1
call fcn.00538560
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403010
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x5949d8
call fcn.00402970
cmp eax, 0xffffffff
jne 0x4e0293
push 0
push 0x594c2c
lea ecx, [ebp - 0x278]
call fcn.00402970
cmp eax, 0xffffffff
jne 0x4e0293
push 0
push 0x567318
lea ecx, [ebp - 0x278]
call fcn.00402970
cmp eax, 0xffffffff
jne 0x4e0293
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403010
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x27c], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x114]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4e026f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00403160
jmp 0x4e02c2
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.00402f20
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00403160
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4e02b9
mov ebx, dword [ebp - 0x274]
jmp 0x4e02c2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00403160
mov eax, ebx
call fcn.0053850a
ret
Function at 0x4eccdd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x1b8]
test al, al
jns 0x4eccfc
or ecx, 0xffffffff
jmp 0x4ecd02
mov ecx, dword [0x5b67a4]
mov eax, dword [esi]
lea edx, [ebp - 4]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x2b4]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x5b6a3c
call fcn.00429ca4
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4ecda6
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4ecda6
test edi, edi
je 0x4ecd57
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x228]
push eax
push 0x5b67f0
call fcn.00429ca4
pop ecx
pop ecx
mov ebx, eax
jmp 0x4ecd59
xor ebx, ebx
mov eax, dword [ebp - 8]
cmp eax, 2
jne 0x4ecdb1
test ebx, ebx
je 0x4ecd92
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c0]
test al, 0x40
je 0x4ecda6
cmp dword [ebp - 4], 0
je 0x4ecd92
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x24c]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x4ecda8
mov eax, dword [esi]
mov ecx, esi
push 5
push 0
push edi
call dword [eax + 0x1f8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x4ecda6
test edi, edi
je 0x4ecda6
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x184]
test eax, eax
je 0x4ecda6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18c]
test eax, eax
je 0x4ecda6
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x240]
mov eax, dword [esi]
mov ecx, esi
push 0
push 1
push 5
push edi
call dword [eax + 0x34c]
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], edx
jmp 0x4ecda8
Function at 0x4eeb84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
mov edx, dword [0x5c130c]
push ebx
push esi
push edi
mov edx, dword [eax + edx*4]
mov ebx, ecx
mov eax, dword [0x5c01e4]
cmp eax, dword [edx + 4]
jle 0x4eebdf
mov esi, 0x5c01e4
push esi
call fcn.005381bc
cmp dword [0x5c01e4], 0xffffffff
pop ecx
jne 0x4eebdf
call fcn.004176b0
push eax
mov ecx, 0x5c01e0
call fcn.00403130
push 0x564407
call fcn.00537d07
push esi
call fcn.0053817d
pop ecx
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4eec81
mov eax, dword [ebx + 0x34c]
test eax, eax
je 0x4eec78
cmp dword [eax + 0x20], 0
je 0x4eec78
test eax, eax
je 0x4eec05
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4eec78
mov eax, dword [edi + 4]
sub eax, 1
je 0x4eec4c
sub eax, 1
je 0x4eec22
sub eax, 1
jne 0x4eec78
mov esi, 0x428e
jmp 0x4eec51
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4eec51
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x340]
test eax, eax
je 0x4eec51
add esi, 3
jmp 0x4eec51
mov esi, 0x3ea0
push esi
call fcn.00419d3b
test eax, eax
je 0x4eec81
push esi
push eax
mov ecx, 0x5c01e0
call fcn.004049b0
test eax, eax
je 0x4eec81
mov eax, dword [0x5c01e0]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4eec7a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
call fcn.0041825b
int3
Function at 0x513da0
Capabilities:
Get common file path

Disassembly:
push 0x124
mov eax, 0x56260a
call fcn.00538560
mov ebx, ecx
mov dword [ebp - 0x12c], ebx
call fcn.00523654
push 0x1c4
call fcn.0040de30
pop ecx
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
test eax, eax
je 0x513de3
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.00523c65
jmp 0x513de5
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.00522a9e
call fcn.0041c602
mov esi, 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x8c]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.005420b0
mov edi, eax
pop ecx
mov byte [ebp + edi - 0x114], 0x5c
inc edi
cmp edi, esi
jae 0x514002
xor eax, eax
mov byte [ebp + edi - 0x114], 0
mov dword [ebp - 0x128], eax
test ebx, ebx
je 0x513ffc
xor esi, esi
mov dword [ebp - 0x124], esi
cmp dword [ebx + 4], eax
jle 0x513ffc
call fcn.004176b0
push eax
lea ecx, [ebp - 0x118]
call fcn.00403130
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x114]
push edi
push ecx
push esi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x513fda
push 0x571f2c
mov esi, 0x571f30
lea ecx, [ebp - 0x118]
push esi
call fcn.0040bc70
push esi
push 0x5942c8
lea ecx, [ebp - 0x118]
call fcn.0040bc70
push esi
push 0x571f2c
lea ecx, [ebp - 0x118]
call fcn.0040bc70
call fcn.004176b0
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403130
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x513f06
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push str.10__Ts
push eax
call fcn.00404c80
add esp, 0xc
jmp 0x513f38
jge 0x513f26
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__Ts
push eax
call fcn.00404c80
add esp, 0x10
jmp 0x513f38
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00402ba0
push 0x1c4
call fcn.0040de30
pop ecx
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x513f62
mov ecx, eax
call fcn.004c828c
mov ecx, eax
mov dword [ebp - 0x120], eax
jmp 0x513f6a
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x11c]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
add eax, 0xe110
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push dword [ebp - 0x124]
mov ecx, ebx
call fcn.0041e31a
mov ecx, dword [ebp - 0x120]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.00522a9e
inc dword [ebp - 0x128]
lea ecx, [esi - 0x10]
call fcn.00403160
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00403160
inc esi
mov dword [ebp - 0x124], esi
cmp esi, dword [ebx + 4]
jl 0x513e5b
call fcn.0053850a
ret
call fcn.00537e3f
int3

Function at 0x551410
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005510d0
Function at 0x40375c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403785
cmp al, 0x22
je 0x40377d
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403771
cmp byte [esi], 0x22
jne 0x40378f
inc esi
jmp 0x40378f
cmp al, 0x20
jle 0x40378f
inc esi
cmp byte [esi], 0x20
jg 0x403789
mov al, byte [esi]
test al, al
je 0x403799
cmp al, 0x20
jle 0x403782
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00403807
push 0x405004
push section..data
call fcn.004037ed
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4037c9
movzx eax, word [ebp - 0x14]
jmp 0x4037cc
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040381f
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x404070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40b0f9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x412018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esp + 8]
push eax
mov dword [esp + 0x34], 0
call fcn.00404380
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
lea eax, [esp + 8]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409fac
add esp, 0x2c
ret
Function at 0x406fa0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
test edi, edi
je 0x4070ff
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, ecx
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x406fea
sub ecx, 2
jne 0x406fed
add eax, 2
jmp 0x406fed
add eax, 3
inc eax
cmp dword [ebx], eax
jge 0x406ffe
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0xfffffff0
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
push ebp
test eax, eax
jle 0x40709c
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [esp + 0x10], eax
movzx eax, byte [esi]
movzx ebp, byte [esi + 1]
mov ebx, eax
sar ebx, 2
inc esi
movzx edi, byte [esi + 1]
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc esi
shl eax, 4
mov ebx, ebp
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edi
sar eax, 6
lea eax, [eax + ebp*4]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
and edi, 0x3f
movzx eax, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc esi
inc ecx
sub edx, 1
jne 0x407032
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
cmp edx, edi
jge 0x4070f3
movzx eax, byte [esi]
lea ebp, [edx + 1]
cmp ebp, edi
jge 0x4070b0
movzx esi, byte [esi + 1]
jmp 0x4070b2
xor esi, esi
mov edx, eax
sar edx, 2
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov edx, esi
sar edx, 4
shl eax, 4
add edx, eax
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp ebp, edi
jge 0x4070eb
and esi, 0xf
mov dl, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4070ee
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, ecx
sub eax, dword [esp + 0x18]
pop ebp
mov dword [ebx], eax
mov byte [ecx], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x407740
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2834
call fcn.0040a990
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x282c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor edi, edi
xor ebp, ebp
push ebp
lea eax, [esp + 0x2c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407858
xor eax, eax
push 0x2710
lea edx, [esp + 0x12c]
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x134]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407851
cmp dword [esp + 0x144], 7
je 0x407851
mov edx, dword [esp + 0x140]
xor ecx, ecx
cmp edx, 0x2710
mov eax, edx
jge 0x40784c
jmp 0x407810
cmp byte [esp + eax + 0x128], bl
je 0x407822
inc eax
inc ecx
cmp eax, 0x2710
jl 0x407810
cmp ecx, 0x14
jne 0x40784c
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
push ecx
lea ebx, [esp + edx + 0x148]
xor ecx, ecx
call fcn.00407390
add esp, 4
call fcn.00407260
add esp, 0x1c
xor ebx, ebx
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
cmp ebp, 0x10
jl 0x407762
mov ecx, dword [esp + 0x283c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409fac
add esp, 0x2834
ret

Function at 0x409fac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x409fb6
repz ret
jmp fcn.0040a4ad