joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a35
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
xor edi, edi
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push edi
push ebx
push edi
push 0x8000002
push edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x402a8d
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x402a86
push ebx
push ebp
call fcn.00402a94
add esp, 8
mov edi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402a94
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
xor ecx, ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
xor edi, edi
lea edx, [esi + 0x80]
cmp dword [edx], 0x4550
jne 0x402b2f
mov ecx, dword [edx + 0x54]
mov eax, dword [edx + 0x3c]
movzx ebp, word [edx + 0x14]
mov dword [esp + 0x10], eax
lea ebx, [ebp + edx + 0x18]
mov ax, word [edx + 6]
test ax, ax
je 0x402af5
movzx ebp, ax
add ebx, 0x14
mov eax, dword [edx + 0xa8]
cmp dword [ebx - 8], eax
jne 0x402aec
cmp dword [ebx], 0
je 0x402aec
cmp dword [ebx - 4], 0
je 0x402aec
mov edi, dword [ebx]
add edi, esi
add ecx, dword [ebx - 4]
add ebx, 0x28
dec ebp
jne 0x402ad2
mov ebx, 0x1c
mov eax, dword [edx + 0xac]
sub edx, edx
div ebx
test eax, eax
je 0x402b2f
test edi, edi
je 0x402b2f
mov edx, dword [esp + 0x1c]
add edx, esi
cmp edx, edi
jbe 0x402b2f
imul eax, ebx
xor ecx, ecx
lea edx, [eax + edi]
mov eax, dword [eax + edi - 4]
add eax, dword [edx - 0xc]
je 0x402b2f
add ecx, dword [esp + 0x10]
cmp eax, ecx
ja 0x402b27
cmp ecx, dword [esp + 0x1c]
jbe 0x402b37
xor ecx, ecx
mov eax, ecx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x402b41
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [esi]
cmp al, 0x22
jne 0x402b89
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [eax]
test al, al
je 0x402b79
cmp al, 0x22
jne 0x402b66
cmp byte [esi], 0x22
jne 0x402b9b
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x402b9b
cmp al, 0x20
jle 0x402b9b
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x20
mov esi, eax
jg 0x402b8d
cmp byte [esi], 0
je 0x402bb3
cmp byte [esi], 0x20
jg 0x402bb3
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
mov esi, eax
jne 0x402ba0
test byte [ebp - 0x18], 1
mov eax, 0xa
je 0x402bc2
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403174
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov dword [0x407ba4], 0x12345678
mov dword [0x407ba8], 0x23456789
mov dword [0x407bac], 0x34567890
push ebp
mov ecx, 0x407d1d
mov ebp, esp
sub esp, 0x10
cmp byte [0x407d1d], 0
push ebx
push esi
push edi
je 0x40324d
mov al, byte [ecx]
inc ecx
xor al, byte [0x407ba4]
movzx eax, al
add eax, eax
movzx edx, word [eax + 0x407200]
movzx eax, word [eax + section..data]
shl edx, 0x10
xor edx, eax
mov eax, dword [0x407ba4]
shr eax, 8
xor edx, eax
mov dword [0x407ba4], edx
movzx dx, dl
movzx eax, dx
add eax, dword [0x407ba8]
shr eax, 0x10
movzx esi, ax
mov eax, dword [0x407ba8]
imul esi, esi, 0x84050000
add ax, dx
movzx eax, ax
imul eax, eax, 0x8088405
add esi, eax
inc esi
mov eax, esi
mov dword [0x407ba8], esi
shr eax, 0x18
xor al, byte [0x407bac]
movzx eax, al
add eax, eax
movzx edx, word [eax + 0x407200]
movzx eax, word [eax + section..data]
shl edx, 0x10
xor edx, eax
mov eax, dword [0x407bac]
shr eax, 8
xor edx, eax
mov dword [0x407bac], edx
cmp byte [ecx], 0
jne 0x4031ad
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push eax
push 0xc
push ecx
push dword [0x407bc4]
call fcn.004016cc
add esp, 0x10
test al, al
jne 0x40334a
mov dx, 0xb
lea esi, [ebp - 0xd]
inc esi
mov edi, dword [0x407bac]
or di, 2
mov cx, di
xor cl, 1
movzx edi, di
movzx ecx, cx
imul ecx, edi
sar ecx, 8
xor cl, byte [esi]
mov byte [esi], cl
mov ebx, dword [0x407ba4]
xor bl, cl
movzx ecx, bl
add ecx, ecx
movzx edi, word [ecx + 0x407200]
movzx ecx, word [ecx + section..data]
shl edi, 0x10
xor edi, ecx
mov ecx, dword [0x407ba4]
shr ecx, 8
xor edi, ecx
mov dword [0x407ba4], edi
movzx di, byte [0x407ba4]
movzx ecx, di
add ecx, dword [0x407ba8]
shr ecx, 0x10
movzx ebx, cx
mov ecx, dword [0x407ba8]
imul ebx, ebx, 0x84050000
add cx, di
movzx ecx, cx
imul ecx, ecx, 0x8088405
add ebx, ecx
inc ebx
mov ecx, ebx
mov dword [0x407ba8], ebx
shr ecx, 0x18
xor cl, byte [0x407bac]
movzx ecx, cl
add ecx, ecx
movzx edi, word [ecx + 0x407200]
movzx ecx, word [ecx + section..data]
shl edi, 0x10
xor edi, ecx
mov ecx, dword [0x407bac]
shr ecx, 8
xor edi, ecx
dec dx
mov dword [0x407bac], edi
jns 0x403274
mov ecx, dword [0x407ba0]
shr ecx, 0x18
cmp cl, byte [ebp - 1]
je 0x40334a
mov al, 0xf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403351
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ecx, dword [esp + 8]
mov ebp, esp
dec ecx
dec word [ebp + 0xc]
push ebx
push esi
js 0x40342e
inc ecx
mov esi, dword [0x407bac]
or si, 2
mov dl, byte [ecx]
mov ax, si
xor al, 1
movzx esi, si
movzx ebx, ax
imul ebx, esi
sar ebx, 8
xor bl, dl
cmp dword [ebp + 0x10], 0
mov byte [ecx], bl
jne 0x40338f
mov dl, bl
mov eax, dword [0x407ba4]
xor al, dl
movzx eax, al
add eax, eax
movzx edx, word [eax + 0x407200]
movzx eax, word [eax + section..data]
shl edx, 0x10
xor edx, eax
mov eax, dword [0x407ba4]
shr eax, 8
xor edx, eax
mov dword [0x407ba4], edx
movzx dx, dl
movzx eax, dx
add eax, dword [0x407ba8]
shr eax, 0x10
movzx esi, ax
mov eax, dword [0x407ba8]
imul esi, esi, 0x84050000
add ax, dx
movzx eax, ax
imul eax, eax, 0x8088405
add esi, eax
inc esi
mov eax, esi
mov dword [0x407ba8], esi
shr eax, 0x18
xor al, byte [0x407bac]
movzx eax, al
add eax, eax
movzx edx, word [eax + 0x407200]
movzx eax, word [eax + section..data]
shl edx, 0x10
xor edx, eax
mov eax, dword [0x407bac]
shr eax, 8
xor edx, eax
dec word [ebp + 0xc]
mov dword [0x407bac], edx
jns 0x403365
pop esi
pop ebx
pop ebp
ret

Function at 0x406820
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x78
push ebx
push esi
push edi
xor esi, esi
cmp dword [0x407734], esi
jne 0x406844
mov dword [0x407734], 1
push 0x2a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
jmp 0x406849
mov eax, dword [0x407738]
mov dword [0x407738], eax
test eax, eax
je 0x4068eb
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x48]
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
push ecx
push 0x3c
push eax
call ebx
mov edi, dword [esp + 0x88]
push 0
push 0
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4068eb
lea ecx, [esp + 0xc]
push ecx
push 0x3c
push eax
call ebx
mov al, byte [esp + 0x5f]
push str.Helv
lea ecx, [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov byte [esp + 0x27], al
push ecx
mov byte [esp + 0x2e], 2
call ebx
test eax, eax
je 0x4068c3
lea eax, [esp + 0x28]
push 0x40773c
push eax
call ebx
test eax, eax
jne 0x4068eb
mov byte [esp + 0x27], 0x22
mov byte [esp + 0x28], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, eax
test esi, esi
je 0x4068eb
push esi
push 0x4067f0
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x78
ret 4
Function at 0x401b00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov word [0x439988], si
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x3f2
jl 0x401b1d
push 0x20
call fcn.00401c60
mov ebx, eax
add esp, 4
cmp ebx, esi
mov dword [esp + 0x14], ebx
jle 0x401c14
cmp esi, 0x19d58
jle 0x401b6c
mov ecx, dword [esp + 0x420]
lea eax, [esp + 0x18]
push 0
push eax
push esi
push 0x405020
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401c37
xor esi, esi
push 1
call fcn.00401c60
add esp, 4
cmp eax, 1
jne 0x401bce
push 0xa
call fcn.00401c60
add esp, 4
mov edi, eax
push 4
call fcn.00401c60
add esp, 4
test ax, ax
jle 0x401bf8
movsx ecx, word [0x439988]
movsx ebx, di
movsx edi, ax
lea edx, [ebx + ecx]
lea ebp, [ecx - 0xe]
and edx, 0x3ff
and ebp, 0x3ff
inc esi
inc ecx
mov dl, byte [esp + edx + 0x1c]
dec edi
mov byte [esi + 0x40501f], dl
mov byte [esp + ebp + 0x1c], dl
jne 0x401ba3
mov ebx, dword [esp + 0x14]
jmp 0x401bf8
push 8
call fcn.00401c60
mov cx, word [0x439988]
add esp, 4
sub ecx, 0xe
mov byte [esi + 0x405020], al
and ecx, 0x3ff
inc esi
mov byte [esp + ecx + 0x1c], al
mov eax, 1
add word [0x439988], ax
movsx edx, ax
mov eax, dword [esp + 0x10]
add eax, edx
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x401b3f
test esi, esi
je 0x401c44
mov ecx, dword [esp + 0x420]
lea eax, [esp + 0x18]
push 0
push eax
push esi
push 0x405020
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401c44
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40c
ret
Function at 0x401d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4396dc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4396d8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4396d4], ecx
shr eax, 0x10
mov dword [0x4396d0], eax
call fcn.00402c20
test eax, eax
jne 0x401daa
push 0x1c
call fcn.00401ee0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402a20
call fcn.00402a10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x439ab0], eax
call fcn.004025e0
mov dword [0x4396b8], eax
test eax, eax
je 0x401ddd
mov eax, dword [0x439ab0]
test eax, eax
jne 0x401de7
push 0xffffffffffffffff
call fcn.00401f40
add esp, 4
call fcn.00402330
call fcn.00402240
call fcn.00401f10
mov esi, dword [0x439ab0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401ec6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401e2e
test al, al
je 0x401e2e
and eax, 0xff
push eax
call fcn.004021e0
add esp, 4
test eax, eax
je 0x401e08
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401e08
cmp byte [esi], 0x22
jne 0x401e37
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401e47
cmp al, 0x20
ja 0x401e47
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401e37
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401e68
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401e6d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401f40
jmp 0x401eab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401e37
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ec6

Function at 0x401f80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x43970c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401f9f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x439708], 1
mov byte [0x439704], bl
jne 0x401ff9
mov ecx, dword [0x439aa8]
test ecx, ecx
je 0x401fe7
mov esi, dword [0x439aa4]
sub esi, 4
cmp esi, ecx
jb 0x401fe7
mov eax, dword [esi]
test eax, eax
je 0x401fe0
call eax
mov ecx, dword [0x439aa8]
sub esi, 4
cmp esi, ecx
jae 0x401fd2
push 0x405014
push 0x405010
call fcn.00402030
add esp, 8
push 0x40501c
push 0x405018
call fcn.00402030
add esp, 8
test ebx, ebx
jne 0x402020
push ebp
mov dword [0x43970c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4025e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x439820]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402622
call edi
mov esi, eax
test esi, esi
je 0x40260c
mov eax, 1
jmp 0x40261d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40272f
mov eax, 2
mov dword [0x439820], eax
cmp eax, 1
jne 0x4026c2
test esi, esi
jne 0x40263b
call edi
mov esi, eax
test esi, esi
je 0x40272f
cmp word [esi], 0
mov eax, esi
je 0x402655
add eax, 2
cmp word [eax], 0
jne 0x402643
add eax, 2
cmp word [eax], 0
jne 0x402643
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4026b4
push edi
call fcn.004030a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4026b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4026a6
push ebx
call fcn.00403050
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40272f
test ebx, ebx
jne 0x4026d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40272f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4026eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004030a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40270d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402e70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4373e0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402e94
add eax, 8
inc ebp
cmp eax, 0x437470
jb 0x402e85
cmp ecx, dword [ebp*8 + 0x4373e0]
jne 0x40303b
mov eax, dword [0x4396c0]
cmp eax, 1
je 0x402ffd
test eax, eax
jne 0x402ec0
cmp dword [0x437238], 1
je 0x402ffd
cmp ecx, 0xfc
je 0x40303b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402efb
mov ecx, 5
mov esi, 0x4042e4
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402f44
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4042e0
add ebx, ecx
push ebx
call fcn.00403900
add esp, 0xc
mov ecx, 6
mov esi, 0x4042c4
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4042c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404298
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4373e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403870
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4399a0]
test eax, eax
je 0x40300e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403018
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4373e4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x402fac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x462020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403044
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403024
xor eax, eax
push ebp
push 0x40301d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403060
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403024
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x462020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x462020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x464048], 0
je 0x403d69
cmp word [0x46421c], 0xd7b2
jne 0x403d31
cmp dword [0x464224], 0
jbe 0x403d31
mov eax, 0x464218
call dword [0x464234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46206c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462030], 0
jne 0x403d85
push 0
push 0x462064
push 0x46206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405aba
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405aa4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ac1
lea eax, [ebp - 0x10]
call fcn.00403e84
ret

Function at 0x40ac1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ac55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f74
jmp 0x40ac5e
mov eax, ebx
mov edx, esi
call fcn.00403ed8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ac68
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ac89
mov al, byte [esp]
jmp 0x40ac8b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b310
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b188
mov eax, dword [0x4631f8]
cmp byte [eax], 0
je 0x40b38c
mov eax, dword [0x462ffc]
call fcn.004029dc
call fcn.0040283c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408404
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b3d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x462fa4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x464664]
call fcn.00404f68
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret