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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fa170
push 0x4fa168
push str.FlsSetValue
push 0x22
call fcn.004d2b17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d2d27
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e76e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4d42a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5124f8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d42e0
cmp byte [ebx], 0xa
jne 0x4d42e0
or byte [edi + eax + 0x28], 4
jmp 0x4d42e5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4d43e4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4d43c7
inc eax
cmp dl, 0xd
je 0x4d4311
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4d4337
cmp eax, ecx
jae 0x4d4345
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4d42f9
jmp 0x4d43e4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d43c2
cmp dword [ebp - 0x10], 0
je 0x4d43c2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5124f8]
test byte [eax + edi + 0x28], 0x48
je 0x4d439c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d4387
mov byte [esi], dl
jmp 0x4d4398
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5124f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4d43e4
cmp byte [ebp - 1], 0xa
jne 0x4d43ab
cmp esi, ebx
jne 0x4d43ab
mov byte [esi], 0xa
jmp 0x4d43e3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d4fc0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d43e4
mov byte [esi], 0xd
jmp 0x4d43e3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5124f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d43e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d43e4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d43ed
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 + 0x5124f8]
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 0x4d4433
cmp word [ebx], dx
jne 0x4d4433
or byte [eax + edi + 0x28], 4
jmp 0x4d4438
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 0x4d459b
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 0x4d457b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d4479
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d44af
cmp eax, edx
jae 0x4d44bd
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 0x4d4454
jmp 0x4d459b
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 0x4d4576
cmp dword [ebp - 0x18], 0
je 0x4d4576
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5124f8]
test byte [eax + edi + 0x28], 0x48
je 0x4d454c
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 0x4d4510
mov word [esi], cx
jmp 0x4d4547
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5124f8]
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 + 0x5124f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5124f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4d459b
pop eax
cmp word [ebp - 4], ax
jne 0x4d455c
cmp esi, ebx
jne 0x4d455c
mov word [esi], ax
jmp 0x4d4598
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d4fc0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d459b
push 0xd
pop eax
jmp 0x4d4557
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5124f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d4595
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d459b
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 0x4d5dc4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50f0e0]
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 0x4d5e0f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d5f5f
test al, al
jne 0x4d5e09
sub edx, 2
cmp edx, edi
jne 0x4d5def
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d5e31
lea eax, [edi + 2]
cmp edx, eax
je 0x4d5e31
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d5d10
add esp, 0x10
jmp 0x4d5f2b
push esi
lea ecx, [ebp - 0x255]
call fcn.004d5f5f
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 0x4d5e74
push dword [ebp - 0x25c]
jmp 0x4d5e21
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 0x4d5eb1
cmp word [ebp - 0x226], 0
je 0x4d5ed2
cmp word [ebp - 0x226], ax
jne 0x4d5eb1
cmp word [ebp - 0x224], 0
je 0x4d5ed2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d5d10
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d5f1e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d5e8b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d5f06
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d5f2b
push 0x4d5b40
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ddd50
add esp, 0x10
jmp 0x4d5efb
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.004bacd8
leave
ret

Function at 0x4d92a7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004d0fce
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 0x4d9316
cmp esi, dword [ebp - 4]
je 0x4d9311
cmp dword [ebp + 0xc], 0
je 0x4d9311
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d92ee
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d8df9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d9318
xor eax, eax
inc eax
jmp 0x4d9318
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d937d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50f0e0]
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.004d0fce
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.004d0fce
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 0x4d93f4
cmp word [ecx], dx
je 0x4d93f4
mov eax, dword [0x4fdf84]
push edi
dec eax
push eax
push 0x4fde70
call fcn.004d931c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d9467
cmp word [eax], dx
je 0x4d9467
mov eax, dword [edi]
test eax, eax
je 0x4d9418
cmp word [eax], dx
je 0x4d9418
lea eax, [ebp - 0x10]
push eax
call fcn.004d8cff
jmp 0x4d9421
lea eax, [ebp - 0x10]
push eax
call fcn.004d8d9a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d9491
mov eax, dword [0x4fde6c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4fdb60
call fcn.004d931c
add esp, 0xc
test al, al
je 0x4d9491
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d945c
cmp word [eax], di
je 0x4d945c
lea eax, [ebp - 0x10]
push eax
call fcn.004d8cff
pop ecx
jmp 0x4d9493
lea eax, [ebp - 0x10]
push eax
call fcn.004d8d9a
jmp 0x4d9459
mov eax, dword [edi]
test eax, eax
je 0x4d947e
cmp word [eax], dx
je 0x4d947e
lea eax, [ebp - 0x10]
push eax
call fcn.004d8cb4
pop ecx
jmp 0x4d9491
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 0x4d955c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d91a1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d955c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d955c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d955c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d94e9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d2e2d
test ebx, ebx
je 0x4d9557
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d2e2d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d955c
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 0x4d955c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004cb9fc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d955e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bacd8
leave
ret
Function at 0x4df150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4df17d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4df17d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405fd2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ff1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ff7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406026
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406076
test edi, edi
jne 0x406033
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406070
Function at 0x402558
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402566
call dword [0x40d010]
or eax, eax
je 0x402567
ret
mov al, 1
jmp fcn.004025d8

Function at 0x402570
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40257e
call dword [0x40d014]
or eax, eax
jne 0x40257f
ret
mov al, 2
jmp fcn.004025d8

Function at 0x402588
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025c0
test edx, edx
je 0x4025aa
push eax
mov eax, ecx
call dword [0x40d018]
pop ecx
or eax, eax
je 0x4025b9
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.004025d8
mov dword [eax], edx
mov eax, ecx
call dword [0x40d014]
or eax, eax
jne 0x4025a3
ret
mov al, 1
jmp fcn.004025d8
test edx, edx
je 0x4025d4
push eax
mov eax, edx
call dword [0x40d010]
pop ecx
or eax, eax
je 0x4025b9
mov dword [ecx], eax
ret

Function at 0x4025d8
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x40e004]
test ecx, ecx
je 0x4025e8
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402601]
jns 0x4025fc
call fcn.00405194
mov eax, dword [eax + 4]
jmp fcn.004031fc

Function at 0x40261c
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.00405194
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x402631
ret
xor eax, eax
jmp fcn.004025d8

Function at 0x4027e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40287c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40285c
xor eax, eax
push ebp
push 0x402855
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402898
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40285c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x4029e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40e018], 0
je 0x4026b3
call dword [0x40e018]
mov eax, 0xd2
jmp fcn.004031fc
push eax
push ecx
mov eax, dword [eax]
call fcn.004029b0
pop ecx
pop eax
je 0x4029ef
jmp ebx
pop ecx
jmp 0x4026a4
Function at 0x402f7c
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov esi, 0x40e49c
lea edi, [ebp - 0x3c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop dword [0x40e4bc]
pop dword [0x40e4b8]
mov dword [0x40e4b0], ebp
mov dword [0x40e4b4], ebx
mov dword [0x40e4a4], eax
mov dword [0x40e4ac], edx
lea ecx, [ebp - 0x3c]
mov dword [0x40e49c], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x402fc5
mov ecx, dword [eax]
mov dword [0x40e4a8], ecx
call fcn.00402e74
mov eax, dword [ebp + 0xc]
inc eax
mov byte [0x40e4c0], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [0x40e4c4], edx
je 0x402fe8
call dword [ecx + eax*4]
mov edx, dword [esp + 4]
test edx, edx
je 0x402ff5
mov eax, dword [ebp + 0xc]
call edx
cmp dword [0x40e01c], 0
jne 0x403005
mov byte [0x40e024], 1
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004030d8
call fcn.00402f1c
ret 4

Function at 0x4030d8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x40e49c
mov esi, 0x40e030
mov edi, 0x40e034
cmp byte [ebx + 0x24], 0
jne 0x403107
cmp dword [edi], 0
je 0x403107
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x4030f6
cmp dword [0x40e038], 0
je 0x40314e
call fcn.00403054
cmp byte [0x40e040], 0
je 0x403134
mov edx, 0x40d01c
mov eax, 0x40e214
call fcn.004049ac
call fcn.0040492f
jmp 0x403147
push 0
push 0x40d03c
push 0x40d01c
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x40e038], eax
cmp byte [ebx + 0x24], 2
jne 0x40315e
cmp dword [esi], 0
jne 0x40315e
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00402ebc
cmp byte [ebx + 0x24], 1
jbe 0x40316e
cmp dword [esi], 0
je 0x40318b
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40318b
call fcn.00404430
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x40318b
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00402e94
cmp byte [ebx + 0x24], 1
jne 0x403199
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x4031a4
call fcn.004030a4
cmp dword [ebx], 0
jne 0x4031b1
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x40314e

Function at 0x4031f0
Capabilities:
Terminate process

Disassembly:
mov dword [0x40e030], eax
jmp fcn.004030d8

Function at 0x4036c8
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.004025d8
test edx, edx
je fcn.0040368c
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.0040368c
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403684
ret
Function at 0x403718
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x40375f
cmp al, 0xb
je 0x403779
cmp al, 0xc
je 0x403790
cmp al, 0xd
je 0x40379f
cmp al, 0xe
je 0x4037bd
cmp al, 0xf
je 0x4037d3
cmp al, 0x11
je 0x4037e2
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.004025d8
cmp ecx, 1
mov eax, ebx
jg 0x403770
call fcn.00403208
jmp 0x4037f1
mov edx, ecx
call fcn.0040322c
jmp 0x4037f1
cmp ecx, 1
mov eax, ebx
jg 0x403787
call fcn.0040368c
jmp 0x4037f1
mov edx, ecx
call fcn.004036a4
jmp 0x4037f1
mov eax, ebx
add ebx, 0x10
call fcn.00403ea8
dec edi
jg 0x403790
jmp 0x4037f1
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00403718
dec edi
jg 0x4037a2
pop ebp
jmp 0x4037f1
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.004036ec
dec edi
jg 0x4037c0
pop ebp
jmp 0x4037f1
mov eax, ebx
add ebx, 4
call fcn.004044f8
dec edi
jg 0x4037d3
jmp 0x4037f1
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.0040409c
dec edi
jg 0x4037e2
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x4037f8
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00403718

Function at 0x403804
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
xor eax, eax
mov al, byte [ecx + 1]
lea edi, [ecx + eax + 0xa]
mov ebp, dword [edi - 4]
xor eax, eax
mov ecx, dword [edi - 8]
push ecx
mov ecx, dword [edi + 4]
sub ecx, eax
jle 0x403830
mov edx, eax
add eax, esi
add edx, ebx
call fcn.00402664
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x40386f
cmp cl, 0xb
je 0x403880
cmp cl, 0xc
je 0x403891
cmp cl, 0xd
je 0x4038a2
cmp cl, 0xe
je 0x4038c2
cmp cl, 0xf
je 0x4038db
cmp cl, 0x11
je 0x4038ec
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.004025d8
mov edx, dword [esi + eax]
add eax, ebx
call fcn.0040325c
mov eax, 4
jmp 0x4038fd
mov edx, dword [esi + eax]
add eax, ebx
call fcn.004036c8
mov eax, 4
jmp 0x4038fd
lea edx, [esi + eax]
add eax, ebx
call fcn.00403b9c
mov eax, 0x10
jmp 0x4038fd
xor ecx, ecx
mov cl, byte [edx + 1]
push dword [edx + ecx + 2]
push dword [edx + ecx + 6]
mov ecx, dword [edx + ecx + 0xa]
mov ecx, dword [ecx]
lea edx, [esi + eax]
add eax, ebx
call fcn.00403920
pop eax
jmp 0x4038fd
xor ecx, ecx
mov cl, byte [edx + 1]
mov ecx, dword [edx + ecx + 2]
push ecx
mov ecx, edx
lea edx, [esi + eax]
add eax, ebx
call fcn.00403804
pop eax
jmp 0x4038fd
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404510
mov eax, 4
jmp 0x4038fd
mov ecx, edx
mov edx, dword [esi + eax]
add eax, ebx
call fcn.004040d8
mov eax, 4
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x40381e
pop ecx
sub ecx, eax
jle 0x403919
lea edx, [ebx + eax]
add eax, esi
call fcn.00402664
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403920
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x14]
mov cl, byte [edi]
cmp cl, 0xa
je 0x403966
cmp cl, 0xb
je 0x40397d
cmp cl, 0xc
je 0x403991
cmp cl, 0xd
je 0x4039a5
cmp cl, 0xe
je 0x4039c6
cmp cl, 0xf
je 0x4039e3
cmp cl, 0x11
je 0x4039f7
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.004025d8
mov eax, ebx
mov edx, dword [esi]
call fcn.0040325c
add ebx, 4
add esi, 4
dec ebp
jne 0x403966
jmp 0x403a0b
mov eax, ebx
mov edx, dword [esi]
call fcn.004036c8
add ebx, 4
add esi, 4
dec ebp
jne 0x40397d
jmp 0x403a0b
mov eax, ebx
mov edx, esi
call fcn.00403b9c
add ebx, 0x10
add esi, 0x10
dec ebp
jne 0x403991
jmp 0x403a0b
xor ecx, ecx
mov cl, byte [edi + 1]
lea edi, [edi + ecx + 2]
mov eax, ebx
mov edx, esi
mov ecx, dword [edi + 8]
push dword [edi + 4]
call fcn.00403920
add ebx, dword [edi]
add esi, dword [edi]
dec ebp
jne 0x4039ae
jmp 0x403a0b
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.00403804
xor eax, eax
mov al, byte [edi + 1]
add ebx, dword [edi + eax + 2]
add esi, dword [edi + eax + 2]
dec ebp
jne 0x4039c6
jmp 0x403a0b
mov eax, ebx
mov edx, dword [esi]
call fcn.00404510
add ebx, 4
add esi, 4
dec ebp
jne 0x4039e3
jmp 0x403a0b
mov eax, ebx
mov edx, dword [esi]
mov ecx, edi
call fcn.004040d8
add ebx, 4
add esi, 4
dec ebp
jne 0x4039f7
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x403b9c
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.004025d8
cmp eax, edx
je 0x403c33
cmp word [eax], 8
jb 0x403bd4
push eax
push edx
cmp word [eax], 0x100
je 0x403bca
cmp word [eax], 0x101
je 0x403bc2
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x403bd2
call dword [0x40e3e0]
jmp 0x403bd2
add eax, 8
call fcn.00403208
pop edx
pop eax
cmp word [edx], 8
jae 0x403beb
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
je 0x403c06
cmp word [edx], 0x101
jne 0x403c1f
push eax
call 0x403bda
pop eax
jmp dword [0x40e3e8]
mov edx, dword [edx + 8]
or edx, edx
je 0x403c16
mov ecx, dword [edx - 8]
inc ecx
jle 0x403c16
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x403b50
ret