joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbca11b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0xbca1b8
push ebx
push esi
call fcn.00bca0d7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00bca014
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0xbca165
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xbca1b7
push edi
push eax
call fcn.00bcc91e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0xbca185
call fcn.00bc7df9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xbca1b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00bca014
add esp, 0x20
test eax, eax
jne 0xbca1a4
push edi
call fcn.00bc7df9
jmp 0xbca1ac
push ebx
call fcn.00bc7df9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0xbca1bb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0xbca1cc
pop esi
ret
push ebx
push edi
push esi
call fcn.00bca0d7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00bcc91e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0xbca1f4
push ebx
push esi
push edi
call fcn.00ba4a20
add esp, 0xc
push 0
call fcn.00bc7df9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0xbcaae3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00bca469

Function at 0xbcec36
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00bc7153
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 0xbceca5
cmp esi, dword [ebp - 4]
je 0xbceca0
cmp dword [ebp + 0xc], 0
je 0xbceca0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0xbcec7d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00bce788
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0xbceca7
xor eax, eax
inc eax
jmp 0xbceca7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0xbced0c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x11a0000]
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.00bc7153
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.00bc7153
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 0xbced83
cmp word [ecx], dx
je 0xbced83
mov eax, dword [0x108662c]
push edi
dec eax
push eax
push 0x1086518
call fcn.00bcecab
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0xbcedf6
cmp word [eax], dx
je 0xbcedf6
mov eax, dword [edi]
test eax, eax
je 0xbceda7
cmp word [eax], dx
je 0xbceda7
lea eax, [ebp - 0x10]
push eax
call fcn.00bce68e
jmp 0xbcedb0
lea eax, [ebp - 0x10]
push eax
call fcn.00bce729
cmp dword [ebp - 0x10], 0
pop ecx
jne 0xbcee20
mov eax, dword [0x1086514]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1086208
call fcn.00bcecab
add esp, 0xc
test al, al
je 0xbcee20
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0xbcedeb
cmp word [eax], di
je 0xbcedeb
lea eax, [ebp - 0x10]
push eax
call fcn.00bce68e
pop ecx
jmp 0xbcee22
lea eax, [ebp - 0x10]
push eax
call fcn.00bce729
jmp 0xbcede8
mov eax, dword [edi]
test eax, eax
je 0xbcee0d
cmp word [eax], dx
je 0xbcee0d
lea eax, [ebp - 0x10]
push eax
call fcn.00bce625
pop ecx
jmp 0xbcee20
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 0xbceeeb
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00bceb30
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0xbceeeb
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0xbceeeb
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0xbceeeb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0xbcee78
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00bcfbf9
test ebx, ebx
je 0xbceee6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00bcfbf9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0xbceeeb
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 0xbceeeb
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00bd4e83
add esp, 0x10
xor eax, eax
inc eax
jmp 0xbceeed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00b9be79
leave
ret
Function at 0xbcf86b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1087854
push 0x108784c
push str.FlsAlloc
push 0x1f
call fcn.00bcf539
mov esi, eax
add esp, 0x10
test esi, esi
je 0xbcf89f
push dword [ebp + 8]
mov ecx, esi
call dword [0xbe514c]
call esi
jmp 0xbcf8a5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xbcf8e9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1087864
push 0x108785c
push str.FlsGetValue
push 0x21
call fcn.00bcf539
mov esi, eax
add esp, 0x10
test esi, esi
je 0xbcf920
push dword [ebp + 8]
mov ecx, esi
call dword [0xbe514c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0xbcf928
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x108786c
push 0x1087864
push str.FlsSetValue
push 0x22
call fcn.00bcf539
mov esi, eax
add esp, 0x10
test esi, esi
je 0xbcf962
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0xbe514c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0xbdbfeb
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 + 0x11a1970]
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 0xbdc02b
cmp byte [ebx], 0xa
jne 0xbdc02b
or byte [edi + eax + 0x28], 4
jmp 0xbdc030
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 0xbdc12f
mov dl, byte [eax]
cmp dl, 0x1a
je 0xbdc112
inc eax
cmp dl, 0xd
je 0xbdc05c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0xbdc082
cmp eax, ecx
jae 0xbdc090
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 0xbdc044
jmp 0xbdc12f
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 0xbdc10d
cmp dword [ebp - 0x10], 0
je 0xbdc10d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x11a1970]
test byte [eax + edi + 0x28], 0x48
je 0xbdc0e7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xbdc0d2
mov byte [esi], dl
jmp 0xbdc0e3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x11a1970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xbdc12f
cmp byte [ebp - 1], 0xa
jne 0xbdc0f6
cmp esi, ebx
jne 0xbdc0f6
mov byte [esi], 0xa
jmp 0xbdc12e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00bdbe3d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xbdc12f
mov byte [esi], 0xd
jmp 0xbdc12e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x11a1970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xbdc12c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xbdc12f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xbdc138
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 + 0x11a1970]
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 0xbdc17e
cmp word [ebx], dx
jne 0xbdc17e
or byte [eax + edi + 0x28], 4
jmp 0xbdc183
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 0xbdc2e6
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 0xbdc2c6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0xbdc1c4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xbdc1fa
cmp eax, edx
jae 0xbdc208
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 0xbdc19f
jmp 0xbdc2e6
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 0xbdc2c1
cmp dword [ebp - 0x18], 0
je 0xbdc2c1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x11a1970]
test byte [eax + edi + 0x28], 0x48
je 0xbdc297
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 0xbdc25b
mov word [esi], cx
jmp 0xbdc292
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x11a1970]
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 + 0x11a1970]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x11a1970]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0xbdc2e6
pop eax
cmp word [ebp - 4], ax
jne 0xbdc2a7
cmp esi, ebx
jne 0xbdc2a7
mov word [esi], ax
jmp 0xbdc2e3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00bdbe3d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0xbdc2e6
push 0xd
pop eax
jmp 0xbdc2a2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x11a1970]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0xbdc2e0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0xbdc2e6
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 0xbe0de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xbe0e0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xbe0e0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x462090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a5b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d6394]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0045c800
mov dword [esi], 0x4ad638
mov dword [esp + 0x18], 0
test edi, edi
je 0x4620da
add edi, 0x28
jmp 0x4620dc
xor edi, edi
mov dword [esi + 0x28], vtable.P__PRaXDMR_i___Q_B3kHC_U27Ccnc__a2G.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4620f4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], 0x4ad618
mov dword [esi + 0x28], 0x4ad610
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4626b0
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push edi
push 0
push 0
push 0
push 0
push 0
call dword [0x4a4534]
mov edi, eax
test edi, edi
jne 0x4626d1
pop edi
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
push esi
push 0
push 0x84400000
push 0
push 0
push eax
push edi
call dword [0x4a4530]
mov esi, eax
test esi, esi
jne 0x462700
push edi
call dword [0x4a452c]
pop esi
xor eax, eax
pop edi
add esp, 8
ret 4
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x20000013
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
call dword [0x4a4528]
push edi
mov edi, dword [0x4a452c]
test eax, eax
jne 0x462742
call edi
push esi
call edi
pop esi
xor eax, eax
pop edi
add esp, 8
ret 4
call edi
push esi
call edi
xor eax, eax
cmp dword [esp + 8], 0xc8
pop esi
sete al
pop edi
add esp, 8
ret 4
Function at 0x401070
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
sub esp, 0x54
xor edx, edx
xor eax, eax
mov ecx, 0x10
mov dword [esp + 0x10], edx
push edi
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 4], edx
mov word [esp + 0x46], dx
mov dword [esp + 0x18], edx
mov dword [eax], edx
mov dword [esp + 0x48], edx
mov word [esp + 0x44], dx
mov dword [eax + 4], edx
lea ecx, [esp + 4]
mov dword [eax + 8], edx
lea eax, [esp + 0x14]
push ecx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], pe_nt_image_headers32
mov ecx, dword [esp + 0x64]
push edx
push edx
push 4
push edx
push edx
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4010ee
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
add esp, 0x54
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
add esp, 0x54
ret
Function at 0x401110
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Set current directory

Disassembly:
sub esp, 0x608
push ebx
push esi
push edi
push ebp
xor edi, edi
call section..text
mov esi, dword [esp + 0x61c]
push str.RT_RCDATA
lea eax, [edi + 0x3e8]
movzx ecx, ax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
push 0x405030
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi*4 + 0x404070]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov ebp, eax
je 0x4011c1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
inc edi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, 6
jl 0x401128
lea eax, [esp + 0x418]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x405030
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea eax, [esp + 0x18]
push str.RUNDLL32.EXE_setupapi.dll_InstallHinfSection_DefaultInstall_132
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x218]
push 0x200
push eax
push 0x405030
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x218]
lea eax, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push str.DIVX.INF
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
mov edi, 0x404070
push ecx
call fcn.00401070
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x18]
push 0x405030
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi - 4]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push ecx
call ebx
cmp edi, 0x404088
jb 0x40124f
lea eax, [esp + 0x418]
push eax
call esi
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x608
ret 0x10
Function at 0x4012a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402284
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40410c], eax
xor eax, eax
mov al, byte [0x40410d]
mov dword [0x404118], eax
mov eax, dword [0x40410c]
shr dword [0x40410c], 0x10
and eax, 0xff
mov dword [0x404114], eax
shl eax, 8
add eax, dword [0x404118]
mov dword [0x404110], eax
call fcn.00402240
test eax, eax
jne 0x401314
push 0x1c
call fcn.00401440
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402060
call fcn.00402050
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x405350], eax
call fcn.00401c00
mov dword [0x4040ec], eax
test eax, eax
je 0x401347
cmp dword [0x405350], 0
jne 0x401351
push 0xffffffffffffffff
call fcn.004014a0
add esp, 4
call fcn.00401980
call fcn.00401890
call fcn.00401470
mov esi, dword [0x405350]
mov al, byte [esi]
cmp al, 0x22
je 0x401378
cmp al, 0x20
jbe 0x4013a5
inc esi
cmp byte [esi], 0x20
ja 0x401370
jmp 0x4013a5
inc esi
cmp byte [esi], 0x22
je 0x4013a4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40139f
xor eax, eax
mov al, bl
push eax
call fcn.00401830
add esp, 4
test eax, eax
je 0x401399
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401381
cmp byte [esi], 0x22
jne 0x4013a5
inc esi
cmp byte [esi], 0
je 0x4013b5
cmp byte [esi], 0x20
ja 0x4013b5
inc esi
cmp byte [esi], 0
jne 0x4013aa
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4013d9
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004014a0
jmp 0x40141a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4014e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x404148], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4014fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x404144], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x404140], bl
jne 0x401558
cmp dword [0x405348], 0
je 0x401546
mov edi, dword [0x405344]
sub edi, 4
cmp edi, dword [0x405348]
jb 0x401546
mov eax, dword [edi]
test eax, eax
je 0x40153b
call eax
sub edi, 4
cmp edi, dword [0x405348]
jae 0x401533
push 0x404014
push 0x404010
call fcn.00401590
add esp, 8
push 0x40401c
push 0x404018
call fcn.00401590
add esp, 8
test ebx, ebx
jne 0x40157f
mov dword [0x404148], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x401c00
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4041f0], ebx
jne 0x401c4f
call esi
cmp eax, ebx
mov edi, eax
je 0x401c2d
mov dword [0x4041f0], 1
jmp 0x401c4f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x401c45
mov dword [0x4041f0], 2
jmp 0x401c4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4041f0], 1
jne 0x401cfe
test edi, edi
jne 0x401c72
call esi
mov edi, eax
test edi, edi
jne 0x401c72
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x401c8c
add esi, 2
cmp word [esi], 0
jne 0x401c7a
add esi, 2
cmp word [esi], 0
jne 0x401c7a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x401ced
push ebp
call fcn.004025f0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x401ced
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401cdc
push ebx
call fcn.004025a0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4041f0], 2
jne 0x401d82
test ebx, ebx
jne 0x401d21
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x401d21
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x401d36
inc ebp
cmp byte [ebp], 0
jne 0x401d28
inc ebp
cmp byte [ebp], 0
jne 0x401d28
sub ebp, ebx
inc ebp
push ebp
call fcn.004025f0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x401d5b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret