joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540aa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push dword [0x594558]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x540c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x540c80
push 0x1d0
call fcn.0053c990
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x540ae0
xor eax, eax
pop ebp
pop ebx
ret
mov ebp, 0x5b0bb8
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x5aeca8]
mov dword [ebx], edx
mov dword [0x5aeca8], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 0x59455c
mov dword [ebx + 0x10], 0x59455c
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x14], eax
lea edx, [ebx + 0x188]
mov dword [ebx + 0x180], 0x594560
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 1
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0xffffffff
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x184], 0
push 0x594d80
push edx
call fcn.0053ffc0
pop ecx
pop ecx
mov ecx, dword [0x594db0]
mov dword [ebx + 0x1b8], ecx
mov eax, dword [0x594db4]
mov dword [ebx + 0x1bc], eax
mov edx, dword [0x594db8]
mov dword [ebx + 0x1c0], edx
mov ecx, dword [0x594dbc]
mov dword [ebx + 0x1c4], ecx
mov eax, dword [0x594dc0]
mov dword [ebx + 0x1c8], eax
xor edx, edx
mov ecx, dword [edx + 0x594d7c]
mov dword [edx + ebx + 0x184], ecx
mov ecx, dword [edx + 0x594d80]
mov dword [edx + ebx + 0x188], ecx
mov ecx, dword [edx + 0x594d84]
mov dword [edx + ebx + 0x18c], ecx
mov ecx, dword [edx + 0x594d88]
mov dword [edx + ebx + 0x190], ecx
add edx, 0x10
cmp edx, 0x40
jl 0x540c05
mov ecx, dword [0x594dbc]
mov dword [ebx + 0x1c4], ecx
mov ecx, dword [0x594dc0]
mov dword [ebx + 0x1c8], ecx
mov dword [ebx + 0x17c], 0x594ca4
mov dword [ebx + 0x1cc], 0
push ebx
push dword [0x594558]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
pop ebx
ret
xor eax, eax
pop ebp
pop ebx
ret
mov eax, 1
pop ebp
pop ebx
ret
Function at 0x541c90
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
sub esp, 4
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
mov edi, dword [0x594a90]
jmp 0x541cb7
mov edi, dword [edi + 8]
test edi, edi
je 0x541cc4
mov esi, dword [edi]
mov eax, dword [ebp + 8]
cmp dword [esi], eax
ja 0x541cb4
test edi, edi
jne 0x541cd0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov ebx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
xor edx, edx
cmp eax, 1
mov ecx, eax
je 0x541d0d
lea eax, [eax]
lea esi, [edx + ecx]
mov edi, dword [ebp + 8]
sar esi, 1
add edi, 0xffffffff
cmp dword [ebx + esi*8], edi
ja 0x541d04
mov edx, esi
jmp 0x541d06
mov ecx, esi
lea esi, [edx + 1]
cmp esi, ecx
jne 0x541cf0
mov edi, dword [ebp + 8]
add edi, 0xffffffff
cmp edi, dword [ebx + edx*8]
jb 0x541e09
lea esi, [edx + 1]
cmp esi, eax
je 0x541d33
mov ecx, dword [ebp + 8]
add ecx, 0xffffffff
cmp ecx, dword [ebx + edx*8 + 8]
jae 0x541e09
mov esi, dword [ebx + edx*8 + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
movsx eax, byte [ecx]
test eax, 1
mov edi, esi
jne 0x541dff
movzx eax, word [ecx + 5]
add edi, 7
xor esi, esi
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x541dff
mov ebx, dword [edi]
movzx ecx, byte [ebx]
cmp cl, 0xe8
je 0x541d74
cmp cl, 0xcc
jne 0x541d80
add ebx, 5
jmp case.default.0x541db8
cmp cl, 0xff
jne 0x541dd0
movzx edx, byte [ebx + 1]
mov ecx, edx
sar ecx, 6
and edx, 7
add ebx, 2
cmp ecx, 3
je case.default.0x541db8
cmp edx, 4
jne 0x541da1
add ebx, 1
test ecx, ecx
jne 0x541db0
cmp edx, 5
jne 0x541db0
add ebx, 4
jmp case.default.0x541db8
lea eax, [ecx - 1]
cmp eax, 1
ja case.default.0x541db8
jmp dword [eax*4 + 0x5465ec]
add ebx, 1
jmp case.default.0x541db8
add ebx, 4
jmp case.default.0x541db8
call fcn.00542d00
cmp ebx, dword [ebp + 8]
jne 0x541df0
mov esi, dword [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
add esi, 1
add edi, 8
cmp esi, dword [ebp - 0x10]
jl 0x541d65
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x541dbf
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
sub esp, 4
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
mov edi, dword [0x594a90]
jmp 0x541cb7
mov edi, dword [edi + 8]
test edi, edi
je 0x541cc4
mov esi, dword [edi]
mov eax, dword [ebp + 8]
cmp dword [esi], eax
ja 0x541cb4
test edi, edi
jne 0x541cd0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov ebx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
xor edx, edx
cmp eax, 1
mov ecx, eax
je 0x541d0d
lea eax, [eax]
lea esi, [edx + ecx]
mov edi, dword [ebp + 8]
sar esi, 1
add edi, 0xffffffff
cmp dword [ebx + esi*8], edi
ja 0x541d04
mov edx, esi
jmp 0x541d06
mov ecx, esi
lea esi, [edx + 1]
cmp esi, ecx
jne 0x541cf0
mov edi, dword [ebp + 8]
add edi, 0xffffffff
cmp edi, dword [ebx + edx*8]
jb 0x541e09
lea esi, [edx + 1]
cmp esi, eax
je 0x541d33
mov ecx, dword [ebp + 8]
add ecx, 0xffffffff
cmp ecx, dword [ebx + edx*8 + 8]
jae 0x541e09
mov esi, dword [ebx + edx*8 + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
movsx eax, byte [ecx]
test eax, 1
mov edi, esi
jne 0x541dff
movzx eax, word [ecx + 5]
add edi, 7
xor esi, esi
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x541dff
mov ebx, dword [edi]
movzx ecx, byte [ebx]
cmp cl, 0xe8
je 0x541d74
cmp cl, 0xcc
jne 0x541d80
add ebx, 5
jmp case.default.0x541db8
cmp cl, 0xff
jne 0x541dd0
movzx edx, byte [ebx + 1]
mov ecx, edx
sar ecx, 6
and edx, 7
add ebx, 2
cmp ecx, 3
je case.default.0x541db8
cmp edx, 4
jne 0x541da1
add ebx, 1
test ecx, ecx
jne 0x541db0
cmp edx, 5
jne 0x541db0
add ebx, 4
jmp case.default.0x541db8
lea eax, [ecx - 1]
cmp eax, 1
ja case.default.0x541db8
jmp dword [eax*4 + 0x5465ec]
add ebx, 1
jmp case.default.0x541db8
add ebx, 4
jmp case.default.0x541db8
call fcn.00542d00
cmp ebx, dword [ebp + 8]
jne 0x541df0
mov esi, dword [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
add esi, 1
add edi, 8
cmp esi, dword [ebp - 0x10]
jl 0x541d65
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x542180
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x14c
or ecx, 0xffffffff
mov edx, dword [0x5b0c84]
mov ebx, dword [0x5b0c80]
mov esi, dword [edx + ebx*4 - 4]
mov edi, esi
repne scasb al, byte es:[edi]
mov edi, 0xfffffffe
sub edi, ecx
add edi, esi
jmp 0x5421b3
sub edi, 1
cmp edi, esi
jbe 0x5421cc
movsx edx, byte [edi - 1]
push edx
push 0x594b38
call fcn.00540020
pop ecx
test eax, eax
pop ecx
je 0x5421b0
lea ecx, [ebp - 0x150]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x154], eax
je 0x542285
mov dword [ebp - 0x10], edi
sub dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
lea ebx, [ebp - 0x124]
mov dword [ebp - 0x158], eax
mov eax, eax
xor eax, eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov edx, 0xfffffffe
sub edx, ecx
add edx, dword [ebp - 0x158]
add edx, 1
push edx
call fcn.0053c990
mov edi, eax
pop ecx
push esi
push edi
call fcn.0053ffc0
pop ecx
pop ecx
push ebx
mov ecx, edi
add ecx, dword [ebp - 0x10]
push ecx
call fcn.0053ffc0
pop ecx
pop ecx
call fcn.00542130
test eax, eax
je 0x542279
mov eax, dword [0x5b0c84]
mov edx, dword [0x5b0c80]
lea ecx, [ebp - 0x150]
mov dword [eax + edx*4 - 4], edi
push ecx
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x542279
mov edx, dword [0x5b0c80]
add dword [0x5b0c80], 1
test edx, edx
jne 0x542200
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x542290
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov dword [0x5b01f0], 1
push 4
mov dword [0x5b0c80], 0
call fcn.0053c990
mov dword [0x5b0c84], eax
test eax, eax
pop ecx
mov dword [0x5b0c64], 0
jne 0x5422d5
call fcn.00542110
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x14], eax
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
mov edx, 0xfffffffe
sub edx, ecx
add edx, 1
push edx
call fcn.0053c990
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [0x5b01e8], eax
jne 0x542315
call fcn.00542110
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
add esi, 1
movsx eax, byte [esi]
push eax
push 0x594b3c
call fcn.00540020
pop ecx
test eax, eax
pop ecx
jne 0x542312
cmp byte [esi], 0
je 0x5424ac
call fcn.00542130
test eax, eax
je 0x5424ac
cmp dword [0x5b0c80], 1
mov dword [ebp - 0x10], 0
jne 0x54235a
mov ecx, esi
sub ecx, dword [ebp - 0x14]
mov dword [0x5b0c64], ecx
mov edx, dword [0x5b0c84]
mov eax, dword [0x5b0c80]
mov dword [edx + eax*4], ebx
add dword [0x5b0c80], 1
movzx ecx, byte [esi]
xor edi, edi
test cl, cl
je 0x542498
lea eax, [eax]
test edi, edi
jne 0x5423d6
movsx ecx, cl
push ecx
push 0x594b44
call fcn.00540020
pop ecx
test eax, eax
pop ecx
je 0x5423c1
add esi, 1
movzx ecx, byte [esi]
test cl, cl
je 0x5423b6
movsx edx, cl
push edx
push str.__t_r_n_v
call fcn.00540020
pop ecx
test eax, eax
pop ecx
jne 0x542398
mov byte [ebx], 0
add ebx, 1
jmp 0x542498
movzx ecx, byte [esi]
cmp cl, 0x22
jne 0x542400
add esi, 1
mov edi, 1
jmp 0x54248d
cmp cl, 0x22
jne 0x5423f0
cmp byte [esi + 1], 0x22
jne 0x5423f0
mov byte [ebx], 0x22
add ebx, 1
add esi, 2
jmp 0x54248d
cmp cl, 0x22
jne 0x542400
add esi, 1
xor edi, edi
jmp 0x54248d
cmp cl, 0x5c
jne 0x542454
cmp byte [esi + 1], 0x5c
jne 0x542454
cmp byte [esi + 2], 0x5c
mov eax, 2
jne 0x54241f
add eax, 1
cmp byte [esi + eax], 0x5c
je 0x542416
cmp byte [esi + eax], 0x22
jne 0x54244d
and eax, 0xfffffffe
je 0x54248d
lea eax, [eax]
movzx ecx, byte [esi]
mov byte [ebx], cl
add ebx, 1
add esi, 2
sub eax, 2
jne 0x542430
jmp 0x54248d
movzx edx, byte [esi]
mov byte [ebx], dl
add esi, 1
add ebx, 1
sub eax, 1
jae 0x542442
jmp 0x54248d
cmp cl, 0x5c
jne 0x542470
cmp byte [esi + 1], 0x22
jne 0x542470
mov byte [ebx], 0x22
add ebx, 1
add esi, 2
jmp 0x54248d
test edi, edi
jne 0x542485
cmp cl, 0x2a
je 0x54247e
cmp cl, 0x3f
jne 0x542485
mov dword [ebp - 0x10], 1
mov byte [ebx], cl
add esi, 1
add ebx, 1
movzx ecx, byte [esi]
test cl, cl
jne 0x542380
cmp dword [ebp - 0x10], 0
je 0x5424a3
call fcn.00542180
cmp byte [esi], 0
jne 0x542332
mov byte [ebx], 0
cmp dword [0x5b0c80], 1
jne 0x5424c2
mov eax, esi
sub eax, dword [ebp - 0x14]
mov dword [0x5b0c64], eax
mov ecx, dword [0x5b0c84]
mov edx, dword [0x5b0c80]
mov dword [ecx + edx*4], 0
push 0x5420d0
call fcn.005403a0
pop ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x542640
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0xc
mov edi, dword [esp + 0x20]
cmp edi, 0x100
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [esp], 0
jge 0x54266d
mov ecx, dword [edi*4 + 0x5b0728]
test ecx, ecx
jne 0x542687
push 1
call fcn.00540d00
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [ecx]
mov dword [esp + 8], eax
movsx edx, byte [ecx + 4]
test edx, edx
je 0x5426e6
xor esi, esi
xor eax, eax
test ebx, ebx
jbe 0x5426b0
lea eax, [eax]
cmp byte [eax + ebp], 0xa
jne 0x5426a9
add esi, 1
add eax, 1
cmp eax, ebx
jb 0x5426a0
lea ecx, [esi + ebx]
push ecx
call fcn.0053c990
pop ecx
xor ecx, ecx
test ebx, ebx
mov dword [esp], eax
mov edx, eax
jbe 0x5426e1
cmp byte [ecx + ebp], 0xa
jne 0x5426d1
mov byte [edx], 0xd
add edx, 1
movzx eax, byte [ecx + ebp]
add ecx, 1
mov byte [edx], al
add edx, 1
cmp ecx, ebx
jb 0x5426c5
add ebx, esi
mov ebp, dword [esp]
mov edx, dword [edi*4 + 0x5b0728]
cmp byte [edx + 5], 0
je 0x542700
push 2
push 0
push edi
call fcn.005425d0
add esp, 0xc
push 0
lea ecx, [esp + 8]
push ecx
push ebx
push ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp], 0
mov esi, eax
je 0x542724
push dword [esp]
call fcn.0053c9c0
pop ecx
test esi, esi
je 0x542734
mov eax, dword [esp + 4]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00541290
xor eax, eax
pop ecx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5427b0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 4
cmp dword [esp + 0x18], 0x100
mov ebp, dword [esp + 0x1c]
jge 0x5427d4
mov eax, dword [esp + 0x18]
mov edx, dword [eax*4 + 0x5b0728]
test edx, edx
jne 0x5427f0
push 1
call fcn.00540d00
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
movsx ebx, byte [edx + 4]
push 0
lea ecx, [esp + 4]
push ecx
push dword [esp + 0x28]
push ebp
push dword [edx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x542891
cmp dword [esp], 0
je 0x542886
test ebx, ebx
je 0x542886
mov esi, ebp
xor ebx, ebx
xor ecx, ecx
cmp dword [esp], 0
mov edi, esi
jbe 0x542857
movzx eax, byte [edi]
cmp al, 0xd
jne 0x542847
mov edx, dword [esp]
add edx, 0xffffffff
cmp ecx, edx
jae 0x542847
cmp byte [edi + 1], 0xa
jne 0x542847
add edi, 1
add ebx, 1
jmp 0x54284f
mov byte [esi], al
add edi, 1
add esi, 1
add ecx, 1
cmp ecx, dword [esp]
jb 0x542828
mov eax, dword [esp + 0x20]
cmp dword [esp], eax
jne 0x542883
cmp dword [esp], 1
jbe 0x542883
mov ecx, dword [esp]
cmp byte [ebp + ecx - 1], 0xd
jne 0x542883
push 1
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.005425d0
add esp, 0xc
add ebx, 1
sub dword [esp], ebx
mov eax, dword [esp]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00541290
xor eax, eax
pop ecx
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401fd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402001
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402001
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402001
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4117af
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x411824
mov edx, edi
add edx, dword [edi + 0x3c]
cmp word [edx], 0x4550
jne 0x411824
mov dword [ebp - 0xc], edx
mov eax, dword [edx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
cmp ecx, dword [edx + 0x18]
jge 0x411824
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + ecx*4]
add ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call fcn.00411580
cmp eax, 1
je 0x411804
inc ecx
jmp 0x4117e2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp + 8]
xor ebx, ebx
mov bx, word [eax + ecx*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 8]
mov edx, dword [eax + ebx*4]
add edx, dword [ebp + 8]
jmp 0x411826
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x411830
Capabilities:
Access peb ldr_data

Disassembly:
xor edx, edx
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov edx, dword [ebx + 0x10]
mov dword [0x412c24], edx
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [0x412c20], ebx
ret

Function at 0x4118e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x412020
mov ecx, dword [0x4115b8]
shr ecx, 1
dec ecx
mov bl, byte [0x4115bc]
rdtsc
push eax
mov bh, byte [esi]
inc esi
mov byte [edi], bh
inc edi
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
loop 0x411906
rdtsc
pop edx
sub eax, edx
pop edx
push edx
push 0
push 0
push 0x4119dc
call dword [fcn.00411c2a]
push 0x4119a1
push eax
call dword [fcn.00411c3a]
mov dword [fcn.00411c1e], eax
push 0
push 2
push 0x4119da
push 0x4119b0
call dword [fcn.00411c1e]
pop edx
sub edx, eax
ret
Function at 0x14d1650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x692000]
push edi
or ebp, 0xffffffff
jmp 0x14d1672
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x14d1679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x14d1668
mov eax, 1
add ebx, ebx
jne 0x14d168b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x14d169c
jne 0x14d16bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x14d16bb
dec eax
add ebx, ebx
jne 0x14d16a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x14d1680
add ebx, ebx
jne 0x14d16b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x14d170d
xor ecx, ecx
sub eax, 3
jb 0x14d16d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x14d1742
sar eax, 1
mov ebp, eax
jmp 0x14d16de
add ebx, ebx
jne 0x14d16de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x14d16ac
inc ecx
add ebx, ebx
jne 0x14d16ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x14d16ac
add ebx, ebx
jne 0x14d16f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x14d16ee
jne 0x14d170a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x14d16ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x14d172c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x14d171e
jmp 0x14d166e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x14d172c
add edi, ecx
jmp 0x14d166e
pop esi
mov edi, esi
mov ecx, 0x8c3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x14d174a
cmp byte [edi], 0x27
jne 0x14d174a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x14d174f
lea edi, [esi + 0x10ce000]
mov eax, dword [edi]
or eax, eax
je 0x14d17c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10d473c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10d4888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x14d177c
mov ecx, edi
jns 0x14d17ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10d4890]
or eax, eax
je 0x14d17c1
mov dword [ebx], eax
add ebx, 4
jmp 0x14d1799
call dword [esi + 0x10d488c]
mov ebp, dword [esi + 0x10d4894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x14d17fb
sub esp, 0xffffff80
jmp 0x525dcd
Function at 0x4a9500
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4025c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a00
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040a4b4
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call esi
lea ecx, [ebp - 0x50]
push ecx
push 0xf00ff
push edi
call fcn.0040a5a0
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x68]
push 0x40ac40
push eax
call edi
push eax
lea ecx, [ebp - 0x64]
push 0x409304
push ecx
call edi
push eax
call fcn.0040a504
call esi
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x64]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
push ecx
push edx
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push 0x1c
push edx
push ebx
push eax
mov dword [ebp - 0x40], 2
call fcn.0040a554
call esi
push 0x4a9603
jmp 0x4a9602
ret