joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100181c4
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 0x10018261
push ebx
push esi
call fcn.10018180
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.100184be
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001820e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018260
push edi
push eax
call fcn.100133de
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001822e
call fcn.10012413
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001825f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100184be
add esp, 0x20
test eax, eax
jne 0x1001824d
push edi
call fcn.10012413
jmp 0x10018255
push ebx
call fcn.10012413
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 0x10018264
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10018275
pop esi
ret
push ebx
push edi
push esi
call fcn.10018180
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100133de
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1001829d
push ebx
push esi
push edi
call fcn.10025090
add esp, 0xc
push 0
call fcn.10012413
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10018c93
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001878a

Function at 0x1001d27e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10012bce
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 0x1001d2ed
cmp esi, dword [ebp - 4]
je 0x1001d2e8
cmp dword [ebp + 0xc], 0
je 0x1001d2e8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001d2c5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001cdd0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001d2ef
xor eax, eax
inc eax
jmp 0x1001d2ef
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001d354
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101d891c]
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.10012bce
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.10012bce
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 0x1001d3cb
cmp word [ecx], dx
je 0x1001d3cb
mov eax, dword [0x1019fee4]
push edi
dec eax
push eax
push 0x1019fdd0
call fcn.1001d2f3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001d43e
cmp word [eax], dx
je 0x1001d43e
mov eax, dword [edi]
test eax, eax
je 0x1001d3ef
cmp word [eax], dx
je 0x1001d3ef
lea eax, [ebp - 0x10]
push eax
call fcn.1001ccd6
jmp 0x1001d3f8
lea eax, [ebp - 0x10]
push eax
call fcn.1001cd71
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001d468
mov eax, dword [0x1019fdcc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1019fac0
call fcn.1001d2f3
add esp, 0xc
test al, al
je 0x1001d468
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001d433
cmp word [eax], di
je 0x1001d433
lea eax, [ebp - 0x10]
push eax
call fcn.1001ccd6
pop ecx
jmp 0x1001d46a
lea eax, [ebp - 0x10]
push eax
call fcn.1001cd71
jmp 0x1001d430
mov eax, dword [edi]
test eax, eax
je 0x1001d455
cmp word [eax], dx
je 0x1001d455
lea eax, [ebp - 0x10]
push eax
call fcn.1001cc6d
pop ecx
jmp 0x1001d468
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 0x1001d533
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001d178
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001d533
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001d533
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001d533
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001d4c0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100162d0
test ebx, ebx
je 0x1001d52e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100162d0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001d533
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 0x1001d533
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10022aae
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001d535
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001056a
leave
ret
Function at 0x1002332b
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 + 0x101dffa8]
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 0x1002336b
cmp byte [ebx], 0xa
jne 0x1002336b
or byte [edi + eax + 0x28], 4
jmp 0x10023370
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 0x1002346f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10023452
inc eax
cmp dl, 0xd
je 0x1002339c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100233c2
cmp eax, ecx
jae 0x100233d0
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 0x10023384
jmp 0x1002346f
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 0x1002344d
cmp dword [ebp - 0x10], 0
je 0x1002344d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101dffa8]
test byte [eax + edi + 0x28], 0x48
je 0x10023427
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10023412
mov byte [esi], dl
jmp 0x10023423
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101dffa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002346f
cmp byte [ebp - 1], 0xa
jne 0x10023436
cmp esi, ebx
jne 0x10023436
mov byte [esi], 0xa
jmp 0x1002346e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10024424
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002346f
mov byte [esi], 0xd
jmp 0x1002346e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101dffa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002346c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002346f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10023478
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 + 0x101dffa8]
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 0x100234be
cmp word [ebx], dx
jne 0x100234be
or byte [eax + edi + 0x28], 4
jmp 0x100234c3
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 0x10023626
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 0x10023606
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10023504
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002353a
cmp eax, edx
jae 0x10023548
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 0x100234df
jmp 0x10023626
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 0x10023601
cmp dword [ebp - 0x18], 0
je 0x10023601
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101dffa8]
test byte [eax + edi + 0x28], 0x48
je 0x100235d7
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 0x1002359b
mov word [esi], cx
jmp 0x100235d2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101dffa8]
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 + 0x101dffa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101dffa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10023626
pop eax
cmp word [ebp - 4], ax
jne 0x100235e7
cmp esi, ebx
jne 0x100235e7
mov word [esi], ax
jmp 0x10023623
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10024424
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10023626
push 0xd
pop eax
jmp 0x100235e2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101dffa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10023620
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10023626
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 0x10031a28
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push edi
xor edi, edi
test eax, eax
je 0x10031bf5
cmp word [eax], di
je 0x10031bf5
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x10031bf1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x10031be7
push ebx
push ebp
call fcn.10031fc8
mov ebx, eax
test ebx, ebx
je 0x10031be6
push esi
push 2
pop eax
cmp ebp, 0xffffffff
cmovne eax, ebp
push eax
push dword [esp + 0x20]
call fcn.1003244f
mov esi, eax
test esi, esi
je 0x10031bdc
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], ebx
cmove eax, esi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 8
mov dword [esi + 0x40], edi
push eax
push edi
mov dword [esi + 0x14], edi
push dword [0x101df4f0]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x10031b02
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x10031b0e
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.10056f40
mov edx, dword [esp + 0x2c]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x10031b31
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.10056800
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x10031bcb
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
jne 0x10031bbb
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x10031b84
push ecx
push dword [esp + 0x18]
call fcn.10032073
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jl 0x10031b8e
push 1
jmp 0x10031b8f
push edi
push ecx
push ebx
call fcn.10056b30
add esp, 0xc
test eax, eax
je 0x10031baf
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jl 0x10031b26
jmp 0x10031bd9
push ebx
call fcn.10056b10
pop ecx
mov dword [esi + 0x18], eax
jmp 0x10031bd2
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x10031bd9
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.1003211f
mov dword [esi + 0x2c], edi
push ebx
call fcn.10056c70
pop ecx
mov edi, esi
pop esi
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x10031bf7
xor eax, eax
pop edi
pop ebp
pop ecx
pop ecx
ret 0xc
Function at 0x1003271e
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x100327b9
push edi
push 0x101e295c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x101e08ec]
test edi, edi
je 0x1003278c
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10032785
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x101e08ec
call fcn.1004fa23
pop ecx
pop ecx
jmp 0x10032787
mov edi, dword [edi]
test edi, edi
jne 0x1003275a
pop ebp
mov esi, dword [0x101d9190]
push 0x10
push 0x101e08ec
lea eax, [esi + 1]
mov dword [0x101d9190], eax
call fcn.1004fa63
pop ecx
pop ecx
push 0x101e295c
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x10032a87
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10032b0d
push edi
push dword [ebp + 8]
push dword [0x101e297c]
call fcn.1004f6ff
mov edi, eax
test edi, edi
je 0x10032b0c
cmp dword [ebp + 0x10], 0x19
jne 0x10032acd
push 0
lea eax, [ebp - 4]
push eax
push esi
call fcn.1001c895
pop ecx
add eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10032b0c
cmp dword [ebp + 0x10], 2
push esi
jne 0x10032adb
call fcn.10158bf0
jmp 0x10032ae0
call fcn.10158e50
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.1016fc40
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 2
push esi
jne 0x10032b07
call fcn.10158be0
jmp 0x10032b0c
call fcn.10158e40
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc
Function at 0x10032ca7
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x10032cfc
push dword [esp + 0x10]
push 0x10032c26
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x101e08f4]
test edi, edi
je 0x10032d55
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x10032cf4
cmp byte [edi + 0x10], 0
je 0x10032cf4
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x10032cd0
jmp 0x10032d55
mov edi, dword [0x101e08f4]
test edi, edi
je 0x10032d55
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x10032d4e
cmp byte [edi + 0x11], 0
je 0x10032d27
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x10032d3e
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x101e08f4
call fcn.1004fa23
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x10032d09
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x100338e2
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x10033944
cmp word [esi], di
je 0x10033944
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10079220
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.100794b0
add esp, 0x10
test eax, eax
jne 0x10033943
push 0x2c
push 8
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x28], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x10034152
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, ebp
test esi, esi
je 0x10034258
push dword [esp + 0x18]
push dword [0x101e29fc]
call fcn.1004f6ff
test eax, eax
je 0x10034258
push esi
call fcn.1004220f
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 1
push SysReAllocStringLen
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x10034258
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx - 1]
cmp eax, 0x5f5e0fe
ja 0x10034250
push ebx
push ebp
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x10034250
push edi
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x24], ebx
jne 0x10034240
mov esi, dword [esp + 0x28]
xor eax, eax
test esi, esi
je 0x100341fe
cmp word [esi], ax
jne 0x1003422a
mov esi, 0x101a52e8
mov edi, eax
push dword [esp + 0x10]
push dword [edi*8 + 0x101d919c]
call fcn.10020eda
pop ecx
pop ecx
test eax, eax
je 0x10034223
inc edi
cmp edi, 0x5d
jb 0x10034205
jmp 0x1003422a
mov esi, dword [edi*8 + 0x101d9198]
push esi
push ebx
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.10034e17
mov esi, dword [esp + 0x14]
mov edi, eax
push ebp
xor eax, eax
push eax
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret 0x10
Function at 0x1003499c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x101e29fc]
call fcn.1004f6ff
mov edi, eax
test edi, edi
je 0x10034ad3
cmp dword [ebp + 0xc], ebx
je 0x10034ad3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x2c], 0xa
cmp dword [edi + 0x18], ebx
je 0x100349e6
push dword [edi + 0x18]
push ebx
push dword [0x101df4f0]
call esi
cmp dword [edi + 0x1c], ebx
je 0x100349f7
push dword [edi + 0x1c]
push ebx
push dword [0x101df4f0]
call esi
cmp dword [edi + 0x20], ebx
je 0x10034a08
push dword [edi + 0x20]
push ebx
push dword [0x101df4f0]
call esi
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], eax
cmp dword [ebp + 0x18], ebx
je 0x10034a32
push dword [ebp + 0x18]
call fcn.10158e50
mov esi, eax
push esi
call fcn.10034f7d
push esi
mov dword [edi + 0x18], eax
call fcn.10158e40
cmp dword [ebp + 0x1c], ebx
je 0x10034a50
push dword [ebp + 0x1c]
call fcn.10158e50
mov esi, eax
push esi
call fcn.10034f7d
push esi
mov dword [edi + 0x1c], eax
call fcn.10158e40
push dword [ebp + 0xc]
call fcn.10158e50
mov esi, eax
push esi
call fcn.1016fc40
pop ecx
sub eax, 0xffffff80
push eax
push ebx
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0x10]
test byte [ebp + 0x14], 4
mov ecx, str.smtps:___s:_d
mov dword [edi + 0x20], eax
mov eax, str.smtp:___s:_d
push esi
cmovne eax, ecx
push eax
push dword [edi + 0x20]
call fcn.100334fa
add esp, 0x10
push esi
call fcn.10158e40
test byte [ebp + 0x14], 1
pop esi
je 0x10034aca
lea eax, [ebp + 0x14]
push eax
push ebx
push edi
push 0x10034cc5
push 0x20000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10034ad3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x10034ad3
push edi
call fcn.10034b32
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 0x18

Function at 0x10035432
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, edi
test eax, eax
je 0x100354cd
cmp word [eax], di
je 0x100354cd
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100354c8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100354c0
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x100354b1
push dword [esp + 0x1c]
push ebx
push edi
push dword [esp + 0x20]
call fcn.10035645
mov ebp, eax
push edi
push 0
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, ebp
pop esi
jmp 0x100354cf
xor eax, eax
pop edi
pop ebp
ret 0xc
Function at 0x1003758b
Capabilities:
Reference http user-agent string

Disassembly:
push str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.100375a0
ret 8

Function at 0x100375a0
Capabilities:
Create thread

Disassembly:
push ebx
push edi
push dword [0x101e2a18]
xor edi, edi
call fcn.1004f0c7
mov ebx, eax
cmp dword [esp + 0xc], edi
je 0x10037655
push ebp
push esi
push 0x60
push 8
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x14]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call fcn.101718db
push dword [esp + 0x20]
mov dword [esi + 8], eax
call fcn.101718db
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x58], ebp
test cl, 1
je 0x10037643
lea eax, [esp + 0x14]
push eax
push edi
push esi
push 0x100377eb
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10037631
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10037637
cmp dword [esp + 0x14], edi
je 0x1003763b
mov edi, esi
jmp 0x10037653
push esi
call fcn.100379c2
jmp 0x10037652
push esi
call fcn.1003766a
push esi
mov edi, eax
call fcn.100379c2
pop ecx
pop ecx
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 0xc