joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021a6
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, 0x105
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x20a
push 8
push eax
mov dword [esp + 0x18], eax
call ebp
mov esi, eax
test esi, esi
jne 0x10021f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
push 0x56
push 0x1001250
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1002270
push ebx
push edi
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp ebx, edi
jbe 0x1002258
push esi
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea edi, [ebx + 1]
lea eax, [edi + edi]
push eax
push 8
push dword [esp + 0x18]
call ebp
mov esi, eax
test esi, esi
jne 0x100224a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
push 0x65
push 0x1001250
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100226f
push edi
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x1002260
cmp ebx, edi
jbe 0x100226f
push esi
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 4

Function at 0x10022f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28dc
call fcn.01002fd0
mov eax, dword [0x1004004]
and dword [ebp - 4], 0
test eax, eax
je 0x10023d5
cmp eax, 0xffffffff
je 0x10023d5
cmp dword [ebp + 8], 2
jne 0x10023d9
push 0x3ff
lea eax, [ebp - 0x814]
push eax
push 0x1036
push dword [0x1004018]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jg 0x1002357
lea eax, [ebp - 0x814]
push 0x1001430
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 2
push 0
push 0
push dword [0x1004004]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [ebp + 0xc]
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x28dc]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x24
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28dc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x28dc]
push eax
push dword [0x1004004]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret 8
cmp dword [ebp + 8], 1
jne 0x10023d5
push 0x3ff
lea eax, [ebp - 0x814]
push eax
push 0x1037
jmp 0x1002333
Function at 0x10026b2
Capabilities:
Get disk information via ioctl
Write file on windows

Disassembly:
push ebp
mov eax, 0x184a0
lea ebp, [esp - 0x74]
call fcn.01002fd0
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x80
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
xor esi, esi
mov ecx, 0x6080
lea edi, [ebp - 0x1842c]
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x6c], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x68], eax
mov eax, 0x270
push eax
push 8
push dword [ebp + 0x68]
mov dword [ebp + 0x64], eax
call edi
mov ebx, eax
cmp ebx, esi
jne 0x1002719
mov dword [ebp + 0x70], 8
jmp 0x1002863
push esi
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x64]
push ebx
push esi
push esi
push 0x70050
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, esi
jne 0x1002783
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
push dword [ebp + 0x68]
mov dword [ebp + 0x70], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x70], 0xea
je 0x100275d
cmp dword [ebp + 0x70], 0x7a
jne 0x1002863
add dword [ebp + 0x64], 0x240
push dword [ebp + 0x64]
mov dword [ebp + 0x70], esi
push 8
push dword [ebp + 0x68]
call edi
mov ebx, eax
cmp ebx, esi
jne 0x1002719
mov dword [ebp + 0x70], 8
jmp 0x1002854
cmp dword [ebx], esi
jne 0x1002854
mov eax, dword [ebx + 4]
xor edx, edx
cmp eax, esi
jbe 0x1002854
lea ecx, [ebx + 0x50]
cmp byte [ecx], 0x42
je 0x10027b0
inc edx
add ecx, 0x90
cmp edx, eax
jb 0x100279b
jmp 0x1002854
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push 0xc00
push dword [ebp + 0x7c]
call edi
cmp eax, 0xffffffff
mov dword [ebp + 0x6c], eax
jne 0x10027d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10027ee
push esi
lea eax, [ebp + 0x6c]
push eax
push 0x200
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp + 0x6c]
push eax
push 0x90
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70048
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1002854
add dword [ebp - 0x1c], 0xfffe7e00
push esi
lea eax, [ebp - 0x18]
adc dword [ebp - 0x18], 0xffffffff
push eax
push dword [ebp - 0x1c]
push dword [ebp + 0x7c]
call edi
cmp eax, 0xffffffff
mov dword [ebp + 0x6c], eax
jne 0x100283a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1002854
push esi
lea eax, [ebp + 0x6c]
push eax
push 0x18200
lea eax, [ebp - 0x1842c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, esi
je 0x1002863
push ebx
push esi
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
cmp dword [ebp + 0x70], esi
pop edi
pop esi
sete al
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x1002a12
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0xf
lea eax, [ebp - 0x20]
push eax
push 0x1001820
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1002a48
push 0xf
lea eax, [ebp - 0x20]
push 0x1001804
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x1002a48
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x1002e51
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10018b0
call fcn.01003030
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002e8c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002e8c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002ea4
cmp eax, 0x20b
je 0x1002e91
mov dword [ebp - 0x1c], edi
jmp 0x1002eb8
cmp dword [ecx + 0x84], 0xe
jbe 0x1002e8c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002eb2
cmp dword [ecx + 0x74], 0xe
jbe 0x1002e8c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004020], 0xffffffff
or dword [0x1004024], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1004014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004028], eax
call fcn.0100302c
cmp dword [section..data], edi
jne 0x1002f13
push fcn.0100302c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100301a
push 0x1001138
push 0x1001134
call sub.msvcrt.dll__initterm
mov eax, dword [0x100400c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1004008]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x1001130
push 0x100112c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010018e0
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002f8a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002fbf
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003069
ret
Function at 0x401034
Capabilities:
Get common file path
Get disk information

Disassembly:
push edi
sub esp, 0x200
mov edi, esp
push 0x7c
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea ecx, [edi + 0x7c]
xor edx, edx
push edx
push edx
push edx
push ecx
push edx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x337a7471
stosd dword es:[edi], eax
mov eax, 0x6c642e32
stosd dword es:[edi], eax
mov eax, 0x6c
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 0
jg 0x40107c
ret
pushal
jmp fcn.004012f0

Function at 0x401470
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
lea edi, [ecx + 0x9c]
push esi
mov ecx, esp
push ecx
mov eax, 0x2b
push eax
add dword [esp], 0x15
push 0xfffffe70
add dword [esp], 0xaec
mov esi, section..data
push esi
xor ecx, ecx
add ecx, sym.imp.KERNEL32.dll_VirtualProtect
call dword [ecx]
pop ebx
mov esi, 0x403400
mov dword [edi + 0x48], esi
lea edx, [esi - 0x161]
push 0x4020f9
pop ecx
xor eax, eax
mov ebx, dword [ecx]
add ecx, 3
inc ecx
mov dword [edx + 0x161], ebx
add edx, 4
xor dword [edx + 0x15d], 0xa6907e21
sub dword [edx + 0x15d], 0x4eac6723
add eax, 4
cmp eax, 0x55c
jne 0x4014ba
push 0
call sub.KERNEL32.dll_ResetEvent
pop ebp
ret 8
Function at 0x100282d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x1001178
call fcn.010036d4
mov edi, 0x94
mov eax, edi
call fcn.01003720
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10078d4], ecx
mov eax, dword [esi + 4]
mov dword [0x10078e0], eax
mov edx, dword [esi + 8]
mov dword [0x10078e4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10078d8], esi
cmp ecx, 2
je 0x100288d
or esi, 0x8000
mov dword [0x10078d8], esi
shl eax, 8
add eax, edx
mov dword [0x10078dc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10028c8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10028c8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10028e0
cmp eax, 0x20b
je 0x10028cd
mov dword [ebp - 0x1c], esi
jmp 0x10028f4
cmp dword [ecx + 0x84], 0xe
jbe 0x10028c8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x10028ee
cmp dword [ecx + 0x74], 0xe
jbe 0x10028c8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.01003682
pop ecx
test eax, eax
jne 0x1002908
push 0x1c
call fcn.01002809
pop ecx
call fcn.010035f9
test eax, eax
jne 0x1002919
push 0x10
call fcn.01002809
pop ecx
mov dword [ebp - 4], esi
call fcn.0100336c
test eax, eax
jge 0x100292d
push 0x1b
call fcn.010027e4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1008094], eax
call fcn.01003246
mov dword [0x10078c4], eax
call fcn.010031a4
test eax, eax
jge 0x1002953
push 8
call fcn.010027e4
pop ecx
call fcn.01002f58
test eax, eax
jge 0x1002964
push 9
call fcn.010027e4
pop ecx
call fcn.01002a2a
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1002977
push eax
call fcn.010027e4
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01002eef
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x1002998
movzx eax, word [ebp - 0x34]
jmp 0x100299b
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01002780
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x10029b9
push edi
call fcn.01002b49
call fcn.01002b6b
jmp 0x10029eb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0100370d
ret
Function at 0x1002b89
Capabilities:
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1007008]
je 0x1002ba9
inc eax
cmp eax, 0x12
jb 0x1002b9a
shl eax, 3
cmp edx, dword [eax + 0x1007008]
mov dword [ebp + 8], eax
jne 0x1002d47
mov ecx, dword [0x10078cc]
cmp ecx, 1
je 0x1002d1c
test ecx, ecx
jne 0x1002bdb
cmp dword [0x1007004], 1
je 0x1002d1c
cmp edx, 0xfc
je 0x1002d47
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002c16
push 5
pop ecx
mov esi, 0x10014ec
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c25
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002c5d
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c3d
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10014e8
push ebx
call fcn.010039b0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c62
sub eax, edx
push eax
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100700c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002c79
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01003720
mov edx, esp
push 6
pop ecx
mov esi, 0x10014cc
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ca5
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002cb1
push eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002cca
mov eax, dword [ebp + 8]
mov esi, 0x10014c8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100700c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ce5
push edx
pop edi
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002cf1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
push eax
pop ecx
and ecx, 3
push 0x10014a0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010038b6
add esp, 0xc
jmp 0x1002d47
mov ecx, dword [eax + 0x100700c]
push ecx
pop eax
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002d27
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003246
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x1007a28]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x100328f
call edi
push eax
pop esi
cmp esi, ebx
je 0x1003276
mov dword [0x1007a28], 1
jmp 0x1003294
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100328a
mov eax, ebp
mov dword [0x1007a28], eax
jmp 0x100328f
mov eax, dword [0x1007a28]
cmp eax, 1
jne 0x100330f
cmp esi, ebx
jne 0x10032a0
call edi
mov esi, eax
cmp esi, ebx
je 0x1003317
cmp word [esi], bx
mov eax, esi
je 0x10032b5
add eax, ebp
cmp word [eax], bx
jne 0x10032a7
add eax, ebp
cmp word [eax], bx
jne 0x10032a7
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
push eax
pop ebp
cmp ebp, ebx
je 0x1003306
push ebp
call fcn.010040ca
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x1003306
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x1003302
push dword [esp + 0x10]
call fcn.01003fb2
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1003363
cmp eax, ebp
je 0x100331b
cmp eax, ebx
je 0x100331b
xor eax, eax
jmp 0x1003365
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push eax
pop ebp
cmp ebp, ebx
je 0x1003317
cmp byte [ebp], bl
je 0x1003336
inc eax
cmp byte [eax], bl
jne 0x100332c
inc eax
cmp byte [eax], bl
jne 0x100332c
sub eax, ebp
inc eax
push eax
pop esi
push esi
call fcn.010040ca
cmp eax, ebx
pop ecx
je 0x100335c
push esi
pop ecx
push ecx
pop edx
shr ecx, 2
mov esi, ebp
push eax
pop edi
rep movsd dword es:[edi], dword [esi]
push edx
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x10038b6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1007b80], ebx
push esi
push edi
jne 0x1003936
push 0x1001568
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003971
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100155c
push edi
call esi
or eax, eax
mov dword [0x1007b80], eax
je 0x1003971
push 0x100154c
push edi
call esi
push 0x1001538
push edi
mov dword [0x1007b84], eax
call esi
cmp dword [0x10078d4], 2
mov dword [0x1007b88], eax
jne 0x1003936
push 0x100151c
push edi
call esi
or eax, eax
mov dword [0x1007b90], eax
je 0x1003936
push 0x1001504
push edi
call esi
mov dword [0x1007b8c], eax
mov eax, dword [0x1007b8c]
or eax, eax
je 0x100397b
call eax
or eax, eax
je 0x1003962
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1007b90]
or eax, eax
je 0x1003962
test byte [ebp - 8], 1
jne 0x100397b
cmp dword [0x10078e0], 4
jb 0x1003975
or byte [ebp + 0x12], 0x20
jmp 0x100399a
sub eax, eax
jmp 0x10039aa
or byte [ebp + 0x12], 4
jmp 0x100399a
mov eax, dword [0x1007b84]
test eax, eax
je 0x100399a
call eax
mov ebx, eax
or ebx, ebx
je 0x100399a
mov eax, dword [0x1007b88]
test eax, eax
je 0x100399a
push ebx
call eax
push eax
pop ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1007b80]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404870
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40494f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.pu2Open
push ebx
mov dword [edi + 4], ebx
call esi
push str.pu2Close
push ebx
mov dword [edi + 8], eax
call esi
push str.pu2SetIF
push ebx
mov dword [edi + 0xc], eax
call esi
push str.pu2SetIP
push ebx
mov dword [edi + 0x10], eax
call esi
push str.pu2SetPrinterName
push ebx
mov dword [edi + 0x14], eax
call esi
push str.pu2SetUrl
push ebx
mov dword [edi + 0x18], eax
call esi
push str.pu2SetTimeout
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.pu2SetMasterPortOption
push ebx
mov dword [edi + 0x20], eax
call esi
push str.pu2Write
push ebx
mov dword [edi + 0x24], eax
call esi
push str.pu2Read
push ebx
mov dword [edi + 0x28], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0x2c], eax
pop esi
je 0x404948
cmp dword [edi + 0xc], 0
je 0x404948
cmp dword [edi + 0x10], 0
je 0x404948
cmp dword [edi + 0x14], 0
je 0x404948
cmp dword [edi + 0x18], 0
je 0x404948
cmp dword [edi + 0x1c], 0
je 0x404948
cmp dword [edi + 0x20], 0
je 0x404948
cmp dword [edi + 0x24], 0
je 0x404948
cmp dword [edi + 0x28], 0
je 0x404948
test eax, eax
je 0x404948
pop edi
mov eax, 1
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.00404960
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x405ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x590578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00519270
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00519270
add esp, 0x18
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push 0x5998c0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x438], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405bea
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x43c]
push eax
push 0
push 0x59b168
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x434]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405bea
cmp dword [ebp - 0x438], esi
je 0x405bea
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 5
lea eax, [ebp - 0x10]
push eax
push str.yyMM
lea eax, [ebp - 0x430]
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [ebp - 0x10]
push eax
push 0x599490
push str._s_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00405a40
add esp, 0x14
test eax, eax
js 0x405bea
push esi
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x405bea
push str.WriteAppInfoW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405bfb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
cmp dword [0x5998b0], 0
push edi
lea ecx, [ebp - 0x218]
je 0x405c12
push str._Application_Name_UserRegistration___UserRegist_SolutionMenu__UserRegist___Application_
jmp 0x405c17
push str._Application_Name_UserRegistration___UserRegist_Desktop__UserRegist___Application_
push str.MasterSetup
push ecx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
pop edi
je 0x405bea
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005175f7
mov esp, ebp
pop ebp
ret
Function at 0x405cc0
Capabilities:
Check os version
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd30
mov eax, dword [0x590578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x114
lea eax, [ebp - 0xd28]
push 0
push eax
mov dword [ebp - 0xd30], 0x400
mov dword [ebp - 0xd2c], 0
call fcn.00519270
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.00519270
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00519270
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00519270
add esp, 0x30
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x405dec
lea eax, [ebp - 0xd28]
push eax
mov dword [ebp - 0xd28], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xd24], 6
jb 0x405e54
push str.GetThreadPreferredUILanguages
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405dec
lea ecx, [ebp - 0xd30]
push ecx
lea ecx, [ebp - 0xc14]
push ecx
lea ecx, [ebp - 0xd2c]
push ecx
push 4
call eax
test eax, eax
je 0x405dec
xor edi, edi
lea esi, [ebp - 0xc14]
cmp dword [ebp - 0xd2c], edi
jbe 0x405dec
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi], 0
je 0x405dec
push 0x10
push 0
push esi
call fcn.00518671
movzx edx, ax
add esp, 0xc
mov ecx, edx
call fcn.00405c50
test eax, eax
jne 0x405e68
push esi
call ebx
lea esi, [esi + eax*2]
inc edi
add esi, 2
cmp edi, dword [ebp - 0xd2c]
jb 0x405db5
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x59b124]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x5705c8
push str.CDTYPE
push str.INFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
mov eax, 0x409
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edx, ax
mov ecx, edx
call fcn.00405c50
test eax, eax
je 0x405dec
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov ax, dx
pop ebx
call fcn.005175f7
mov esp, ebp
pop ebp
ret