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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1005a288]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002f10c
cmp word [ebx], dx
jne 0x1002f10c
or byte [eax + edi + 0x28], 4
jmp 0x1002f111
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1002f274
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1002f254
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002f152
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002f188
cmp eax, edx
jae 0x1002f196
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1002f12d
jmp 0x1002f274
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002f24f
cmp dword [ebp - 0x18], 0
je 0x1002f24f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1005a288]
test byte [eax + edi + 0x28], 0x48
je 0x1002f225
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1002f1e9
mov word [esi], cx
jmp 0x1002f220
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1005a288]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1005a288]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1005a288]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1002f274
pop eax
cmp word [ebp - 4], ax
jne 0x1002f235
cmp esi, ebx
jne 0x1002f235
mov word [esi], ax
jmp 0x1002f271
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003024c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002f274
push 0xd
pop eax
jmp 0x1002f230
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1005a288]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002f26e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1002f274
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10035c7e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10059014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x10035cc9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1003611e
test al, al
jne 0x10035cc3
sub edx, 2
cmp edx, edi
jne 0x10035ca9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10035ceb
lea eax, [edi + 2]
cmp edx, eax
je 0x10035ceb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10035945
add esp, 0x10
jmp 0x10035de5
push esi
lea ecx, [ebp - 0x255]
call fcn.1003611e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10035d2e
push dword [ebp - 0x25c]
jmp 0x10035cdb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x10035d6b
cmp word [ebp - 0x226], 0
je 0x10035d8c
cmp word [ebp - 0x226], ax
jne 0x10035d6b
cmp word [ebp - 0x224], 0
je 0x10035d8c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10035945
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10035dd8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10035d45
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10035dc0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10035de5
push 0x10035395
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10042d20
add esp, 0x10
jmp 0x10035db5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002959
leave
ret
Function at 0x100377b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10037853
push ebx
push esi
call fcn.10037772
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100376af
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10037800
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10037852
push edi
push eax
call fcn.10032cb2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10037820
call fcn.1002cad1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10037851
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100376af
add esp, 0x20
test eax, eax
jne 0x1003783f
push edi
call fcn.1002cad1
jmp 0x10037847
push ebx
call fcn.1002cad1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10037856
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10037867
pop esi
ret
push ebx
push edi
push esi
call fcn.10037772
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10032cb2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003788f
push ebx
push esi
push edi
call fcn.1000b170
add esp, 0xc
push 0
call fcn.1002cad1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1003817e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10037b04
Function at 0x1003df56
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10030a8e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003dfc5
cmp esi, dword [ebp - 4]
je 0x1003dfc0
cmp dword [ebp + 0xc], 0
je 0x1003dfc0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003df9d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003daa8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1003dfc7
xor eax, eax
inc eax
jmp 0x1003dfc7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1003e02c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10059014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10030a8e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10030a8e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1003e0a3
cmp word [ecx], dx
je 0x1003e0a3
mov eax, dword [0x10054544]
push edi
dec eax
push eax
push 0x10054430
call fcn.1003dfcb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003e116
cmp word [eax], dx
je 0x1003e116
mov eax, dword [edi]
test eax, eax
je 0x1003e0c7
cmp word [eax], dx
je 0x1003e0c7
lea eax, [ebp - 0x10]
push eax
call fcn.1003d9ae
jmp 0x1003e0d0
lea eax, [ebp - 0x10]
push eax
call fcn.1003da49
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1003e140
mov eax, dword [0x1005442c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10054120
call fcn.1003dfcb
add esp, 0xc
test al, al
je 0x1003e140
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1003e10b
cmp word [eax], di
je 0x1003e10b
lea eax, [ebp - 0x10]
push eax
call fcn.1003d9ae
pop ecx
jmp 0x1003e142
lea eax, [ebp - 0x10]
push eax
call fcn.1003da49
jmp 0x1003e108
mov eax, dword [edi]
test eax, eax
je 0x1003e12d
cmp word [eax], dx
je 0x1003e12d
lea eax, [ebp - 0x10]
push eax
call fcn.1003d945
pop ecx
jmp 0x1003e140
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1003e20b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003de50
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003e20b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003e20b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003e20b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003e198
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1002d808
test ebx, ebx
je 0x1003e206
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1002d808
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003e20b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003e20b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100451cc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003e20d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002959
leave
ret
Function at 0x10044672
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10044496
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100447e1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100447e1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10044796
jg 0x100446ce
test eax, eax
je 0x1004478c
push 1
push 0x1000
call fcn.1002ca6e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100446f1
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10044783
push 0x8000
push ebx
call fcn.100442cb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004471a
jg 0x10044715
cmp ecx, 0x1000
jb 0x1004471a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10039a28
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004475f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10044715
jl 0x10044746
test ecx, ecx
jne 0x10044707
push dword [ebp - 0xc]
push ebx
call fcn.100442cb
push esi
call fcn.1002cad1
add esp, 0xc
xor ebx, ebx
jmp 0x100447ef
cmp byte [edi + 0x24], 0
je 0x10044776
cmp dword [edi + 0x20], 5
jne 0x10044776
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10044781
mov ebx, dword [edi + 0x18]
jmp 0x10044783
xor ebx, ebx
push esi
call fcn.1002cad1
pop ecx
jmp 0x100447ef
test ecx, ecx
jg 0x10044758
jl 0x10044796
test eax, eax
jae 0x10044758
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003024c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100447b6
cmp byte [edi + 0x1c], 0
je 0x10044758
jmp 0x100447e7
push ebx
call fcn.1003a06b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10044758
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100447ef
cmp byte [edi + 0x1c], 0
je 0x100447ec
mov ebx, dword [edi + 0x18]
jmp 0x100447ef
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003024c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10046f8a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10046e5e

Function at 0x1004ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449030]
jne 0x401073
repz ret
jmp fcn.00401e41

Function at 0x408aeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d3a
and dword [ebp - 4], 0
cmp dword [0x44bb68], 0
mov ebx, eax
jne 0x408b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c4d
push eax
call fcn.00404cc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44bb68], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44bb6c], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44bb70], eax
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x44bb78], eax
test eax, eax
je 0x408b9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x44bb74], eax
mov eax, dword [0x44bb74]
cmp eax, ebx
je 0x408bf4
cmp dword [0x44bb78], ebx
je 0x408bf4
push eax
call fcn.00404d43
push dword [0x44bb78]
mov esi, eax
call fcn.00404d43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bf4
test edi, edi
je 0x408bf4
call esi
test eax, eax
je 0x408beb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408beb
test byte [ebp - 0xc], 1
jne 0x408bf4
or dword [ebp + 0x10], 0x200000
jmp 0x408c2d
mov eax, dword [0x44bb6c]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c2d
mov eax, dword [0x44bb70]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44bb68]
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x449030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x2c2955c]
push ebx
mov ebx, dword [0x2c29280]
push esi
mov esi, dword [0x449f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40af91
push str.zolihetujejijitewi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c2955c]
mov dword [0x44bd0c], esi
cmp eax, 0x114e
jne 0x40afbb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c2955c]
cmp eax, 0x2f
jne 0x40afdb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae50
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x414838
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ec90]
jne 0x414842
repz ret
jmp fcn.0041a6eb

Function at 0x41acd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x41acdf
pop dword [ebp - 0x4c]
mov eax, 0xfb1bb839
add eax, 0x525f4a6
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x4e696
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x383428c7
add ecx, 0xc7cc2333
xor edx, edx
add edx, eax
mov ebx, 0x46b200
add ebx, dword [ebp - 0x4c]
mov edi, 0x36f40c81
add edi, 0x7602ef52
sub dword [ebp - 0x20], 0x1c52cd29
mov esi, dword [ebx]
xor dword [ebp - 0x34], 0x853cda65
xor esi, edi
add dword [ebp - 8], 0xabb76e8a
mov dword [edx], esi
add edx, 0xa572974b
add edx, 0x5a8d68b9
add ebx, 4
loop 0x41ad35
add eax, 0xa8725a74
sub eax, 0xa87137b9
xor ebx, ebx
add ebx, eax
add eax, 0xfb9d8f40
add eax, 0x46270c5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40611c
pop dword [ebp - 0x30]
mov eax, 0x40611c
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x986fd66e
sub dword [ebp - 0x40], 0x4a1d9123
mov dword [ebp - 0x3c], 0x23f521f4
sub dword [ebp - 0x3c], 0xf1c1d5af
mov dword [ebp - 0x38], 0xf454b63c
add dword [ebp - 0x38], 0x57f78df2
mov dword [ebp - 0x34], 0xf2335079
add dword [ebp - 0x34], 0xdccaf87
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xade5fed6
sub dword [ebp - 0x40], 0x39739580
mov dword [ebp - 0x3c], 0x673e0b5e
add dword [ebp - 0x3c], 0xda2e5617
mov dword [ebp - 0x38], 0xcccd227a
sub dword [ebp - 0x38], 0x695db60e
mov dword [ebp - 0x34], 0x48853253
add dword [ebp - 0x34], 0xb77acdad
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xdd342be9
sub eax, 0xdcf3bae9
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2af
push 0
call eax
mov ecx, 0xe61e6d61
add ecx, 0x19e1e8dc
mov esi, eax
mov edx, 0x59f1e793
add edx, 0xa64f186d
add edx, dword [ebp - 0x30]
mov ebx, 0xda9a10f7
sub ebx, 0x935f5da1
xor dword [ebp - 0x2c], 0x63b6be49
mov edi, dword [edx]
xor edi, ebx
add dword [ebp - 0x18], esi
mov dword [esi], edi
sub dword [ebp - 0x10], eax
add esi, 0xdecdc412
sub esi, 0xdecdc40e
add edx, 0x13d7a1ac
sub edx, 0x13d7a1a8
loop 0x406234
add eax, 0x14bc7
mov ebx, eax
add eax, 5
mov ecx, 0xfbf636d0
sub ecx, 0xfbb636d0
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4011f1
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
mov byte [ebp - 0x201], 0
mov edi, dword [ebp + 8]
push str..Origins.ini
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0
push 0x403033
push str.Target
call sub.kernel32.dll_GetPrivateProfileStringA
inc byte [ebp - 0x201]
lea eax, [ebp - 0x200]
push eax
push 0x100
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_lstrcatA
push eax
call sub.kernel32.dll_lstrlenA
lea esi, [ebp - 0x200]
add esi, eax
xor ecx, ecx
inc ecx
dec esi
cmp byte [esi], 0x5c
jne 0x401260
push ecx
push eax
mov byte [esi], 0
push dword [edi]
push esi
call sub.kernel32.dll_lstrcatA
pop eax
pop ecx
sub eax, ecx
sub esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x401315
cmp byte [ebp + 0xc], 1
jne 0x4012a9
push esi
push 0x80
push 0x403214
push 0
push dword [edi + 8]
push dword [edi + 4]
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x401322
cmp byte [ebp + 0xc], 2
jne 0x401322
push str..Origins.ini
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0
push str.Name
push 0x403045
call sub.kernel32.dll_GetPrivateProfileStringA
push esi
push 0x403208
push dword [edi + 8]
push dword [edi + 4]
call sub.kernel32.dll_WritePrivateProfileStringA
cmp byte [ebp - 0x201], 4
ja 0x401300
push esi
lea eax, [ebp - 0x100]
push eax
push dword [edi + 0xc]
push dword [edi + 4]
call sub.kernel32.dll_WritePrivateProfileStringA
jmp 0x401313
push esi
lea eax, [ebp - 0x100]
push eax
push dword [edi + 0x10]
push dword [edi + 0xc]
call sub.kernel32.dll_WritePrivateProfileStringA
jmp 0x401322
add edi, 0x14
cmp dword [edi], 0
je 0x401322
jmp 0x401226
leave
ret 8

Function at 0x401326
Capabilities:
Create process on windows
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push str..Origins.ini
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0
push 0x403033
push str.Target
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x200]
push eax
push 0x100
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_lstrcatA
push eax
call sub.kernel32.dll_lstrlenA
mov edi, eax
lea esi, [ebp - 0x200]
add esi, eax
xor ebx, ebx
inc ebx
dec esi
cmp byte [esi], 0x5c
jne 0x401388
inc esi
push esi
lea eax, [ebp - 0x240]
push eax
call sub.kernel32.dll_lstrcpyA
add esi, ebx
mov byte [esi], 0
dec esi
cmp byte [esi], 0x5c
jne 0x40139f
sub edi, ebx
sub esi, edi
push str..Origins.ini
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0
push 0x403037
push str.Target
call sub.kernel32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4013da
lea ebx, [ebp - 0x100]
jmp 0x4013dc
xor ebx, ebx
push 1
push esi
push ebx
lea eax, [ebp - 0x240]
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess