joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004560
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x100075d4]
test eax, eax
jne 0x100045d7
lea eax, [esp + 0x10]
mov byte [eax + 8], 0
mov dword [eax + 4], 0x32336c65
mov dword [eax], 0x6e72656b
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100045d2
mov dword [esp], 0x676e6147
mov dword [esp + 0xb], 0x6b6f6f
mov dword [esp + 8], 0x6f486e69
mov dword [esp + 4], 0x4d617473
mov byte [esp], 0x56
xor ecx, ecx
inc ecx
mov dl, byte [ecx + 0x10006220]
xor byte [esp + ecx], dl
inc ecx
cmp ecx, 0xe
jne 0x100045b2
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100075d4], eax
jmp 0x100045d7
mov eax, dword [0x100075d4]
add esp, 0x1c
ret
Function at 0x100254b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1013020]
push esi
mov esi, dword [ebp + 8]
push edi
push 8
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x208], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
mov eax, dword [ebp + 0xc]
sub eax, 5
je 0x1002668
sub eax, 6
je 0x1002633
sub eax, 8
je 0x100261c
dec eax
dec eax
je 0x1002609
dec eax
je 0x10025d1
dec eax
dec eax
jne 0x1002664
push dword [ebp - 0x208]
lea esi, [edi + 0x1c]
xor dword [esi], 0x800
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x10025cc
mov ecx, dword [esi]
shr ecx, 8
and ecx, 8
push ecx
push 0x18
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push esi
jmp 0x10025f8
lea ecx, [edi + 0x1c]
mov eax, dword [ecx]
test al, 2
jne 0x1002664
xor eax, 0x20
test al, 0x20
mov dword [ecx], eax
je 0x10025ee
and eax, 0xfffffdff
jmp 0x10025f3
or eax, 0x200
push 0
mov dword [ecx], eax
push ecx
call fcn.010099a8
push 0
push 1
push edi
call fcn.01002505
jmp 0x1002664
push esi
push edi
call fcn.01006024
test eax, eax
je 0x1002664
push 0
lea eax, [edi + 0x1c]
push eax
jmp 0x10025f8
push 0
push 0
push 0x8069
push dword [edi + 0x98]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1002664
push 0x100
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push 0x37
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.SHELL32.dll_ShellAboutW]
xor eax, eax
jmp 0x1002675
push 0
push 0
push edi
call fcn.01002505
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01009d93
leave
ret 0x10
Function at 0x1002d9e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
imul ebx, ebx, 0x38
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x88]
push 0x3ed
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [edi + 4]
lea ebx, [ebx + eax + 0x24]
call fcn.01002688
cmp dword [ebx + 8], 1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 8], eax
mov dword [ebx + 4], eax
je 0x1002df7
test eax, eax
je 0x1002e7c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1002e7c
test eax, eax
je 0x1002e78
push 0x1f4
push 0
push 0x405
push eax
call esi
push 0
push 0
push 0x406
push dword [ebp + 8]
call esi
push 0x3e9
push dword [ebp + 0xc]
push dword [edi + 4]
call fcn.01002688
test eax, eax
mov dword [ebp + 8], eax
je 0x1002e6d
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 0x14]
sub ecx, eax
push ecx
push dword [ebp - 0x10]
add eax, 0xfffffff1
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MoveWindow]
push 2
pop eax
or dword [edi + 8], eax
mov dword [ebx + 8], eax
jmp 0x1002e7c
and dword [ebx + 8], 0
mov eax, dword [edi + 0x88]
mov ecx, dword [ebp - 4]
push 0x3ea
push dword [ebp + 0xc]
lea ebx, [ecx + eax + 0xc]
push dword [edi + 4]
call fcn.01002688
test eax, eax
mov dword [ebp + 8], eax
mov dword [ebx + 4], eax
je 0x1002eea
push 0x400000
push 0
push 0x406
push eax
call esi
push 0
push 0x20
push 0x414
push dword [ebp + 8]
call esi
push 0x20
push 1
push 0x405
push dword [ebp + 8]
call esi
cmp dword [ebx + 8], 1
je 0x1002ee1
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x1002eee
mov dword [ebx + 8], 2
jmp 0x1002eee
and dword [ebx + 8], 0
mov ebx, dword [edi + 0x88]
add ebx, dword [ebp - 4]
push 0x3e9
push dword [ebp + 0xc]
push dword [edi + 4]
call fcn.01002688
test eax, eax
mov dword [ebp + 8], eax
mov dword [ebx + 4], eax
je 0x1002f5b
push 0x1f40000
push 0
push 0x406
push eax
call esi
push 0
push 0x54
push 0x414
push dword [ebp + 8]
call esi
cmp dword [ebx + 8], 1
je 0x1002f52
push 0x80
push 1
push 0x405
push dword [ebp + 8]
call esi
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x1002f5f
mov dword [ebx + 8], 2
jmp 0x1002f5f
and dword [ebx + 8], 0
mov eax, dword [edi + 0x88]
mov ecx, dword [ebp - 4]
push 0x3e8
push dword [ebp + 0xc]
lea esi, [ecx + eax + 0x18]
push dword [edi + 4]
call fcn.01002688
test eax, eax
mov dword [esi + 4], eax
je 0x1002f9d
cmp dword [esi + 8], 1
je 0x1002f94
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x1002fa1
mov dword [esi + 8], 2
jmp 0x1002fa1
and dword [esi + 8], 0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003ed2
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1013020]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
call fcn.01003e82
mov dword [ebp - 0x41c], eax
call fcn.010036de
xor ebx, ebx
cmp dword [ebp - 0x41c], ebx
je 0x100404f
push esi
push edi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x1001464
push dword [ebp - 0x41c]
xor esi, esi
inc esi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x428], 0x208
mov word [ebp - 8], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004038
cmp dword [ebp - 0x420], esi
jne 0x1004038
lea eax, [ebp - 0x210]
push 0x2c
push eax
call fcn.0100a170
cmp eax, ebx
pop ecx
pop ecx
je 0x1004020
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [eax + 2]
mov word [eax], bx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x424], ecx
call esi
mov edi, eax
cmp edi, ebx
jne 0x1003ff5
mov edi, 0x104
push edi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1004038
push 0x1001450
push edi
lea eax, [ebp - 0x418]
push eax
call fcn.0100f7d5
test eax, eax
jne 0x1004038
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
call fcn.0100f7d5
test eax, eax
jne 0x1004038
lea eax, [ebp - 0x418]
push eax
call esi
mov edi, eax
cmp edi, ebx
je 0x1004038
push 0x40
push ebx
push ebx
push 1
push dword [ebp - 0x424]
call fcn.0100a160
movzx eax, ax
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
mov dword [0x10139f8], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1004038
push 0x50
push ebx
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x10139f8], eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10139f8]
cmp eax, ebx
pop edi
pop esi
jne 0x1004060
push 0x12c
push dword [ebp - 0x42c]
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01009d93
leave
ret 8

Function at 0x100533a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
xor eax, eax
push 0xd
pop ecx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x34], 8
setne al
mov dword [ebp - 0x24], 0xf000
inc eax
shl eax, 0xc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
leave
ret 0xc
Function at 0x10060ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push 0
push 0x10014d8
push 0x80000001
call esi
mov ebx, eax
test ebx, ebx
jne 0x1006134
cmp dword [ebp + 8], eax
je 0x10060f4
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
mov ebx, eax
jmp 0x10060fa
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
test ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100612f
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x100612f
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x1006142
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0xc]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push 0x10014d8
push 0x80000001
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10061e8
cmp dword [ebp + 8], ebx
je 0x100618b
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
mov dword [ebp - 4], eax
jmp 0x1006191
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10061e3
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10061d9
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jne 0x10061d2
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10061d9
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x10061d9
mov dword [ebp - 4], 0xb
cmp dword [ebp + 8], ebx
je 0x10061e3
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10061f7
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push 0x10014d8
push 0x80000001
call edi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1006294
cmp dword [ebp + 8], esi
je 0x1006248
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call edi
mov dword [ebp - 4], eax
jmp 0x100624e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100628f
cmp dword [ebp + 0x14], esi
je 0x1006276
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1006282
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], eax
je 0x100628f
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1009d93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1013020]
jne 0x1009da4
test ecx, 0xffff0000
jne 0x1009da4
ret
jmp fcn.01009dae

Function at 0x1009f23
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x1001688
call fcn.0100b07c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100a0e4
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x1009f7f
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100a0e4
mov eax, dword [esi + 0x10]
mov dword [0x1013f44], eax
mov eax, dword [esi + 4]
mov dword [0x1013f50], eax
mov eax, dword [esi + 8]
mov dword [0x1013f54], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x1013f48], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x1013f44], 2
je 0x1009fc0
or byte [0x1013f49], 0x80
mov eax, dword [0x1013f50]
shl eax, 8
add eax, dword [0x1013f54]
mov dword [0x1013f4c], eax
call fcn.01009ec2
mov dword [ebp - 0x1c], eax
push ebx
call fcn.0100b01f
pop ecx
test eax, eax
jne 0x100a007
cmp dword [0x1013f2c], 1
jne 0x1009ff4
call fcn.0100a7f1
push 0x1c
call fcn.0100a68b
push 0xff
call fcn.0100a4ea
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.0100ae38
test eax, eax
jge 0x100a01f
push 0x1b
call fcn.01009e93
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1015c70], eax
call fcn.0100ad0b
mov dword [0x1013f24], eax
call fcn.0100ac63
test eax, eax
jge 0x100a045
push 8
call fcn.01009e93
pop ecx
call fcn.0100aa0b
test eax, eax
jge 0x100a056
push 9
call fcn.01009e93
pop ecx
call fcn.0100a544
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x100a069
push eax
call fcn.01009e93
pop ecx
call fcn.0100a9a7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100a07d
movzx eax, word [ebp - 0x40]
jmp 0x100a080
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x1000000
call fcn.010049c5
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100a09f
push esi
call fcn.0100a624
call fcn.0100a65c
jmp 0x100a0d1
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x100a0e9
mov eax, 0xff
call fcn.0100b0b7
ret
Function at 0x100a68b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x1013060]
je 0x100a6ad
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x100a69b
cmp esi, 0x13
je 0x100a7e9
mov eax, dword [0x1013f2c]
cmp eax, 1
push ebx
je 0x100a7b8
test eax, eax
jne 0x100a6d6
cmp dword [0x1013028], 1
je 0x100a7b8
cmp ecx, 0xfc
je 0x100a7e8
push edi
push 6
pop ecx
mov esi, 0x1001f28
mov edi, 0x1013f88
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x1013fa2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x10140a6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100a724
push 5
pop ecx
mov esi, 0x1001f10
mov edi, 0x1013fa2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a729
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100a75c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a73d
sub eax, edx
push 3
lea eax, [eax + 0x1013f67]
push 0x1001f0c
push eax
call fcn.0100bb00
add esp, 0xc
mov edx, 0x1013f88
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100a764
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1013064]
mov esi, 0x1001f08
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a780
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100a78c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001ee0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100b9f6
add esp, 0xc
pop edi
jmp 0x100a7e8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100a7e8
mov edx, dword [esi*8 + 0x1013064]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100a7d0
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x100ad0b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10143b0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100ad57
call esi
mov edi, eax
cmp edi, ebx
je 0x100ad3d
mov dword [0x10143b0], 1
jmp 0x100ad5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100ad52
push 2
pop eax
mov dword [0x10143b0], eax
jmp 0x100ad57
mov eax, dword [0x10143b0]
cmp eax, 1
jne 0x100add4
cmp edi, ebx
jne 0x100ad68
call esi
mov edi, eax
cmp edi, ebx
je 0x100addd
cmp word [edi], bx
mov eax, edi
je 0x100ad7d
inc eax
inc eax
cmp word [eax], bx
jne 0x100ad6f
inc eax
inc eax
cmp word [eax], bx
jne 0x100ad6f
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x100adcb
call fcn.0100c0cf
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100adcb
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100adc8
push dword [ebp - 4]
call fcn.0100c08d
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100ae2c
cmp eax, 2
je 0x100ade1
cmp eax, ebx
je 0x100ade1
xor eax, eax
jmp 0x100ae2e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100addd
cmp byte [esi], bl
je 0x100adfe
inc eax
cmp byte [eax], bl
jne 0x100adf4
inc eax
cmp byte [eax], bl
jne 0x100adf4
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.0100c0cf
cmp eax, ebx
je 0x100ae25
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b9f6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10143e8], ebx
push esi
push edi
jne 0x100ba78
push 0x1001fdc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100bab3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001fd0
push edi
call esi
test eax, eax
mov dword [0x10143e8], eax
je 0x100bab3
push 0x1001fc0
push edi
call esi
push 0x1001fac
push edi
mov dword [0x10143ec], eax
call esi
cmp dword [0x1013f44], 2
mov dword [0x10143f0], eax
jne 0x100ba78
push 0x1001f90
push edi
call esi
test eax, eax
mov dword [0x10143f8], eax
je 0x100ba78
push 0x1001f78
push edi
call esi
mov dword [0x10143f4], eax
mov eax, dword [0x10143f4]
test eax, eax
je 0x100babd
call eax
test eax, eax
je 0x100baa4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10143f8]
test eax, eax
je 0x100baa4
test byte [ebp - 8], 1
jne 0x100babd
cmp dword [0x1013f50], 4
jb 0x100bab7
or byte [ebp + 0x12], 0x20
jmp 0x100badc
xor eax, eax
jmp 0x100baec
or byte [ebp + 0x12], 4
jmp 0x100badc
mov eax, dword [0x10143ec]
test eax, eax
je 0x100badc
call eax
mov ebx, eax
test ebx, ebx
je 0x100badc
mov eax, dword [0x10143f0]
test eax, eax
je 0x100badc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10143e8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100cae6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100cb17
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100cb1e
cmp ebx, dword [ebp + 8]
jae 0x100cb1e
xor eax, eax
jmp 0x100cd0e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100cb2f
xor eax, eax
inc eax
jmp 0x100cd0d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100cb45
cmp ecx, edx
jae 0x100cc8a
cmp dword [eax + 4], 0
je 0x100cb4e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100cb36
cmp dword [ebp + 8], 0
je 0x100cb70
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100cc8a
cmp eax, esi
jae 0x100cc8a
mov eax, dword [0x1014400]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100cb95
cmp dword [esi*4 + 0x1014408], edi
je 0x100cc8e
inc esi
cmp esi, eax
jl 0x100cb83
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100cd0a
cmp dword [ebp - 8], 0x1000000
jne 0x100cd0a
test byte [ebp - 0xc], 0xcc
je 0x100cc13
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100cd0a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100cd0a
cmp word [eax + 0x18], 0x10b
jne 0x100cd0a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100cd0a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100cc13
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100cc13
test byte [ecx + 0x27], 0x80
jne 0x100cc8a
push 1
push 0x1014448
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100cb27
mov ecx, dword [0x1014400]
test ecx, ecx
mov edx, ecx
jle 0x100cc47
lea eax, [ecx*4 + 0x1014404]
cmp dword [eax], edi
je 0x100cc47
dec edx
sub eax, 4
test edx, edx
jg 0x100cc3b
test edx, edx
jne 0x100cc78
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100cc54
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100cc6c
lea eax, [edx*4 + 0x1014408]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100cc5a
cmp ecx, 0x10
jge 0x100cc78
inc ecx
mov dword [0x1014400], ecx
push 0
push 0x1014448
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100cb27
xor eax, eax
jmp 0x100cd0d
test esi, esi
jle 0x100cb27
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1014448
call ebx
test eax, eax
jne 0x100cb27
cmp dword [esi*4 + 0x1014408], edi
je 0x100cce4
mov eax, dword [0x1014400]
lea esi, [eax - 1]
test esi, esi
jl 0x100ccd2
cmp dword [esi*4 + 0x1014408], edi
je 0x100ccce
dec esi
jns 0x100ccc2
test esi, esi
jge 0x100cce2
cmp eax, 0x10
jge 0x100ccdd
inc eax
mov dword [0x1014400], eax
lea esi, [eax - 1]
jmp 0x100cce4
je 0x100ccfc
xor ecx, ecx
test esi, esi
jl 0x100ccfc
lea eax, [ecx*4 + 0x1014408]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100ccea
push 0
push 0x1014448
call ebx
jmp 0x100cb27
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret