joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dbb80
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x5dbb90
mov esi, 1
push esi
call fcn.005774b7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5dbbe2
call fcn.00577fbd
mov edi, eax
call fcn.005de6c0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x5dbbc6
mov edx, dword [0x1a624c8]
mov dword [0x1a624c4], edx
test al, 0x18
je 0x5dbbd7
push esi
push 0x24
push 5
call fcn.005def10
add esp, 0xc
test edi, edi
je 0x5dbbfd
push 1
call fcn.0057a3d8
test byte [esp + 0x14], 0x20
je 0x5dbbfd
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x5dcd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x5dcdf4
cmp byte [edx], 0
je 0x5dcde7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.005dcc80
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.005dcc80
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.005dcbf0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x5dcdb1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.005dcc30
fmul qword [0x1a22a50]
push ecx
fstp qword [esp]
call fcn.00575de8
fadd qword [0x1a0fc68]
add esp, 8
call fcn.00575eb8
mov byte [ebx], al
inc ebx
dec edi
jne 0x5dcd84
lea ecx, [esp + 0x20]
push ecx
call fcn.005dcc30
fmul qword [0x1a22a50]
push ecx
fstp qword [esp]
call fcn.00575de8
add esp, 8
call fcn.00575eb8
cmp esi, ebx
je 0x5dcddd
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x5dcdd6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5dd1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x5dd1f0
mov byte [edi + esi], 2
jmp 0x5dd227
test al, 4
je 0x5dd1fa
mov byte [edi + esi], 0xd
jmp 0x5dd227
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x5dd213
mov byte [edi + esi], 2
jmp 0x5dd227
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x5dd223
mov byte [edi + esi], 0x19
jmp 0x5dd227
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x5dd1d7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x5dd29b
cmp dl, 0xd
je 0x5dd29b
xor edx, edx
jmp 0x5dd2a0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x5dd28b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x5dd2c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.005dbb80
mov esi, eax
add esp, 8
test esi, esi
jne 0x5dd2e1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.005de900
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x5dd306
push esi
call fcn.005dbc10
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.00582dbb
push ebx
push edi
mov ebp, eax
call fcn.005de970
push 0x5dd340
push ebp
push esi
call fcn.005dfca0
push esi
call fcn.005dbc10
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x5de630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x1b78380
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1b782a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5de6ab
push 0x4c
push 1
call fcn.005783e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x5de673
push 0x1b78380
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x1b782a8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1b68c48]
inc eax
lea edx, [esi + 0xc]
mov dword [0x1b68c48], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.005e2120
add esp, 8
mov byte [esi + 0x3c], 1
push 0x1b78380
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x5deb30
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00577fbd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00582dbb
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5dec2a
call fcn.00577fbd
cmp dword [eax], 0
je 0x5deb77
call fcn.00577fbd
mov ebp, dword [eax]
jmp 0x5deb7a
or ebp, 0xffffffff
call fcn.005de6c0
test esi, esi
mov dword [eax], ebp
jne 0x5deb8f
call fcn.00577fbd
cmp dword [eax], 4
je 0x5debdf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x5debc2
cmp esi, 0xffffffff
je 0x5dec04
test al, 6
je 0x5debc2
call fcn.005de6c0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.005e2150
add esp, 4
push eax
push 0x24
push 9
call fcn.005def10
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x5dec22
test al, 6
je 0x5debd0
test ah, 2
je 0x5dec22
test esi, esi
jbe 0x5dec2e
test ah, 2
je 0x5dec2e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.00577fbd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00582dbb
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5dec2a
jmp 0x5deb64
call fcn.005de6c0
mov eax, dword [eax]
push eax
push ebx
call fcn.005e2150
add esp, 4
push eax
push 0x24
push 2
call fcn.005def10
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x5dec3b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x5dec44
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x5ef140
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5ef178
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005ed1cd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005ed1a5
jmp 0x5ef184
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5f0831
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5f0873
call fcn.005f6573
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5f0873
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5f086a
xor eax, eax
jmp 0x5f087b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005f0881
pop edi
pop esi
pop ebx
ret 4

Function at 0x5f6aa3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5f6ad1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5f6aef
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005f6a09
jmp 0x5f6aef
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5f6aef
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005f6a09
test edi, edi
mov eax, edi
jne 0x5f6ad9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x452534
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x45253a
pop ebx
sub ebx, 0x1a2
mov ecx, 0x15398
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3c000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.004523e9
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x45256c
sub ebp, 9
mov edx, ebx
sub edx, dword [ebx + 0x74]
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1eb7a
call fcn.0045250a
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x4525f6
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x4525f1
pushal
test eax, 0x80000000
je 0x4525db
and eax, 0x7fffffff
jmp 0x4525df
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x4525c6
add esi, 0x14
jmp 0x4525ac
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x452640
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x45263f
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x452637
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x452626
jmp 0x452609
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x45264d
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc
Function at 0x401000
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
push esi
call fcn.00401880
test eax, eax
jne 0x40101c
call fcn.004017c0
or eax, 0xffffffff
pop esi
add esp, 0x44
ret 0x10
call fcn.00401b60
cmp eax, 1
jne 0x401039
call fcn.00401b00
test eax, eax
jne 0x401039
or eax, 0xffffffff
pop esi
add esp, 0x44
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x405470
push 0x403178
push 1
push 0
push 0x403198
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [0x405470]
test eax, eax
jne 0x40107a
mov eax, dword [eax]
push 0
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
pop esi
add esp, 0x44
ret 0x10
mov esi, dword [esp + 0x4c]
push 0x7f00
push 0
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0x4011c0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], str.47D673C8_656B_4dbb_B131_8B65B99BFD0B
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x4010fa
or eax, 0xffffffff
pop esi
add esp, 0x44
ret 0x10
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push str.D248272B_D009_4aba_A5D9_5F5F85C2FE3C
push str.47D673C8_656B_4dbb_B131_8B65B99BFD0B
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x401750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
call fcn.00402680
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
call esi
test eax, eax
je 0x401195
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
call ebx
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
call esi
test eax, eax
jne 0x401174
pop edi
pop ebx
mov eax, dword [0x405470]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.004017c0
mov eax, 1
pop esi
add esp, 0x44
ret 0x10
Function at 0x401880
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push str.C2FD1C9A_57A2_4e04_92BD_0FAE57CF18AB
push 0
push 0
push 0
mov dword [0x405470], 0
call esi
test eax, eax
mov dword [0x40547c], eax
je 0x401a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a3b
call fcn.00401b60
cmp eax, 1
jne 0x4018d9
mov eax, dword [0x40547c]
push 6
push eax
call fcn.00401a50
add esp, 8
push 0
push 0
push 1
push 0
call esi
test eax, eax
mov dword [0x405468], eax
je 0x401a3b
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
push 0
call ebp
test eax, eax
mov dword [0x405484], eax
je 0x401a3b
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push eax
call ebx
push str.3983A465_5894_4554_9A2E_60D8081274DF
push 1
push 0
push 0
call esi
test eax, eax
mov dword [0x405474], eax
je 0x401a3b
push eax
call edi
push str.10CA85CD_42EB_49d8_85BE_2744E542ED7A
push 1
push 0
push 0
call esi
test eax, eax
mov dword [0x405480], eax
je 0x401a3b
push eax
call edi
push str.3821F38D_8F44_4199_9FC5_E57894895A96
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [0x40548c], eax
je 0x401a3b
push str.AFB922EC_358C_44c6_8020_99DBAAF46C0E
push 1
push 0
call ebp
test eax, eax
mov dword [0x405478], eax
je 0x401a3b
push eax
call ebx
push str.E6550CB3_5A1D_46ac_8871_16CD478C8716
push 1
push 0
call ebp
test eax, eax
mov dword [0x405488], eax
je 0x401a3b
push eax
call ebx
mov ecx, dword [0x40548c]
push 0
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x40546c], eax
mov eax, dword [0x40548c]
test eax, eax
je 0x401a3b
mov esi, 1
call fcn.00401b60
cmp eax, esi
jne 0x401a34
mov edx, dword [0x405474]
push 6
push edx
call fcn.00401a50
mov esi, eax
mov eax, dword [0x405480]
push 6
push eax
call fcn.00401a50
mov ecx, dword [0x40548c]
push 6
push ecx
and esi, eax
call fcn.00401a50
mov edx, dword [0x405478]
push 6
push edx
and esi, eax
call fcn.00401a50
and esi, eax
mov eax, dword [0x405488]
push 6
push eax
call fcn.00401a50
add esp, 0x28
and esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x401b60
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x11c
push eax
call esi
test eax, eax
jne 0x401baa
lea ecx, [esp + 8]
mov dword [esp + 8], 0x114
push ecx
call esi
test eax, eax
jne 0x401baa
pop edi
pop esi
add esp, 0x11c
ret
mov edx, dword [esp + 0xc]
pop edi
cmp edx, 6
pop esi
sbb eax, eax
inc eax
add esp, 0x11c
ret
Function at 0x62f3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.062f378f
jae 0x62f370e
xor ecx, ecx
call fcn.062f378f
jae 0x62f373d
xor eax, eax
call fcn.062f378f
jae 0x62f374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.062f378f
adc al, al
jae 0x62f372f
jne 0x62f3779
stosb byte es:[edi], al
jmp 0x62f3711
call fcn.062f379b
sub ecx, ebx
jne 0x62f3756
call fcn.062f3799
jmp 0x62f3775
lodsb al, byte [esi]
shr eax, 1
je 0x62f3783
adc ecx, ecx
jmp 0x62f3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.062f3799
cmp eax, 0x7d00
jae 0x62f3772
cmp ah, 5
jae 0x62f3773
cmp eax, 0x7f
ja 0x62f3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x62f3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x634ecb8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xffffffffffffffff
lea edx, [ebx + 8]
push dword [edx + 0x34]
lea esi, [edx - 8]
add dword [esp], ebx
pop ecx
add edx, dword [ecx + 0x78]
add esi, dword [edx + 0x18]
pop ecx
lodsd eax, dword [esi]
add ecx, 1
cmp dword [edx + 0x10], ecx
lea edi, [eax + ebx + 4]
je 0x634ed30
nop
cmc
and al, 0xff
xor eax, eax
imul eax, eax, 0xf
push eax
movzx eax, byte [edi - 4]
neg eax
sub edi, 0xfffffff1
add dword [esp], eax
lea edi, [edi - 0xe]
pop eax
cmp byte [edi - 4], 0xa
jmp 0x634ee3e
ret
add ecx, ecx
add edi, ebx
add ecx, ebx
mov esi, dword [edx + 1]
mov ax, word [ecx + esi]
cwde
push dword [edi + eax*4]
add dword [esp], ebx
pop esi
mov eax, dword [esp]
add esp, 8
jmp eax
ja 0x634ece1
mov eax, 0xfc8e2a94
xor dword [esp - 4], eax
mov eax, dword [esp + 4]
sub dword [esp - 4], eax
jne 0x634ecce
add edx, 0x1b
push dword [edx - 7]
pop edi
jmp 0x634ed49
Function at 0x402462
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], 0x407188
cmp dword [0x40b010], esi
mov dword [ebp - 8], esi
je 0x4024d5
push str.INCLUDE
call dword [sym.imp.MSVCRT.dll_getenv]
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x4024d5
push edi
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.004020a8
mov edi, dword [sym.imp.MSVCRT.dll__mbschr]
push 0x3b
mov dword [ebp - 4], eax
push ebx
call edi
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4024c9
push dword [ebp - 4]
and byte [esi], 0
push ebx
call fcn.004024d9
lea ebx, [esi + 1]
push 0x3b
mov byte [esi], 0x3b
push ebx
jmp 0x4024a7
push dword [ebp - 4]
push ebx
call fcn.004024d9
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4027b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
jne 0x402848
push 0x40743c
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
je 0x40282d
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strlen
mov cl, byte [ebp + eax - 0x401]
add esp, 0xc
cmp cl, 0x5c
je 0x402819
cmp cl, 0x3a
je 0x402819
cmp cl, 0x2f
je 0x402819
mov byte [ebp + eax - 0x400], 0x5c
and byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x400]
push str.XXXXXX
push eax
call fcn.00405527
pop ecx
jmp 0x402837
push str.XXXXXX
call fcn.00405fc1
pop ecx
mov dword [esi + 0x20], eax
push eax
call dword [sym.imp.MSVCRT.dll__mktemp]
pop ecx
mov dword [esi + 0x20], eax
jmp 0x40284f
and dword [0x40b01c], 0
pop esi
leave
ret

Function at 0x402852
Capabilities:
Resolve path using msvcrt

Disassembly:
call dword [sym.imp.MSVCRT.dll___p__pgmptr]
mov eax, dword [eax]
ret

Function at 0x403031
Capabilities:
Terminate process

Disassembly:
push 0
call fcn.00403276
mov dword [esp], 0x131
call fcn.00405e43
push eax
push 1
call fcn.00405b55
add esp, 0xc
push 0
call dword [sym.imp.MSVCRT.dll_exit]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x407488
mov eax, dword [esi]
mov eax, dword [ebx + eax*4]
add eax, 5
cmp byte [eax], 0
je 0x40308e
push 8
push edi
push 0
push eax
call fcn.004014a5
push eax
push dword [0x40b020]
call fcn.00401780
add esp, 0x18
mov esi, dword [esi]
inc esi
mov eax, dword [ebx + esi*4]
lea ecx, [ebx + esi*4]
test eax, eax
je 0x4030c2
mov ebx, ecx
push 8
push edi
push 0
push eax
call fcn.004014a5
push eax
push dword [0x40b020]
call fcn.00401780
mov eax, dword [ebx + 4]
add ebx, 4
add esp, 0x18
inc esi
test eax, eax
jne 0x40309d
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x403603
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov ebx, eax
mov dword [esp], str.PATH
call dword [sym.imp.MSVCRT.dll_getenv]
mov edi, dword [ebp + 0xc]
mov esi, eax
test esi, esi
pop ecx
je 0x4036a3
cmp byte [esi], 0
je 0x4036a3
mov al, byte [esi]
cmp al, 0x20
je 0x40363e
cmp al, 0x3b
jne 0x403641
inc esi
jmp 0x403634
test al, al
je 0x4036a3
inc dword [ebp - 4]
xor edx, edx
mov ecx, edi
cmp al, 0x3b
je 0x403661
inc edx
cmp edx, dword [ebp + 0x10]
jge 0x403659
mov byte [ecx], al
inc ecx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40364c
test edx, edx
je 0x40362f
cmp edx, dword [ebp + 0x10]
jge 0x40362f
mov al, byte [ecx - 1]
cmp al, 0x5c
je 0x40367e
cmp al, 0x3a
je 0x40367e
cmp al, 0x2f
je 0x40367e
inc edx
mov byte [ecx], 0x5c
inc ecx
add edx, ebx
cmp edx, dword [ebp + 0x10]
jge 0x40362f
push dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strcpy
push 4
push edi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x10
test eax, eax
jne 0x40362f
mov eax, dword [ebp - 4]
jmp 0x4036a8
and byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403852
Capabilities:
Resolve path using msvcrt

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push 0x136
call fcn.00405e43
push eax
push 2
call fcn.00405b55
mov ebx, 0x40b110
add esp, 0xc
mov esi, ebx
cmp dword [esi], 0
jne 0x403884
call fcn.00402852
jmp 0x40389a
mov eax, dword [0x40b020]
mov dword [eax + 8], esi
push dword [0x40b020]
call fcn.00403369
mov eax, dword [esi]
pop ecx
push eax
call sub.MSVCRT.dll_strlen
cmp eax, dword [esp + 0x14]
pop ecx
jle 0x4038ab
mov dword [esp + 0x10], eax
add esi, 0x24
cmp esi, 0x40b1c4
jl 0x403878
mov ebp, 0x4073e8
mov edi, dword [ebx]
test edi, edi
jne 0x4038c8
call fcn.00402852
mov edi, eax
push edi
push str.__s:
push 2
call fcn.00405b55
push edi
call sub.MSVCRT.dll_strlen
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp eax, esi
jge 0x4038f9
sub esi, eax
push 0x4074c0
push 2
call fcn.00405b55
pop ecx
dec esi
pop ecx
jne 0x4038e8
push edi
call fcn.00403925
push ebp
push 2
call fcn.00405b55
add ebx, 0x24
add esp, 0xc
cmp ebx, 0x40b1c4
jl 0x4038bb
push ebp
push 2
call fcn.00405b55
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret