joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486855
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x50c7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4868df
cmp dword [esi + 0x10], 0
je 0x4868df
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00497000
mov ebx, esp
test ebx, ebx
je 0x4868df
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.00459204
mov ecx, dword [esi + 0x10]
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.0045e781
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0045b886
test al, al
je 0x4868df
mov ecx, dword [esi + 0x10]
call fcn.00462dfa
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496ca3
leave
ret 0x10

Function at 0x486f39
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50c7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004646e0
mov ecx, dword [ebx + 0x6e8]
test ecx, ecx
je 0x486fbd
lea eax, [ebp - 0x14]
push eax
call fcn.00485dae
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6e8]
test eax, eax
je 0x486f99
push 0
call fcn.0045963c
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x486fbd
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0045963c
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496ca3
leave
ret 0x14

Function at 0x489a6b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50c7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00462edd
mov ecx, dword [esi + 0x700]
test ecx, ecx
je 0x489ae7
lea eax, [ebp - 0x14]
push eax
call fcn.004895d3
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x700]
test eax, eax
je 0x489ac3
push 0
call fcn.0045963c
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x489ae7
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0045963c
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00496ca3
leave
ret 0xc
Function at 0x489bd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50c7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004646e0
mov ecx, dword [ebx + 0x700]
test ecx, ecx
je 0x489c54
lea eax, [ebp - 0x14]
push eax
call fcn.004895d3
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x700]
test eax, eax
je 0x489c30
push 0
call fcn.0045963c
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x489c54
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0045963c
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496ca3
leave
ret 0x14
Function at 0x48ca23
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x4cff09
call fcn.00496d1f
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0045b67f
push eax
lea ecx, [ebp - 0x94]
call fcn.00459099
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0045b685
mov ecx, eax
call fcn.0045978d
test al, al
je 0x48cb11
push ebx
lea ecx, [ebp - 0x94]
call fcn.0045928d
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.004582b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48cab4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00459170
jmp 0x48cbf2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x48caa0
push esi
mov dword [ebp - 0x2c8], edi
call fcn.0049702c
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x48cbdd
push edi
call fcn.00496dc7
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00459170
jmp 0x48cbf0
call fcn.0045b685
push eax
lea ecx, [ebp - 0x94]
call fcn.00459270
call fcn.0045b879
test al, al
je 0x48cb32
call fcn.0045b68b
jmp 0x48cb49
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004582b0
push eax
call fcn.0047a4ad
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x48caa0
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.00479eed
add esp, 0x14
test eax, eax
jne 0x48caa0
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x48caa0
push esi
call fcn.0049702c
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0047a884
add esp, 0x18
test eax, eax
je 0x48cbcd
cmp eax, 0x600
je 0x48cbcd
push edi
call fcn.00496dc7
pop ecx
call fcn.0045b879
test al, al
jne 0x48cafd
push ebx
call fcn.00479d49
jmp 0x48cafc
call fcn.0045b879
test al, al
jne 0x48cbdd
push ebx
call fcn.00479d49
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00459170
test edi, edi
jne 0x48cc64
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48cc60
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x48cc60
push esi
mov dword [ebp - 0x2d0], edi
call fcn.0049702c
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x48cc5c
push edi
call fcn.00496dc7
pop ecx
xor edi, edi
test edi, edi
jne 0x48cc64
xor eax, eax
jmp 0x48cc7f
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0048cc87
push 1
push edi
mov esi, eax
call fcn.00496a18
pop ecx
pop ecx
mov eax, esi
call fcn.00496cc9
ret 4
Function at 0x4938e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x493912
cmp eax, edi
jge 0x493906
push esi
call fcn.0048fddd
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x493935
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x49391b
mov dword [esi + 8], edx
jmp 0x49394a
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x493940
xor dl, dl
jmp 0x493945
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x493935
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x493984
push str.zlib_corrupt
call fcn.0048fd08
add esp, 4
jmp 0x4939c4
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x493994
push str.read_past_buffer
jmp 0x49397a
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4939ae
push edi
push ecx
push esi
call fcn.00496400
add esp, 0xc
test eax, eax
je 0x4939c4
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0049e730
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x49a028
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x49a077
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49a077
cmp esi, dword [ebp + 0x10]
je 0x49a072
push 0x4d18d0
push 1
push edi
push edi
call fcn.004996c0
jmp 0x49a085
xor eax, eax
inc eax
jmp 0x49a08a
mov eax, 0x4d18d0
push eax
push eax
push edi
push edi
call fcn.0049970d
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x49b277
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x49b2a1
mov eax, 0x4d18d0
push eax
push eax
push 0
push 0
call fcn.0049970d
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x49c2da
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x49c726
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x4cffa7
call fcn.00496ceb
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.0049c56a
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x49c772
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00496cb4
ret 4
push 0x506044
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.0049f38a
int3

Function at 0x49c93e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.0049cad2
mov edi, eax
test edi, edi
je 0x49c9c9
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x49c979
mov esi, edi
jmp 0x49c9b5
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x49c9ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49c9a1
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.0049ca6d
jmp 0x49c9b5
push 0x4ec708
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x49c9b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.0049cad2
mov edi, eax
test edi, edi
jne 0x49c96e
test esi, esi
jne 0x49c9de
mov ecx, dword [ebx]
add ecx, 8
call fcn.0049cc5a
mov esi, eax
test esi, esi
je 0x49c9de
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4bbe01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bbc80

Function at 0x4c1164
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c0e24

Function at 0x43b666
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
inc ecx
and ecx, ecx
inc ebx
call fcn.0043b6ad
or ebx, ebx
sub ebx, 0xac75e624
push 0x8c64ed30
mov ecx, dword [esp]
add esp, 4
xor dword [edi], edx
sub ebx, 1
add ecx, 0xeee65e0c
add ebx, 1
inc edi
mov ebx, 0x4f935ac7
inc ecx
cmp edi, eax
jne fcn.0043b666
dec ebx
inc ecx
and ecx, ecx
ret
Function at 0x30001957
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
jne 0x3000198f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.3000192c
mov ebx, eax
jmp 0x30001a4a
cmp dword [ebp - 4], 1
jle 0x30001a34
push dword [esi + 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push 0x30001170
call ebx
test eax, eax
jne 0x30001a34
and dword [ebp - 8], eax
cmp dword [ebp - 4], 4
jl 0x30001a34
push dword [esi + 0xc]
mov eax, dword [esi + 8]
push 0x3000115c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 3
call ebx
test eax, eax
jne 0x300019e6
cmp dword [ebp - 4], 6
jne 0x30001a34
mov eax, dword [esi + 0x10]
push 5
mov dword [ebp - 8], eax
pop eax
jmp 0x300019e9
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 1]
cmp ecx, dword [ebp - 4]
jne 0x30001a34
push 0
push dword [esi + eax*4]
call fcn.30003450
mov edi, eax
test edi, edi
jne 0x30001a08
mov ebx, 0x80004005
jmp 0x30001a39
lea ebx, [edi + 8]
push ebx
push dword [edi]
call fcn.30004072
mov ebx, dword [ebx]
test ebx, ebx
jne 0x30001a21
cmp dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jne 0x30001a24
mov eax, dword [ebp - 0x10]
push ebx
push eax
push dword [edi + 4]
push dword [edi]
call fcn.30004aa6
mov ebx, eax
jmp 0x30001a39
mov ebx, 0x80070057
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x30001a4a
push edi
call fcn.30003307
xor eax, eax
test ebx, ebx
setl al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x30003018
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
lea ebx, [esi + 8]
cmp eax, dword [ebx]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x30003171
push 0x802
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
cmp edx, edi
mov dword [ebp - 4], edx
je 0x30003186
xor eax, eax
mov ecx, 0x200
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x30003083
push eax
push ebx
push 0x800
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30003178
jmp 0x30003098
mov ecx, dword [eax]
push ebx
push 0x800
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x30003178
mov ecx, dword [ebx]
test ecx, ecx
je 0x30003178
mov edi, dword [ebp - 4]
xor edx, edx
cmp dword [esi + 0x14], edx
jne 0x300030dd
mov al, byte [edi]
cmp al, 0xff
jne 0x300030c1
cmp byte [edi + 1], 0xfe
jne 0x300030c1
mov dword [esi + 0x18], 1
jmp 0x300030d4
cmp al, 0xfe
jne 0x300030d4
cmp byte [edi + 1], 0xff
jne 0x300030d4
xor eax, eax
inc eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
mov dword [ebp + 8], eax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], edx
je 0x300030e6
shr ecx, 1
mov dword [ebx], ecx
cmp dword [esi + 0x1c], edx
je 0x30003110
mov ecx, dword [ebx]
lea ecx, [ecx + ecx - 2]
cmp ecx, edx
jbe 0x30003110
lea eax, [edi + 1]
lea edi, [ecx - 1]
shr edi, 1
inc edi
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
inc eax
inc eax
dec edi
jne 0x300030fe
mov edi, dword [ebp - 4]
cmp dword [esi + 0x18], 0
je 0x30003127
push dword [esi + 0x10]
call fcn.300032f7
and dword [ebp - 4], 0
mov dword [esi + 0x10], edi
jmp 0x30003161
test byte [0x300060cc], 1
jne 0x30003142
or dword [0x300060cc], 1
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x300060c8], eax
push 0x800
push dword [esi + 0x10]
push dword [ebx]
push edi
push 0
push dword [0x300060c8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebx], eax
je 0x30003178
xor eax, eax
cmp dword [ebp + 8], eax
je 0x3000316e
cmp dword [esi + 0x18], eax
je 0x3000316e
inc eax
mov dword [esi + 0xc], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x30003186
push dword [ebp - 4]
call fcn.300032f7
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x30003340
Capabilities:
Download url
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [section..cdata]
push ebx
push edi
mov edi, dword [ebp + 0x198]
xor ebx, ebx
push edi
mov dword [ebp + 0x18c], eax
mov dword [ebp - 0x80], ebx
call fcn.30001d3e
test eax, eax
jne 0x300033df
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push 7
push edi
push 0x30001814
call esi
test eax, eax
je 0x300033a1
push 8
push edi
push 0x30001800
call esi
test eax, eax
je 0x300033a1
push 6
push edi
push 0x300017f0
call esi
test eax, eax
jne 0x300033de
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], bx
je 0x300033af
inc eax
inc eax
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
test eax, eax
je 0x300033de
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
push edi
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x300033de
lea eax, [ebp - 0x7c]
push eax
call fcn.30004cab
mov dword [ebp - 0x80], eax
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp - 0x80]
pop edi
pop ebx
call fcn.300050a1
add ebp, 0x190
leave
ret 4

Function at 0x300037e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.3000192c
test eax, eax
jl 0x30003848
test esi, esi
mov edx, dword [ebp - 4]
jne 0x30003822
test edi, edi
je 0x3000383f
mov eax, 0x8000ffff
jmp 0x30003848
test edi, edi
je 0x3000383f
cmp edx, 1
je 0x30003830
cmp edx, 2
jne 0x3000383f
mov ecx, dword [esi]
cmp ecx, 2
jb 0x3000381b
cmp word [ecx + edi - 2], 0
jmp 0x30003819
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x30003848
mov dword [ecx], edx
pop edi
pop esi
leave
ret 0x14

Function at 0x300041de
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..cdata]
push esi
push edi
push 3
push dword [ebp + 8]
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x40c], 0x201
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x30004247
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x408]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jl 0x30004241
lea esi, [ebp - 0x408]
xor edi, edi
test esi, esi
jne 0x3000424a
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push 0x30001880
push 0x3000125c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x3000426b
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.300050a1
leave
ret 4
Function at 0x30004d96
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x300018f0
call fcn.300050ae
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30004dd6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30004dd6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x30004dee
cmp eax, 0x20b
je 0x30004ddb
mov dword [ebp - 0x1c], ebx
jmp 0x30004e02
cmp dword [ecx + 0x84], 0xe
jbe 0x30004dd6
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x30004dfc
cmp dword [ecx + 0x74], 0xe
jbe 0x30004dd6
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x300060e8], 0xffffffff
or dword [0x300060ec], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300060e0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x300060dc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x300060e4], eax
call fcn.30005132
call fcn.300051e7
cmp dword [0x300060c4], ebx
jne 0x30004e62
push 0x300051e4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.300051d2
push 0x30006010
push 0x3000600c
call sub.MSVCRT.dll__initterm
push 0x30005176
call fcn.30005120
mov eax, dword [0x300060d8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x300060d4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30004eb6
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30006008
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30004f1b
cmp al, bl
je 0x30004ee0
cmp dword [ebp - 0x20], ebx
jne 0x30004f1b
mov al, byte [esi]
cmp al, bl
je 0x30004ef0
cmp al, 0x20
ja 0x30004ef0
inc esi
mov dword [ebp - 0x24], esi
jmp 0x30004ee0
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x30004f0c
movzx eax, word [ebp - 0x54]
jmp 0x30004f0f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.30001957
cmp al, 0x22
jne 0x30004f2a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x30004f3d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x30004ece
Function at 0x300050a1
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.300050a1
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x30004f79
ret